/* Base Styles and Variables */
:root {
    /* Colors from the Seulo Dashboard Design */
    --primary-color: #10b3bc;
    --primary-light: #e5f8f9;
    --secondary-color: #6b5dd3;
    --accent-color: #ff7d50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    
    /* Neutral Colors */
    --dark: #2c3e50;
    --medium-dark: #34495e;
    --medium: #7f8c8d;
    --light-medium: #bdc3c7;
    --light: #ecf0f1;
    --white: #ffffff;
    
    /* Typography */
    --font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Dashboard Layout */
.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    background-color: var(--white);
    border-right: 1px solid var(--light);
    padding: var(--spacing-md);
    height: 100vh;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--light);
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: var(--spacing-sm);
}

.logo h2 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 0;
}

.main-nav ul li {
    margin-bottom: var(--spacing-sm);
}

.main-nav ul li a {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    color: var(--medium-dark);
    transition: all 0.3s ease;
}

.main-nav ul li a i {
    margin-right: var(--spacing-md);
    font-size: 18px;
}

.main-nav ul li a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.main-nav ul li.active a {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Top Navigation Bar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-xl);
    background-color: var(--white);
    border-bottom: 1px solid var(--light);
    height: 70px;
}

.user-nav {
    display: flex;
    align-items: center;
}

.notifications {
    position: relative;
    margin-right: var(--spacing-xl);
    cursor: pointer;
}

.notifications i {
    font-size: 20px;
    color: var(--medium);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-color);
    color: var(--white);
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: var(--spacing-sm);
}

.user-info {
    margin-right: var(--spacing-sm);
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0;
}

.user-role {
    font-size: 12px;
    color: var(--medium);
    margin-bottom: 0;
}

/* Dashboard Content */
.dashboard-content {
    padding: var(--spacing-xl);
    overflow-y: auto;
    height: calc(100vh - 70px);
}

/* Greeting Section */
.greeting-section {
    margin-bottom: var(--spacing-xl);
}

.greeting-section h1 {
    font-size: 24px;
    margin-bottom: var(--spacing-sm);
}

.cycle-status {
    color: var(--medium);
    font-size: 14px;
}

/* Metric Cards */
.metric-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.metric-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
}

.card-icon i {
    font-size: 20px;
    color: var(--white);
}

.card-icon.blue {
    background-color: var(--primary-color);
}

.card-icon.orange {
    background-color: var(--warning-color);
}

.card-icon.green {
    background-color: var(--success-color);
}

.card-icon.red {
    background-color: var(--danger-color);
}

.card-content h3 {
    font-size: 14px;
    margin-bottom: var(--spacing-xs);
    color: var(--medium);
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0;
}

.metric-subtext {
    font-size: 12px;
    color: var(--medium);
    margin-bottom: 0;
}

/* Dashboard Panels */
.dashboard-panels {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.panel {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--light);
}

.panel-header h2 {
    font-size: 16px;
    margin-bottom: 0;
}

.view-all {
    font-size: 12px;
    color: var(--primary-color);
}

.panel-content {
    padding: var(--spacing-lg);
}

/* Alerts Panel */
.alerts-list {
    display: flex;
    flex-direction: column;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--light);
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-icon {
    margin-right: var(--spacing-md);
}

.alert-icon i {
    font-size: 18px;
}

.alert-item.high .alert-icon i {
    color: var(--danger-color);
}

.alert-item.medium .alert-icon i {
    color: var(--warning-color);
}

.alert-item.info .alert-icon i {
    color: var(--info-color);
}

.alert-content {
    flex: 1;
}

.alert-content p {
    margin-bottom: var(--spacing-xs);
    font-size: 14px;
}

.alert-time {
    font-size: 12px;
    color: var(--medium);
}

.alert-actions {
    margin-left: var(--spacing-md);
}

.alert-actions a {
    color: var(--medium);
}

.alert-actions a:hover {
    color: var(--primary-color);
}

/* Side Panels */
.side-panels {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Timeline Panel */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    width: 2px;
    height: 100%;
    background-color: var(--light-medium);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    top: 5px;
    left: -38px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--light-medium);
    border: 3px solid var(--white);
}

.timeline-item.completed .timeline-marker {
    background-color: var(--success-color);
}

.timeline-item.active .timeline-marker {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(16, 179, 188, 0.2);
}

.timeline-content h4 {
    font-size: 14px;
    margin-bottom: var(--spacing-xs);
}

.timeline-content p {
    font-size: 12px;
    color: var(--medium);
    margin-bottom: 0;
}

/* Quick Links Panel */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.quick-link-btn {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-link-btn i {
    margin-right: var(--spacing-md);
}

.quick-link-btn.primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.quick-link-btn.primary:hover {
    background-color: #0e9ea6;
}

.quick-link-btn.secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.quick-link-btn.secondary:hover {
    background-color: #5e52c0;
}

.quick-link-btn.tertiary {
    background-color: var(--accent-color);
    color: var(--white);
}

.quick-link-btn.tertiary:hover {
    background-color: #ff6c3c;
}

/* Chart Section */
.chart-section {
    margin-bottom: var(--spacing-xl);
}

.chart-panel .panel-header {
    padding-right: var(--spacing-md);
}

.chart-controls select {
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--light-medium);
    background-color: var(--white);
    font-size: 12px;
}

canvas {
    max-width: 100%;
    height: 250px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .metric-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 200px 1fr;
    }
    
    .dashboard-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .metric-cards {
        grid-template-columns: 1fr;
    }
} 