:root {
    --gold-dark: #976e05;
    --navy-deep: #000224;
    --navy-bright: #000a56;
    --teal-deep: #1b4e3b;
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f3f4f6;
    overflow-x: hidden;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0a0a2e 0%, #000224 100%);
    color: white;
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar Collapsed State */
.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .logout-btn span,
.sidebar.collapsed .sidebar-toggle i {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.15s ease;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 20px 0;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .nav-item i {
    font-size: 1.2rem;
    margin: 0;
}

.sidebar.collapsed .logout-btn {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .logout-btn i {
    font-size: 1.2rem;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #976e05;
    border: 2px solid #000224;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all var(--transition-speed);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle:hover {
    background: #b8860b;
    transform: translateY(-50%) scale(1.1);
}

.sidebar.collapsed .sidebar-toggle {
    right: -12px;
}

.sidebar-toggle i {
    transition: transform var(--transition-speed);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-speed);
    min-height: 80px;
    flex-shrink: 0;
}

.sidebar-header svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.sidebar-brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all var(--transition-speed);
    letter-spacing: 0.5px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(151, 110, 5, 0.3);
    border-radius: 3px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    min-height: 44px;
}

.nav-item:hover {
    background: rgba(151, 110, 5, 0.15);
    color: white;
}

.nav-item.active {
    background: rgba(151, 110, 5, 0.2);
    color: #976e05;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: #976e05;
    border-radius: 0 3px 3px 0;
}

.nav-item i {
    width: 22px;
    font-size: 1rem;
    flex-shrink: 0;
    text-align: center;
    transition: font-size var(--transition-speed);
}

.nav-item span {
    transition: all var(--transition-speed);
    opacity: 1;
}

/* Tooltip for collapsed state */
.sidebar.collapsed .nav-item {
    position: relative;
}

.sidebar.collapsed .nav-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(var(--sidebar-collapsed) + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a2e;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.sidebar.collapsed .nav-item:hover::before {
    content: '';
    position: absolute;
    left: calc(var(--sidebar-collapsed) - 4px);
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #1a1a2e;
    z-index: 100;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 44px;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.logout-btn i {
    width: 22px;
    flex-shrink: 0;
    text-align: center;
}

.logout-btn span {
    transition: all var(--transition-speed);
}

/* Mobile Close Button */
.sidebar-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px 28px;
    min-height: 100vh;
    transition: margin-left var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed ~ .main-content,
.sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* ==================== TOP BAR ==================== */
.top-bar {
    background: white;
    padding: 16px 24px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    min-height: 72px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-left h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-email {
    font-size: 0.85rem;
    color: #6b7280;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #976e05, #b8860b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Hamburger Button (Mobile) */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #4b5563;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.hamburger-btn:hover {
    background: #f3f4f6;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet and smaller */
@media (max-width: 1024px) {
    .sidebar:not(.mobile-open) {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .hamburger-btn {
        display: block;
    }

    .sidebar-toggle {
        display: none;
    }

    .sidebar.collapsed {
        width: var(--sidebar-width);
    }

    .sidebar.collapsed .sidebar-brand-text,
    .sidebar.collapsed .nav-item span,
    .sidebar.collapsed .logout-btn span {
        opacity: 1;
        width: auto;
    }

    .sidebar.collapsed .nav-item {
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .sidebar.collapsed .logout-btn {
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .sidebar.collapsed .nav-item i {
        font-size: 1rem;
    }

    .sidebar.collapsed .logout-btn i {
        font-size: 1rem;
    }

    .sidebar.collapsed .sidebar-header {
        justify-content: flex-start;
        padding: 24px 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }

    .top-bar {
        padding: 12px 16px;
        min-height: 60px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .top-bar-left h1 {
        font-size: 1.1rem;
    }

    .admin-email {
        font-size: 0.75rem;
        display: none;
    }

    .admin-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .sidebar {
        width: 280px !important;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    /* Keep sidebar full width on mobile when collapsed */
    .sidebar.collapsed {
        width: 280px !important;
    }

    .sidebar.collapsed .sidebar-brand-text,
    .sidebar.collapsed .nav-item span,
    .sidebar.collapsed .logout-btn span {
        opacity: 1;
        width: auto;
    }

    .sidebar.collapsed .nav-item {
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .sidebar.collapsed .logout-btn {
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .sidebar.collapsed .nav-item i {
        font-size: 1rem;
    }

    .sidebar.collapsed .logout-btn i {
        font-size: 1rem;
    }

    .sidebar.collapsed .sidebar-header {
        justify-content: flex-start;
        padding: 24px 20px;
    }

    .sidebar.collapsed .sidebar-toggle {
        display: none;
    }

    .sidebar.collapsed .nav-item:hover::after,
    .sidebar.collapsed .nav-item:hover::before {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .sidebar {
        width: 100% !important;
        max-width: 320px;
    }

    .top-bar-actions .btn span {
        display: none;
    }

    .top-bar-actions .btn {
        padding: 8px 12px;
    }

    .top-bar-actions .btn i {
        margin: 0;
    }
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: linear-gradient(135deg, #1b4e3b, #2a6e4f);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateX(150%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 90%;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

/* ==================== OTHER STYLES ==================== */

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-primary {
    background: #976e05;
    color: white;
}
.btn-primary:hover {
    background: #7c5c04;
}

.btn-success {
    background: #10b981;
    color: white;
}
.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: white;
}
.btn-danger:hover {
    background: #dc2626;
}

.btn-blue {
    background: #3b82f6;
    color: white;
}
.btn-blue:hover {
    background: #2563eb;
}

.btn-gray {
    background: #6b7280;
    color: white;
}
.btn-gray:hover {
    background: #4b5563;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 0.75rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-active,
.status-present,
.status-published {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive,
.status-absent,
.status-draft {
    background: #fed7aa;
    color: #92400e;
}

.status-graduated,
.status-excused {
    background: #e0e7ff;
    color: #3730a3;
}

.status-new {
    background: #fee2e2;
    color: #991b1b;
}

.status-read {
    background: #e5e7eb;
    color: #374151;
}

.status-replied {
    background: #d1fae5;
    color: #065f46;
}

.status-archived {
    background: #f3e8ff;
    color: #6d28d9;
}

.status-late {
    background: #fef3c7;
    color: #92400e;
}

.status-upcoming {
    background: #dbeafe;
    color: #1e40af;
}

.status-ongoing {
    background: #d1fae5;
    color: #065f46;
}

.status-past {
    background: #e5e7eb;
    color: #374151;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s;
    padding: 0 8px;
    line-height: 1;
}

.modal-close:hover {
    color: #1f2937;
    transform: rotate(90deg);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    transition: all 0.2s;
    font-size: 0.95rem;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #976e05;
    outline: none;
    box-shadow: 0 0 0 3px rgba(151, 110, 5, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th {
    background: #f9fafb;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.table-container td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.table-container tr:last-child td {
    border-bottom: none;
}

.table-container tr:hover td {
    background: #f9fafb;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.blog-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.blog-excerpt {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.blog-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.blog-actions button {
    flex: 1;
    padding: 6px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

/* Event Cards */
.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Contact Cards */
.contact-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.message-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    border-radius: 8px 8px 0 0;
}

.admin-tab:hover {
    color: #976e05;
    background: rgba(151, 110, 5, 0.05);
}

.admin-tab.active {
    color: #976e05;
    border-bottom: 3px solid #976e05;
    margin-bottom: -2px;
    background: rgba(151, 110, 5, 0.05);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

/* Hero Preview */
.hero-preview-card {
    background: linear-gradient(135deg, #0a0a2e 0%, #000224 100%);
    border-radius: 20px;
    overflow: hidden;
    color: white;
    margin-top: 20px;
}

.hero-preview-inner {
    padding: 40px;
    text-align: center;
}

.hero-preview-badge {
    display: inline-block;
    background: rgba(151, 110, 5, 0.2);
    color: #976e05;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-preview-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-preview-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Utilities */
.hidden {
    display: none !important;
}

.mb-4 {
    margin-bottom: 16px;
}
.mb-6 {
    margin-bottom: 24px;
}
.mt-4 {
    margin-top: 16px;
}
.mt-6 {
    margin-top: 24px;
}

.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}

.flex {
    display: flex;
}
.flex-col {
    flex-direction: column;
}
.items-center {
    align-items: center;
}
.justify-between {
    justify-content: space-between;
}
.gap-2 {
    gap: 8px;
}
.gap-3 {
    gap: 12px;
}
.gap-4 {
    gap: 16px;
}

.w-full {
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #976e05;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c5c04;
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
    }
    .table-container table {
        min-width: 600px;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    .hero-preview-title {
        font-size: 1.5rem;
    }
    .hero-preview-inner {
        padding: 20px;
    }
}

/* Image Upload Styles */
.image-upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.image-upload-area:hover {
    border-color: #976e05;
    background: rgba(151,110,5,0.03);
}

.image-upload-area .upload-placeholder {
    color: #6b7280;
}

.image-upload-area .upload-placeholder i {
    color: #976e05;
    margin-bottom: 12px;
}

.image-upload-area .upload-placeholder p {
    margin: 8px 0;
    font-weight: 500;
}

.image-upload-area .upload-placeholder small {
    color: #9ca3af;
    font-size: 0.75rem;
}

.image-upload-area .upload-preview {
    position: relative;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.image-upload-area .upload-preview img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.image-upload-area .upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    overflow: hidden;
}

.image-upload-area .upload-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #976e05, #b8860b);
    transition: width 0.3s ease;
    width: 0%;
}

.image-upload-area .remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.image-upload-area .remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.image-upload-area .hidden {
    display: none !important;
}

/* Image Upload Styles - For both Blog and Events */
.image-upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.image-upload-area:hover {
    border-color: #976e05;
    background: rgba(151,110,5,0.03);
}

.image-upload-area .upload-placeholder {
    color: #6b7280;
}

.image-upload-area .upload-placeholder i {
    color: #976e05;
    margin-bottom: 12px;
}

.image-upload-area .upload-placeholder p {
    margin: 8px 0;
    font-weight: 500;
}

.image-upload-area .upload-placeholder small {
    color: #9ca3af;
    font-size: 0.75rem;
}

.image-upload-area .upload-preview {
    position: relative;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.image-upload-area .upload-preview img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.image-upload-area .upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    overflow: hidden;
}

.image-upload-area .upload-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #976e05, #b8860b);
    transition: width 0.3s ease;
    width: 0%;
}

.image-upload-area .remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.image-upload-area .remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.image-upload-area .hidden {
    display: none !important;
}

/* Analytics Tabs */
.analytics-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #f3f4f6;
    color: #6b7280;
}

.analytics-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.analytics-btn.active {
    background: #976e05;
    color: white;
    border-color: #7c5c04;
    box-shadow: 0 2px 8px rgba(151, 110, 5, 0.3);
}

.analytics-btn.active:hover {
    background: #7c5c04;
}

.analytics-btn i {
    margin-right: 6px;
}