/* Dashboard specific styles */
.dashboard-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: calc(var(--navbar-height) + 32px) 24px 24px;
}

.dashboard-section {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-icon {
    width: 48px;
    height: 48px;
    background: var(--background-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 14px;
}

/* Overview Section */
.date-range {
    display: flex;
    gap: 8px;
}

.date-range .btn {
    padding: 6px 12px;
    font-size: 13px;
}

.overview-stats {
    display: flex;
    gap: 16px;
}

.stat-card {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.stat-icon.success {
    background: rgba(56, 161, 105, 0.1);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(221, 107, 32, 0.1);
    color: var(--warning);
}

.stat-icon.danger {
    background: rgba(229, 62, 62, 0.1);
    color: var(--error);
}

.stat-icon.info {
    background: rgba(44, 82, 130, 0.1);
    color: var(--primary-color);
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.stat-trend {
    font-size: 13px;
    color: var(--text-light);
}

.stat-trend.positive {
    color: var(--success);
}

.stat-trend.negative {
    color: var(--error);
}

/* Recent Activity */
.activity-list {
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

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

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-icon.warning {
    background: rgba(221, 107, 32, 0.1);
    color: var(--warning);
}

.activity-icon.success {
    background: rgba(56, 161, 105, 0.1);
    color: var(--success);
}

.activity-icon.info {
    background: rgba(44, 82, 130, 0.1);
    color: var(--primary-color);
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.activity-content p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.activity-content time {
    font-size: 12px;
    color: var(--text-light);
    display: block;
}

.activity-item .btn {
    padding: 6px 12px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
    .overview-stats {
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1 1 calc(50% - 8px);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: calc(var(--navbar-height) + 16px) 16px 16px;
    }

    .dashboard-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex: 1 1 100%;
    }

    .activity-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-item .btn {
        width: 100%;
        margin-top: 8px;
    }

    .date-range {
        display: none;
    }
}
