/* Dashboard Styles — aligned with site primary #174545 */
:root {
    --dash-primary: #174545;
    --dash-primary-dark: #0f3030;
    --dash-primary-mid: #2a6f6f;
    --dash-primary-light: #3d8585;
    --dash-primary-rgb: 23, 69, 69;
    --dash-fs-base: 1rem;
    --dash-fs-sm: 0.9375rem;
    --dash-fs-xs: 0.8125rem;
    --dash-fs-lg: 1.125rem;
    --dash-fs-xl: 1.25rem;
    --dash-fs-title: clamp(1.75rem, 3.2vw, 2.25rem);
    --dash-fs-stat: clamp(2rem, 3.8vw, 2.5rem);
    --dash-leading: 1.55;
}

.dashboard-section {
    padding: 40px 0;
    background: radial-gradient(circle at 28% 28%, #ffffff 0%, #f1f5f9 45%, #e8f2f2 100%);
    position: relative;
    overflow: hidden;
    font-size: var(--dash-fs-base);
    line-height: var(--dash-leading);
}

.dashboard-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--dash-primary-rgb), 0.06) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-title {
    font-size: var(--dash-fs-title);
    color: #2c3e50;
    font-weight: 800;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    animation: slideInFromTop 0.8s ease-out;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dash-primary-dark), var(--dash-primary));
    animation: expandWidth 1s ease-out 0.5s forwards;
}

