@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --sidebar-width: 260px;
    --header-height: 64px;
    --bg-body: #f0f2f5;
    --bg-sidebar: #1e293b;
    --bg-sidebar-hover: #2a3a52;
    --bg-sidebar-active: rgba(212, 168, 67, 0.15);
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f8f9fb;
    --border-color: #e2e8f0;
    --border-sidebar: #2d3d55;
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-sidebar: #94a3b8;
    --text-sidebar-active: #d4a843;
    --accent: #d4a843;
    --accent-hover: #e6bc5a;
    --accent-light: rgba(212, 168, 67, 0.1);
    --accent-dark: rgba(212, 168, 67, 0.15);
    --danger: #ef4444;
    --success: #22c55e;
    --info: #3b82f6;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== SIDEBAR (Dark) ===== */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-sidebar);
    gap: 12px;
    flex-shrink: 0;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
}

.sidebar-brand h2 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.sidebar-brand span {
    font-size: 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #546580;
    padding: 12px 16px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    border-radius: 8px;
    margin-bottom: 2px;
    color: var(--text-sidebar);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-sidebar-hover);
    color: #e2e8f0;
}

.nav-item.active {
    background: var(--bg-sidebar-active);
    color: var(--accent);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 28px;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.6;
}

.nav-item.active svg,
.nav-item:hover svg {
    opacity: 1;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-sidebar);
    flex-shrink: 0;
}

.sidebar-footer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg-sidebar-hover);
}

.sidebar-footer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #b8922e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-footer-detail h4 {
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
}

.sidebar-footer-detail span {
    font-size: 11px;
    color: #546580;
}

/* ===== HEADER (White) ===== */
.admin-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-title h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-title p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-clock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-input);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-clock svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.header-date {
    color: var(--text-muted);
    font-size: 12px;
    margin-right: 6px;
    padding-right: 10px;
    border-right: 1px solid var(--border-color);
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.header-btn svg {
    width: 18px;
    height: 18px;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    border-radius: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.header-profile:hover {
    border-color: var(--accent);
}

.header-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), #b8922e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
}

.header-profile-info {
    display: flex;
    flex-direction: column;
}

.header-profile-info span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-profile-info small {
    font-size: 10.5px;
    color: var(--text-muted);
}

.header-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 180px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px;
    display: none;
    box-shadow: var(--shadow-lg);
}

.header-dropdown.show {
    display: block;
}

.header-dropdown a,
.header-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.header-dropdown a:hover,
.header-dropdown button:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.header-dropdown svg {
    width: 16px;
    height: 16px;
}

.logout-btn {
    color: var(--danger) !important;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: var(--danger) !important;
}

/* ===== MAIN CONTENT ===== */
.admin-main {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 28px;
    min-height: calc(100vh - var(--header-height));
}

/* ===== DASHBOARD CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon svg {
    width: 20px;
    height: 20px;
}

.stat-card-icon.gold {
    background: var(--accent-light);
    color: var(--accent);
}

.stat-card-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.stat-card-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.stat-card-icon.red {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
}

.stat-card-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-card-footer {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 28px;
}

.page-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== CONTENT CARD ===== */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.content-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.content-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== PLACEHOLDER ===== */
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.placeholder-content svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.3;
}

.placeholder-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.placeholder-content p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 400px;
}

