/* ===== MODERN SIDEBAR STYLES ===== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049, #2196F3, #FF9800);
    z-index: 10;
}

/* Profile Section */
.profile {
    text-align: center;
    padding: 20px 16px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
    position: relative;
}

.profile-icon {
    font-size: 48px;
    margin-bottom: 12px;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    border: 2px solid rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.profile-icon:hover {
    transform: scale(1.05);
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
}

.profile-name {
    font-weight: 700;
    margin: 0 0 3px 0;
    color: white;
    font-size: 1rem;
}

.profile-class {
    font-size: 0.8rem;
    margin: 0 0 8px 0;
    color: rgba(255,255,255,0.7);
    background: rgba(76, 175, 80, 0.2);
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
}

.profile-status {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Navigation Menu */
.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow: hidden;
}

.menu-section {
    padding: 0 16px;
    margin-bottom: 6px;
}

.menu-section-title {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding: 0 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.8);
    padding: 10px 16px;
    margin-bottom: 3px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    font-size: 0.9rem;
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(4px);
    padding-left: 20px;
}

.menu-item.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    font-weight: 600;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
    border-radius: 0 4px 4px 0;
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
}

.menu-item.active i {
    opacity: 1;
}

/* Special menu items */
.menu-item.logout-button {
    margin-top: auto;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.menu-item.logout-button:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.4);
}

/* User Stats Mini */
.user-stats-mini {
    padding: 12px;
    background: rgba(0,0,0,0.2);
    margin: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.stats-row:last-child {
    margin-bottom: 0;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.stat-value {
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
}

.level-indicator {
    background: rgba(255,255,255,0.1);
    height: 3px;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.level-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
}

/* Notification Badge */
.menu-item .notification-badge {
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        transition: width 0.3s ease;
    }
    
    .sidebar:hover {
        width: 280px;
    }
    
    .sidebar:not(:hover) .profile-name,
    .sidebar:not(:hover) .profile-class,
    .sidebar:not(:hover) .profile-status,
    .sidebar:not(:hover) .menu-section-title,
    .sidebar:not(:hover) .menu-item span,
    .sidebar:not(:hover) .user-stats-mini {
        display: none;
    }
    
    .sidebar:not(:hover) .profile {
        padding: 16px 8px;
    }
    
    .sidebar:not(:hover) .menu-item {
        justify-content: center;
        padding: 12px 8px;
    }
    
    .sidebar:not(:hover) .profile-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* ===== MODERN DASHBOARD STYLES ===== */
.dashboard-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #e9ecef;
}

.welcome-section h1 {
    font-size: 2.2rem;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.welcome-subtitle {
    color: #7f8c8d;
    margin: 0;
    font-size: 1.1rem;
}

.quick-actions {
    display: flex;
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.quick-action-btn i {
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.projects-card .stat-icon {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.observations-card .stat-icon {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.towers-card .stat-icon {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.health-card .stat-icon {
    background: linear-gradient(135deg, #E91E63, #C2185B);
}

.stat-content h3 {
    font-size: 1.8rem;
    margin: 0 0 4px 0;
    color: #2c3e50;
    font-weight: 700;
}

.stat-content p {
    margin: 0 0 4px 0;
    color: #5a6c7d;
    font-weight: 600;
}

.stat-content small {
    color: #95a5a6;
    font-size: 0.85rem;
}

/* Main Grid */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-widget {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.widget-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.widget-header h3 i {
    margin-right: 8px;
    color: #4CAF50;
}

.widget-action {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.widget-action:hover {
    background: #45a049;
}

.widget-content {
    padding: 24px;
}

/* Tower Overview */
.tower-preview {
    text-align: center;
}

.preview-holes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 180px;
    margin: 0 auto 16px auto;
}

.hole-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.hole-preview.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.hole-preview.inactive {
    background: #bdc3c7;
    color: #7f8c8d;
}

.tower-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #5a6c7d;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color.active {
    background: #4CAF50;
}

.legend-color.inactive {
    background: #bdc3c7;
}

/* Recent Projects */
.projects-list {
    max-height: 200px;
    overflow-y: auto;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.project-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 8px;
    margin: 0 -8px;
}

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

.project-info h4 {
    margin: 0 0 4px 0;
    color: #2c3e50;
    font-size: 0.95rem;
}

.project-info small {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.project-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-status.active {
    background: #d4edda;
    color: #155724;
}

.project-status.paused {
    background: #fff3cd;
    color: #856404;
}

.project-status.completed {
    background: #cce5ff;
    color: #0056b3;
}

/* Environment Status */
.environment-metrics {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.metric-info {
    flex: 1;
}

.metric-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.metric-label {
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* Growth Chart */
.chart-period-select {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Daily Tasks */
.tasks-list {
    max-height: 200px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.task-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.task-checkbox:hover {
    background: #e8f5e8;
}

.task-checkbox.completed {
    background: #4CAF50;
}

.task-checkbox.completed::after {
    content: '✓';
    color: white;
    position: absolute;
    top: -2px;
    left: 2px;
    font-size: 0.8rem;
}

.task-text {
    flex: 1;
    color: #2c3e50;
    font-size: 0.9rem;
}

.task-text.completed {
    text-decoration: line-through;
    color: #7f8c8d;
}

.task-reward {
    background: #ffeaa7;
    color: #fdcb6e;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.task-progress {
    background: #e9ecef;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Achievements */
.level-progress {
    margin-bottom: 16px;
}

.level-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

.level-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
}

.xp-display {
    background: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.achievements-list {
    max-height: 120px;
    overflow-y: auto;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.achievement-icon {
    font-size: 1.2rem;
}

.achievement-text {
    flex: 1;
    font-size: 0.85rem;
}

.achievement-name {
    display: block;
    color: #2c3e50;
    font-weight: 600;
}

.achievement-desc {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.achievement-xp {
    background: #ffeaa7;
    color: #fdcb6e;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* No Projects State */
.no-data-dashboard {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.no-data-dashboard .no-data-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-data-dashboard h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.start-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.start-project-btn:hover {
    transform: translateY(-2px);
}

/* Modern Dashboard Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .quick-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-holes {
        max-width: 150px;
        gap: 6px;
    }
    
    .hole-preview {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
}