/* Committee Dashboard Styles */

.committee-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header Section */
.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #388e3c 0%, #66bb6a 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.dashboard-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.dashboard-icon {
    font-size: 3rem;
}

.dashboard-welcome {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Quick Stats Bar */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #388e3c;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #388e3c;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1e5e9;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dashboard-card.primary {
    border-top: 4px solid #388e3c;
}

.dashboard-card.secondary {
    border-top: 4px solid #48bb78;
}

/* Card Header */
.card-header {
    padding: 20px 25px 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #388e3c 0%, #66bb6a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
}

/* Card Content */
.card-content {
    padding: 25px;
}

.card-content p {
    margin: 0 0 20px 0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Dashboard Buttons */
.dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
}

.dashboard-btn.primary {
    background: linear-gradient(135deg, #388e3c 0%, #66bb6a 100%);
    color: white;
}

.dashboard-btn.primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.dashboard-btn.secondary {
    background: white;
    color: #388e3c;
    border-color: #388e3c;
}

.dashboard-btn.secondary:hover {
    background: #388e3c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Dashboard Footer */
.dashboard-footer {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.quick-actions h4 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.quick-action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.quick-btn:hover {
    background: #388e3c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.quick-btn.logout {
    background: #fed7d7;
    color: #e53e3e;
    border-color: #feb2b2;
}

.quick-btn.logout:hover {
    background: #e53e3e;
    color: white;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

/* Error States */
.committee-dashboard-error {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 4px solid #e53e3e;
}

.committee-dashboard-error h3 {
    color: #e53e3e;
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}

.committee-dashboard-error p {
    color: #4a5568;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.committee-dashboard-error .button {
    display: inline-block;
    padding: 12px 24px;
    background: #388e3c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.committee-dashboard-error .button:hover {
    background: #5a67d8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .committee-dashboard {
        padding: 15px;
    }

    .dashboard-header {
        padding: 20px 15px;
    }

    .dashboard-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-icon {
        font-size: 2.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-actions {
        flex-direction: column;
    }

    .dashboard-btn {
        justify-content: center;
        width: 100%;
    }

    .quick-action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .quick-btn {
        justify-content: center;
        width: 200px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .card-header {
        padding: 15px 20px 10px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .card-content {
        padding: 20px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.committee-dashboard {
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-card {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }
.dashboard-card:nth-child(5) { animation-delay: 0.5s; }
.dashboard-card:nth-child(6) { animation-delay: 0.6s; }
.dashboard-card:nth-child(7) { animation-delay: 0.7s; }
.dashboard-card:nth-child(8) { animation-delay: 0.8s; }