/* ===== LOGIN ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), #b8922e);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.login-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-header p {
    font-size: 13px;
    color: var(--text-muted);
}

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

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
    background: var(--bg-white);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.btn-primary {
    padding: 13px;
    background: linear-gradient(135deg, var(--accent), #b8922e);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
}

.login-card .btn-primary {
    width: 100%;
}

.form-error {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown-toggle {
    justify-content: flex-start;
}

.nav-dropdown-arrow {
    width: 16px !important;
    height: 16px !important;
    margin-left: auto;
    transition: transform 0.2s ease;
    opacity: 0.5 !important;
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.nav-dropdown.open .nav-dropdown-menu {
    max-height: 300px;
}

.nav-sub-item {
    display: block;
    padding: 9px 16px 9px 52px;
    font-size: 13px;
    color: var(--text-sidebar);
    border-radius: 6px;
    margin-bottom: 1px;
    transition: all 0.15s ease;
    position: relative;
}

.nav-sub-item::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.3;
    transform: translateY(-50%);
}

.nav-sub-item:hover {
    color: #e2e8f0;
    background: var(--bg-sidebar-hover);
}

.nav-sub-item.active {
    color: var(--accent);
}

.nav-sub-item.active::before {
    opacity: 1;
    background: var(--accent);
}

/* ===== IMAGE PREVIEW ===== */
.image-preview {
    width: 200px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.image-preview-sm {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* ===== SECTION CONTENT (tabbed sections) ===== */
.section-content {
    display: none;
}

.section-content.active {
    display: block;
}

/* ===== IMAGE UPLOAD PREVIEW ===== */
.image-upload-wrapper {
    position: relative;
}

.image-upload-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: fit-content;
}

.image-upload-preview img {
    max-width: 200px;
    max-height: 120px;
    border-radius: 6px;
    object-fit: cover;
}

.image-upload-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: 2px solid var(--bg-card);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.image-upload-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.image-upload-preview {
    position: relative;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-delete-btn {
    padding: 8px 14px;
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* ===== CKEDITOR OVERRIDE ===== */
.ck-editor__editable {
    min-height: 180px !important;
    background: var(--bg-input) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.ck.ck-editor__editable:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-light) !important;
}

/* ===== STEP CARDS ===== */
.step-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .step-cards {
        grid-template-columns: 1fr;
    }
}

.step-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.step-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* ===== NAV BADGE ===== */
.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}

.tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== FORM GRID ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row.three {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {
    .form-row, .form-row.three {
        grid-template-columns: 1fr;
    }
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
    resize: vertical;
    min-height: 80px;
}

.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
    background: var(--bg-white);
}

.form-hint {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #b8922e);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
    width: auto;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

/* ===== ALERT ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* ===== TABLE ===== */
.table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 16px;
    font-size: 13.5px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--bg-input);
}

.admin-table .text-muted {
    color: var(--text-muted);
    font-size: 12px;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
}

/* ===== DETAIL VIEW ===== */
.detail-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px 20px;
    font-size: 13.5px;
}

.detail-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-value {
    color: var(--text-primary);
}

/* ===== PAGINATION ===== */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.pagination-wrapper .page-link {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-white);
    transition: all 0.15s ease;
}

.pagination-wrapper .page-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-wrapper .active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pagination-wrapper .disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* Laravel default pagination */
nav[role="navigation"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

nav[role="navigation"] > div:first-child {
    font-size: 13px;
    color: var(--text-secondary);
}

nav[role="navigation"] > div:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

nav[role="navigation"] > div:last-child > div {
    display: none;
}

nav[role="navigation"] > div:last-child > span {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav[role="navigation"] span[aria-current="page"] > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

nav[role="navigation"] a,
nav[role="navigation"] span:not([aria-current="page"]) > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-white);
    transition: all 0.15s ease;
    text-decoration: none;
}

nav[role="navigation"] a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

nav[role="navigation"] a svg,
nav[role="navigation"] span svg {
    width: 16px;
    height: 16px;
}

nav[role="navigation"] .cursor-default {
    opacity: 0.4;
    pointer-events: none;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.empty-state p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== MOBILE ===== */
.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
}

.mobile-toggle svg {
    width: 20px;
    height: 20px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .admin-header {
        left: 0;
    }

    .admin-main {
        margin-left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-date {
        display: none;
    }

    .header-profile-info {
        display: none;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== PASSWORD TOGGLE ===== */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--text-primary);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.password-toggle .eye-off {
    display: none;
}

.password-toggle.active .eye-on {
    display: none;
}

.password-toggle.active .eye-off {
    display: block;
}
