/* Dashboard Specific Styles */

.dashboard-container {
    flex-direction: column;
    max-width: 1400px;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: rgba(124, 58, 237, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-info h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Controls Section */
.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
}

.search-box input {
    padding-left: 2.75rem;
}

.filter-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-box label {
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.sort-box select {
    width: auto;
    padding: 0.5rem 2rem 0.5rem 1rem;
}

.export-actions {
    display: flex;
    gap: 0.5rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.8;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-title-group {
    flex: 1;
    padding-right: 1rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.group-name {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.member-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.card-body {
    flex: 1;
    margin-bottom: 1.5rem;
}

.members-list {
    list-style: none;
}

.member-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.875rem;
}

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

.member-name {
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-reg {
    color: var(--text-muted);
    font-family: monospace;
    background: rgba(0,0,0,0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

body.theme-dark .member-reg {
    background: rgba(255,255,255,0.05);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h2 {
    margin-bottom: 0.5rem;
}

/* Highlight for search */
.highlight {
    background-color: rgba(245, 158, 11, 0.3);
    color: var(--warning-color);
    padding: 0 0.1rem;
    border-radius: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    .bg-shape, .navbar, .controls-section, .card-actions {
        display: none !important;
    }
    .container {
        padding: 0;
        max-width: 100%;
    }
    .glass-panel {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
        backdrop-filter: none;
    }
    .stats-grid {
        break-inside: avoid;
    }
    .project-card {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #eee;
    }
}

@media (max-width: 768px) {
    .controls-section {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        max-width: 100%;
    }
    .filter-actions {
        justify-content: space-between;
    }
}
