/* =====================================================================
   Admin Panel Stylesheet
   ===================================================================== */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f6f8;
}

.admin-wrapper { display: flex; min-height: 100vh; }

/* ===== Sidebar ===== */
.sidebar {
    width: 250px;
    min-height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    transition: transform 0.3s;
    z-index: 1050;
}
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 700;
}
.logo-badge {
    width: 32px; height: 32px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.sidebar-nav {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
}
.sidebar-group-label {
    color: rgba(255,255,255,0.45);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 14px 6px;
    margin-top: 4px;
}
.sidebar-group-label:first-child { margin-top: 0; }
.nav-link-admin {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 3px;
    transition: background 0.2s, color 0.2s;
}
.nav-link-admin:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
}
.nav-link-admin.active {
    background: #f26522;
    color: #fff;
}
.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
}

/* ===== Main content ===== */
.main-content {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.topbar {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.topbar h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0;
}
.content-body {
    padding: 24px;
    flex: 1;
    max-width: 1100px;
}

/* ===== Cards / forms ===== */
.section-title-admin h2 { color: #0a0a0a; font-size: 1.4rem; font-weight: 700; margin: 0; }
.section-title-admin p { color: #6b7280; font-size: 0.9rem; margin: 4px 0 0; }

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 8px;
    background: rgba(11,59,96,0.1);
    color: #0a0a0a;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.stat-value { font-size: 1.5rem; font-weight: 700; color: #0a0a0a; line-height: 1.1; }
.stat-label { color: #6b7280; font-size: 0.85rem; }

/* Item list rows */
.item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 10px;
}
.item-row .item-info { display: flex; align-items: center; gap: 12px; }
.move-btns { display: flex; flex-direction: column; }
.move-btns button {
    border: none; background: transparent; color: #9ca3af;
    font-size: 10px; cursor: pointer; padding: 1px 4px; line-height: 1;
}
.move-btns button:hover { color: #0a0a0a; }
.move-btns button:disabled { opacity: 0.3; cursor: default; }

/* Toast / alert */
.alert-soft { border-radius: 8px; }

/* Color input */
input[type="color"] {
    width: 48px; height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    padding: 2px;
}

/* Form labels */
.form-label { font-weight: 600; font-size: 0.875rem; color: #374151; }

/* Login screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000, #0a0a0a);
    padding: 20px;
}
.login-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
}
.login-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    background: #0a0a0a;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 28px;
}

/* WYSIWYG page content preview */
.page-content-preview { line-height: 1.7; }
.page-content-preview h1, .page-content-preview h2, .page-content-preview h3 { color: #0a0a0a; }
.page-content-preview img { max-width: 100%; border-radius: 8px; }

/* Mobile sidebar toggle */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
}

/* ===== Navbar Style Selector (admin) ===== */
.navbar-style-option {
    cursor: pointer;
    display: block;
}
.navbar-style-option input[type="radio"] {
    display: none;
}
.navbar-style-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s;
    background: #fff;
    height: 100%;
}
.navbar-style-card:hover {
    border-color: #f26522;
    background: #fff8f3;
}
.navbar-style-card.selected {
    border-color: #f26522;
    background: #fff5ee;
    box-shadow: 0 0 0 3px rgba(242,101,34,0.15);
}
.navbar-mini-preview {
    display: flex;
    gap: 4px;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #555;
    min-height: 28px;
    align-items: center;
}
.navbar-mini-preview span { padding: 2px 6px; border-radius: 3px; }
/* Mini previews per style */
.navbar-mini-classic span { border-bottom: 2px solid transparent; }
.navbar-mini-classic span:hover { border-bottom-color: #f26522; color: #f26522; }
.navbar-mini-pill span { background: #f26522; color: #fff; border-radius: 12px; }
.navbar-mini-glossy span {
    background: linear-gradient(180deg, #ff8540, #f26522);
    color: #fff; border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.navbar-mini-folder span {
    background: #e5e7eb; color: #555;
    clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
    padding: 4px 10px;
}
.navbar-mini-folder span:first-child { background: #0a0a0a; color: #fff; }
.navbar-mini-icon_grid {
    flex-direction: row; gap: 2px;
}
.navbar-mini-icon_grid span {
    display: flex; flex-direction: column; align-items: center;
    background: #0a0a0a; color: #fff; padding: 4px 6px; border-radius: 4px;
    font-size: 8px;
}
.navbar-mini-icon_grid span::before { content: "\f015"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 9px; }
.navbar-mini-block {
    border-bottom: 3px solid #0a0a0a;
}
.navbar-mini-block span { border-radius: 0; }
.navbar-mini-block span:hover { background: #0a0a0a; color: #fff; }