@keyframes expandWidth {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Overview Cards */
.overview-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.overview-card:nth-child(1) { animation-delay: 0.1s; }
.overview-card:nth-child(2) { animation-delay: 0.2s; }
.overview-card:nth-child(3) { animation-delay: 0.3s; }
.overview-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.overview-card:hover::before {
    left: 100%;
}

.overview-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.overview-card:active {
    transform: translateY(-4px) scale(1.01);
}

.overview-card.total-projects {
    background: linear-gradient(135deg, var(--dash-primary) 0%, var(--dash-primary-mid) 100%);
    color: white;
}

.overview-card.ended-projects {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.overview-card.running-projects {
    background: linear-gradient(135deg, var(--dash-primary) 0%, var(--dash-primary-light) 100%);
    color: white;
}

.overview-card.pending-projects {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.overview-card.schools-registered {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.overview-card.colleges-registered {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
}

.overview-card.activities-done {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.overview-card.active-clubs {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

.card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 1.625rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.overview-card:hover .card-icon {
    transform: rotate(15deg) scale(1.1);
    opacity: 1;
}

.card-statistic h3 {
    font-size: var(--dash-fs-stat);
    font-weight: 800;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.card-statistic h5 {
    font-size: 1.0625rem;
    margin-bottom: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-statistic .increase {
    font-size: var(--dash-fs-sm);
    opacity: 0.9;
    font-weight: 500;
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.overview-card:hover .card-statistic h3 {
    transform: scale(1.05);
}

.overview-card:hover .card-statistic .increase {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dash-primary-dark), var(--dash-primary), var(--dash-primary-mid));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-title {
    color: #2c3e50;
    font-size: var(--dash-fs-lg);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--dash-primary-dark), var(--dash-primary));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.dashboard-card:hover .card-title::after {
    width: 60px;
}

/* Project Analytics Chart */
.chart-container {
    height: 280px;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 220px;
    padding: 20px 10px;
    position: relative;
}

.bar {
    flex: 1;
    margin: 0 6px;
    background: linear-gradient(to top, var(--dash-primary-dark), var(--dash-primary));
    border-radius: 8px 8px 0 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(32, 90, 178, 0.2);
    animation: growUp 0.8s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

.bar:nth-child(1) { animation-delay: 0.1s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.4s; }
.bar:nth-child(5) { animation-delay: 0.5s; }
.bar:nth-child(6) { animation-delay: 0.6s; }
.bar:nth-child(7) { animation-delay: 0.7s; }

@keyframes growUp {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.bar:hover {
    transform: translateY(-5px) scaleY(1.05);
    box-shadow: 0 8px 20px rgba(32, 90, 178, 0.3);
    filter: brightness(1.1);
}

.bar.active {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scaleY(1);
        box-shadow: 0 2px 8px rgba(250, 112, 154, 0.3);
    }
    50% {
        transform: scaleY(1.02);
        box-shadow: 0 4px 12px rgba(250, 112, 154, 0.4);
    }
}

.bar span {
    color: #fff;
    padding-left: 8px;
    font-weight: 700;
    font-size: var(--dash-fs-xs);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    opacity: 0;
    animation: fadeInText 0.5s ease-out 0.8s forwards;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.bar::after {
    content: attr(data-day);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--dash-fs-xs);
    color: #495057;
    font-weight: 600;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.bar:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Reminders */
.reminder-item {
    text-align: center;
}

.reminder-icon {
    font-size: 2.25rem;
    color: #f59e0b;
    margin-bottom: 20px;
}

.reminder-content h5 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.0625rem;
}

.reminder-content .time {
    color: #718096;
    font-size: var(--dash-fs-sm);
    margin-bottom: 16px;
}

/* Project List */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    animation: slideInRight 0.5s ease-out forwards;
    opacity: 0;
}

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }
.project-item:nth-child(4) { animation-delay: 0.4s; }
.project-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(32, 90, 178, 0.05), transparent);
    transition: left 0.5s ease;
}

.project-item:hover::before {
    left: 100%;
}

.project-item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    transform: translateX(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(32, 90, 178, 0.15);
    border-color: rgba(32, 90, 178, 0.2);
}

.project-icon {
    margin-right: 20px;
    color: var(--dash-primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--dash-primary-dark), var(--dash-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-item:hover .project-icon {
    transform: rotate(15deg) scale(1.2);
    filter: drop-shadow(0 2px 8px rgba(32, 90, 178, 0.3));
}

.project-details h5 {
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.project-details .due-date {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-item:hover .project-details h5 {
    color: var(--dash-primary);
    transform: translateX(4px);
}

.project-item:hover .project-details .due-date {
    color: #495057;
}

/* Team Collaboration */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-member {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    animation: fadeInScale 0.6s ease-out forwards;
    opacity: 0;
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.05), transparent);
    transition: left 0.5s ease;
}

.team-member:hover::before {
    left: 100%;
}

.team-member:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #ffffff 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.2);
}

.member-avatar {
    margin-right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.team-member:hover .member-avatar {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.member-details {
    flex: 1;
}

.member-details h5 {
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 1.0625rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.member-details p {
    color: #6c757d;
    font-size: var(--dash-fs-sm);
    margin-bottom: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.team-member:hover .member-details h5 {
    color: #4caf50;
    transform: translateX(4px);
}

.team-member:hover .member-details p {
    color: #495057;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: var(--dash-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.status-badge:hover::before {
    left: 100%;
}

.status-badge:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.1);
}

.status-badge.completed {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.status-badge.in-progress {
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.status-badge.pending {
    background: linear-gradient(135deg, #f44336, #e91e63);
    color: white;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

/* Project Progress */
.progress-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.progress-circle canvas {
    width: 100%;
    height: 100%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text h2 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.progress-text p {
    font-size: var(--dash-fs-sm);
    color: #718096;
    margin: 0;
}

.progress-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--dash-fs-sm);
    color: #e1e1e1;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.completed {
    background: var(--dash-primary);
}

.legend-color.in-progress {
    background: #f59e0b;
}

.legend-color.pending {
    background: #ef4444;
}

/* Time Tracker */
.time-tracker {
    text-align: center;
}

.timer-display {
    font-size: clamp(1.75rem, 4vw, 2.125rem);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: var(--dash-fs-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--dash-primary) 0%, var(--dash-primary-mid) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    background: transparent;
    color: var(--dash-primary);
    border: 1px solid var(--dash-primary);
}

.btn-outline-primary:hover {
    background: var(--dash-primary);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: var(--dash-fs-xs);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-section {
        padding: 30px 0;
    }
    
    .dashboard-title {
        font-size: clamp(1.65rem, 4.5vw, 2rem);
        line-height: 1.25;
    }
    
    .overview-card {
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .card-statistic h3 {
        font-size: clamp(1.85rem, 4vw, 2.35rem);
    }
    
    .card-statistic h5 {
        font-size: 1rem;
    }
    
    .card-statistic .increase {
        font-size: var(--dash-fs-xs);
    }
    
    .dashboard-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .card-title {
        font-size: 1.0625rem;
    }
    
    .progress-circle {
        width: 180px;
        height: 180px;
    }
    
    .progress-text h2 {
        font-size: clamp(1.45rem, 3.5vw, 1.75rem);
    }
    
    .progress-text p {
        font-size: var(--dash-fs-xs);
    }
    
    .timer-display {
        font-size: clamp(1.5rem, 4vw, 1.85rem);
    }
    
    .chart-container {
        height: 240px;
        padding: 15px;
    }
    
    .bar-chart {
        height: 180px;
        padding: 15px 5px;
    }
    
    .bar {
        margin: 0 3px;
    }
    
    .bar span {
        font-size: var(--dash-fs-xs);
        padding-left: 4px;
    }
    
    .bar::after {
        font-size: 0.75rem;
        bottom: -20px;
    }
    
    .project-item,
    .team-member {
        padding: 15px;
    }
    
    .project-icon,
    .member-avatar {
        margin-right: 15px;
        font-size: 1.2rem;
    }
    
    .member-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .activity-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .activity-image-item img {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .dashboard-section {
        padding: 20px 0;
    }
    
    .dashboard-title {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
    }
    
    .overview-card,
    .dashboard-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .card-statistic h3 {
        font-size: clamp(1.65rem, 6vw, 2rem);
    }
    
    .card-statistic h5 {
        font-size: var(--dash-fs-sm);
    }
    
    .card-statistic .increase {
        font-size: var(--dash-fs-xs);
        padding: 3px 6px;
    }
    
    .card-icon {
        top: 15px;
        right: 15px;
    }
    
    .card-icon i {
        font-size: 1.375rem;
    }
    
    .card-title {
        font-size: var(--dash-fs-lg);
        margin-bottom: 15px;
    }
    
    .card-title::after {
        width: 30px;
        height: 2px;
    }
    
    .dashboard-card:hover .card-title::after {
        width: 40px;
    }
    
    .progress-circle {
        width: 150px;
        height: 150px;
    }
    
    .progress-text h2 {
        font-size: clamp(1.35rem, 5vw, 1.6rem);
    }
    
    .progress-text p {
        font-size: var(--dash-fs-xs);
    }
    
    .progress-legend {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .timer-display {
        font-size: clamp(1.35rem, 5vw, 1.65rem);
        margin-bottom: 15px;
    }
    
    .timer-controls {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .chart-container {
        height: 200px;
        padding: 10px;
    }
    
    .bar-chart {
        height: 150px;
        padding: 10px 3px;
    }
    
    .bar {
        margin: 0 2px;
    }
    
    .bar span {
        font-size: 0.75rem;
        padding-left: 2px;
    }
    
    .bar::after {
        font-size: 0.7rem;
        bottom: -18px;
    }
    
    .project-list,
    .team-list {
        gap: 12px;
    }
    
    .project-item,
    .team-member {
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .project-icon,
    .member-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .member-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .project-details,
    .member-details {
        text-align: center;
    }
    
    .status-badge {
        margin-top: 8px;
        padding: 4px 12px;
        font-size: 0.75rem;
    }
    
    .activity-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .activity-image-item img {
        height: 100px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: var(--dash-fs-sm);
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .overview-card:hover,
    .dashboard-card:hover,
    .project-item:hover,
    .team-member:hover,
    .activity-image-item:hover {
        transform: none;
    }
    
    .overview-card:active,
    .dashboard-card:active,
    .project-item:active,
    .team-member:active,
    .activity-image-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .bar:hover {
        transform: none;
    }
    
    .bar:active {
        transform: translateY(-2px) scaleY(1.02);
        transition: transform 0.1s ease;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .overview-card,
    .dashboard-card {
        border: 2px solid #000;
    }
    
    .card-title {
        color: #000;
    }
    
    .card-statistic h3,
    .card-statistic h5 {
        color: inherit;
    }
    
    .status-badge {
        border: 1px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .dashboard-section::before {
        animation: none;
    }
    
    .overview-card,
    .dashboard-card,
    .project-item,
    .team-member,
    .activity-image-item,
    .bar {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .bar span {
        opacity: 1;
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dashboard-section {
        background: radial-gradient(circle at 30% 30%, #1a1a1a 0%, #2d2d2d 40%, #3a3a3a 100%);
    }
    
    .overview-card,
    .dashboard-card {
        background: #2d2d2d;
        color: #fff;
        border-color: #444;
    }
    
    .card-title {
        color: #fff;
    }
    
    .project-item,
    .team-member {
        background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
        color: #fff;
    }
    
    .project-item:hover,
    .team-member:hover {
        background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    }
    
    .project-details h5,
    .member-details h5 {
        color: #fff;
    }
    
    .project-details .due-date,
    .member-details p {
        color: #ccc;
    }
    
    .chart-container {
        background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    }
    
    .activity-image-item::before {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    }
}
