:root {
    --primary: #3b82f6;
    --background: #0f172a;
    --surface: #1e293b;
    --text: #ffffff;
}

/* Base Styles */
body {
    background: linear-gradient(135deg, var(--background) 0%, #1e3a8a 50%, var(--background) 100%);
    color: var(--text);
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    min-height: 100vh;
}

.admin-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 3rem;
}

.logo-image {
    height: 50px;
    width: auto;
    margin: 0;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.admin-nav {
    display: flex;
    margin-left: auto;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Main Content */
.main-content {
    margin: 90px auto 0;
    max-width: 1400px;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.section {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Grids */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.events-grid,
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Cards */
.stat-card {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.event-card, .committee-card {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.event-card img,
.committee-member-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Remove these animation related classes/keyframes */
.animate-in,
.cardIn,
.deleting,
@keyframes cardIn,
@keyframes fadeIn {
    /* Remove these */
}

.event-card:hover, .committee-card:hover {
    transform: translateY(-5px);
}

.event-card.deleting, .committee-card.deleting {
    opacity: 0;
    transform: scale(0.9);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover img {
    transform: scale(1.05);
}

.event-content {
    padding: 1rem;
}

.event-actions {
    display: flex;
    justify-content: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
}

.event-actions .btn-secondary {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.event-actions .btn-secondary:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(239, 68, 68, 0.3);
}

.committee-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Committee Styles */
.committee-card {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.committee-member-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.committee-card:hover .committee-member-img {
    transform: scale(1.05);
}

.committee-info {
    padding: 1.5rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.5);
}

.committee-title {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.committee-name {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text);
}

.committee-actions {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--surface);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin: 0 0 1.5rem 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.form-preview {
    margin: 1.5rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.form-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 0.5rem;
    display: none;
}

.form-preview img.has-image {
    display: block;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary, 
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-secondary:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* Committee Form Specific Styles */
#committeeForm .form-preview {
    background: rgba(59, 130, 246, 0.05);
    border: 2px dashed rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

#committeeForm .form-preview:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
}

#committeeForm .form-group label {
    color: var(--primary);
    font-weight: 500;
}

/* Loading States */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f110';
    animation: spin 1s linear infinite;
}

/* Notifications */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    z-index: 2000;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification.success { border-color: #10b981; }
.notification.error { border-color: #ef4444; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Logo Overlay Animation */
.logo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.7s ease;
}

.logo-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.logo-overlay img {
    width: 180px;
    height: auto;
    animation: zoomOutLogo 2.4s ease-out forwards;
}

@keyframes zoomOutLogo {
    0% {
        transform: scale(5);
        opacity: 0;
    }
    15% {
        transform: scale(1);
        opacity: 1;
    }
    85% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Confirmation Dialog */
.confirm-dialog {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.confirm-dialog.active {
    display: flex;
}

.confirm-content {
    background: var(--surface);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.confirm-icon {
    color: #ef4444;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.confirm-title {
    color: var(--text);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.confirm-message {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-actions button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-confirm {
    background: #ef4444;
    color: white;
    border: none;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-confirm:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0.5rem 1.5rem;
    }

    .logo-image {
        height: 40px;
    }

    .logo-overlay img {
        width: 140px;
    }

    .main-content {
        margin-top: 80px;
        padding: 1.5rem;
    }

    .section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem 1rem;
    }

    .logo-image {
        height: 35px;
    }

    .logo-overlay img {
        width: 120px;
    }
}
