:root {
    --primary: #11446f;
    --accent: #f58220;
    --bg: #f8fafc;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: #1e293b;
}

.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e2e8f0;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 50;
}

.main-content {
    margin-left: 280px;
    padding: 40px;
    max-width: 1200px;
}

.admin-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.nav-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.nav-item.active {
    background: #eff6ff;
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
}

.admin-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.admin-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(17, 68, 111, 0.1);
}

textarea.admin-input {
    min-height: 100px;
    resize: vertical;
}

.sticky-header {
    position: sticky;
    top: 0;
    background: var(--bg);
    padding: 20px 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.btn-publish {
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    border: none;
}

.btn-publish:hover {
    background: #e6751a;
    transform: translateY(-2px);
}

.btn-publish:active {
    transform: translateY(0);
}

/* Login Overlay */
#login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.btn-preview-premium {
    background: linear-gradient(135deg, var(--primary) 0%, #1e5a8f 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 15px -3px rgba(17, 68, 111, 0.25),
        0 4px 6px -2px rgba(17, 68, 111, 0.1);
    letter-spacing: -0.01em;
}

.btn-preview-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(17, 68, 111, 0.3),
        0 10px 10px -5px rgba(17, 68, 111, 0.1);
    background: linear-gradient(135deg, #16568c 0%, #256ba8 100%);
}

.btn-preview-premium:active {
    transform: translateY(0) scale(0.98);
}

.btn-logout-top {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 120;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.btn-logout-top:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.btn-logout-top:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Shared Button Styles for Pagination & Modals */
.pb-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pb-btn-outline {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.pb-btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--primary);
}

.pb-btn-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pb-btn-primary {
    background: var(--accent);
    color: white;
}

.pb-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(245, 130, 32, 0.2);
}

/* Utilities */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Image Upload (Drop Zone) */
.drop-zone {
    width: 100%;
    min-height: 160px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.drop-zone:hover {
    border-color: var(--primary);
    background: #f1f5f9;
}

.drop-zone.active {
    border-color: var(--accent);
    background: #fff7ed;
    transform: scale(1.01);
}

.drop-zone-preview {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: 1;
    opacity: 0.15;
    transition: opacity 0.3s;
}

.drop-zone:hover .drop-zone-preview {
    opacity: 0.25;
}

.drop-zone-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.drop-zone-icon {
    color: #94a3b8;
    transition: color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.drop-zone:hover .drop-zone-icon {
    color: var(--primary);
}

/* Responsive */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 40;
    backdrop-filter: blur(4px);
}
.sidebar-backdrop.show {
    display: block;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .btn-logout-top {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    .sticky-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .sticky-header .flex {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }
    .sticky-header .header-actions {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
    }
    .btn-preview-premium {
        width: 100%;
        justify-content: center;
    }
    .mobile-menu-btn {
        display: block;
    }
}
