/* =============================================================================
   Soulan Jo — Admin Panel Custom Overrides
   Same structure as Multilayers Sales admin, Soulan Jo brand colors.
   Primary: #001C49 (navy)   Accent/links: #0099FF (blue)
   ============================================================================= */

/* ── Soulan Jo brand palette ─────────────────────────────────────────────────
   common.css already defines these, but theme-lock.js sets --primary-600 via
   inline style. Redeclaring here ensures the admin always wins the cascade.   */
:root {
    --primary-50: #e8edf5;
    --primary-100: #c2cedf;
    --primary-200: #99adc8;
    --primary-300: #6f8cb1;
    --primary-400: #4d71a0;
    --primary-500: #2b5790;
    --primary-600: #001C49;
    --primary-700: #001030;
    --primary-800: #000820;
    --primary-900: #00040f;
    --primary-light: rgba(0, 28, 73, 0.15);
    --primary-light-white: rgba(0, 28, 73, 0.25);

    --bs-primary: #001C49;
    --bs-primary-rgb: 0, 28, 73;
    --bs-link-color: #0099FF;
    --bs-link-color-rgb: 0, 153, 255;
    --bs-link-hover-color: #0077cc;
}

/* ── Bootstrap btn-primary ───────────────────────────────────────────────── */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #001C49;
    --bs-btn-border-color: #001C49;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #001030;
    --bs-btn-hover-border-color: #001030;
    --bs-btn-focus-shadow-rgb: 0, 28, 73;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #000820;
    --bs-btn-active-border-color: #00040f;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #001C49;
    --bs-btn-disabled-border-color: #001C49;
}

/* ── Bootstrap btn-info — Soulan Jo blue (#0099FF) ───────────────────────── */
.btn-info {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0099FF;
    --bs-btn-border-color: #0099FF;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0077cc;
    --bs-btn-hover-border-color: #0077cc;
    --bs-btn-focus-shadow-rgb: 0, 153, 255;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0088e0;
    --bs-btn-active-border-color: #0088e0;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0099FF;
    --bs-btn-disabled-border-color: #0099FF;
}

.btn-outline-info {
    --bs-btn-color: #0099FF;
    --bs-btn-border-color: #0099FF;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0099FF;
    --bs-btn-hover-border-color: #0099FF;
    --bs-btn-focus-shadow-rgb: 0, 153, 255;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0077cc;
    --bs-btn-active-border-color: #0077cc;
}

/* ── Bootstrap btn-outline-primary ──────────────────────────────────────── */
.btn-outline-primary {
    --bs-btn-color: #001C49;
    --bs-btn-border-color: #001C49;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #001C49;
    --bs-btn-hover-border-color: #001C49;
    --bs-btn-focus-shadow-rgb: 0, 28, 73;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #001030;
    --bs-btn-active-border-color: #001030;
    --bs-btn-disabled-color: #001C49;
    --bs-btn-disabled-border-color: #001C49;
}

/* ── Bootstrap utility overrides ─────────────────────────────────────────── */
a {
    color: #0099FF;
}

a:hover {
    color: #0077cc;
}

.text-primary {
    color: #001C49 !important;
}

.bg-primary {
    background-color: #001C49 !important;
}

.bg-primary-600 {
    background-color: #001C49 !important;
}

.border-primary {
    border-color: #001C49 !important;
}

.link-primary {
    color: #0099FF !important;
}

.link-primary:hover {
    color: #0077cc !important;
}

.text-accent {
    color: #0099FF !important;
}

.text-primary-brand {
    color: #001C49 !important;
}

/* ── Filter search field with leading icon ───────────────────────────────── */
.filter-search-wrap {
    position: relative;
}

.filter-search-wrap .filter-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .9375rem;
    color: var(--text-secondary-light);
    pointer-events: none;
    z-index: 1;
}

.filter-search-wrap .form-control {
    padding-left: 2rem;
}

/* ── form-select arrow — restore proper inset ─────────────────────────────── */
.form-select {
    background-position: right .75rem center;
}

/* ── input-group ──────────────────────────────────────────────────────────── */
.input-group-text {
    border-color: var(--input-form-light, #d1d5db);
    background-color: var(--white, #fff);
    color: var(--text-secondary-light);
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control,
.input-group:focus-within .form-select {
    border-color: #0099FF !important;
}

/* ── Form focus ring ─────────────────────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
    border-color: #0099FF !important;
    box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.2) !important;
}

/* ── Topbar user dropdown — suppress Bootstrap caret ─────────────────────── */
.navbar-header .dropdown>button::after {
    display: none;
}

/* ── Sidebar toggle chevron ─────────────────────────────────────────────── */
.sidebar-toggle .icon,
.sidebar-mobile-toggle .icon {
    font-size: 1.0rem;
}

/* ── Toast slide-in animation (used by custom.js showToast) ─────────────── */
@keyframes appToastIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── SweetAlert2 Wowdash Theme ───────────────────────────────────────────── */
.swal2-popup:not(.swal2-toast) {
    border-radius: 16px !important;
    padding: 2rem 2rem 1.75rem !important;
    font-family: inherit !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .18) !important;
    border: none !important;
    background: #fff !important;
}

.swal2-popup:not(.swal2-toast) .swal2-title {
    font-size: 1.0625rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    padding: 0 0 .375rem !important;
    margin: 0 !important;
}

.swal2-popup:not(.swal2-toast) .swal2-html-container {
    font-size: .875rem !important;
    color: #6b7280 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

.swal2-popup:not(.swal2-toast) .swal2-icon {
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto 1.25rem !important;
    border-width: 2px !important;
}

.swal2-popup:not(.swal2-toast) .swal2-icon .swal2-icon-content {
    font-size: 2.25rem !important;
}

.swal2-confirm,
.swal2-cancel,
.swal2-deny {
    border-radius: 8px !important;
    padding: 8px 22px !important;
    font-size: .875rem !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    border: none !important;
    line-height: 1.4 !important;
}

.swal2-popup:not(.swal2-toast) .swal2-actions {
    gap: 8px !important;
    margin-top: 1.5rem !important;
    padding: 0 !important;
}

.swal2-timer-progress-bar {
    border-radius: 0 0 16px 16px !important;
}

.swal2-backdrop-show {
    background: rgba(0, 0, 0, .45) !important;
}

.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    backdrop-filter: blur(2px);
}

.swal2-popup.swal2-toast {
    background: #fff !important;
    border-radius: 10px !important;
    padding: .625em 1em !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12) !important;
    font-family: inherit !important;
    border: 1px solid #e9ecef !important;
    gap: .5em !important;
}

.swal2-popup.swal2-toast .swal2-title {
    font-size: .875rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.swal2-popup.swal2-toast .swal2-icon {
    width: 1.5em !important;
    height: 1.5em !important;
    margin: 0 !important;
    border-width: 2px !important;
}

.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content {
    font-size: 1em !important;
}

/* ── DataTables 2.x Bootstrap/Wowdash Integration ───────────────────────── */
div.dt-container {
    position: relative;
}

div.dt-container div.dt-layout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
}

div.dt-container div.dt-layout-row.dt-layout-table {
    display: block;
    padding: 0;
}

div.dt-container div.dt-layout-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

div.dt-container label.dt-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

div.dt-container .dt-search input,
div.dt-container input.dt-input {
    padding: 7px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .8125rem;
    background: transparent;
    color: inherit;
    min-width: 200px;
    outline: none;
    margin: 0;
    transition: border-color .15s, box-shadow .15s;
}

div.dt-container .dt-search input:focus {
    border-color: #0099FF;
    box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.2);
}

div.dt-container .dt-length {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

div.dt-container .dt-length label {
    display: inline;
    margin: 0;
    white-space: nowrap;
    font-size: .875rem;
}

div.dt-container select.dt-input {
    padding: 6px 28px 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .8125rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

div.dt-container .dt-info {
    font-size: .8125rem;
    color: #6b7280;
    white-space: nowrap;
}

div.dt-container .dt-paging {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

div.dt-container .dt-paging .dt-paging-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: .875rem;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
    transition: all .15s;
    line-height: 1;
}

div.dt-container .dt-paging .dt-paging-button:hover:not(.disabled):not(.current) {
    background: var(--primary-50);
    border-color: var(--primary-100);
    color: var(--primary-600) !important;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
    background: #001C49 !important;
    border-color: #001C49 !important;
    color: #fff !important;
}

div.dt-container .dt-paging .dt-paging-button.disabled,
div.dt-container .dt-paging .dt-paging-button.disabled:hover {
    opacity: .35;
    cursor: default;
    background: transparent !important;
    border-color: transparent !important;
    color: inherit !important;
}

div.dt-processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, .96);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    z-index: 100;
    white-space: nowrap;
    font-size: .875rem;
}

div.dt-processing>div:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

div.dt-processing>div:last-child {
    display: none !important;
}

div.dt-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

button.dt-button {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 6px 14px !important;
    font-size: .8125rem !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all .15s !important;
    font-weight: 500;
    line-height: 1.4;
}

button.dt-button.btn-success {
    background: #198754 !important;
    color: #fff !important;
    border: 1px solid #198754 !important;
    box-shadow: none !important;
}

button.dt-button.btn-success:hover {
    background: #157347 !important;
    border-color: #146c43 !important;
}

@media (max-width: 767px) {
    div.dt-container div.dt-layout-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    div.dt-container div.dt-layout-cell {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    div.dt-container .dt-length,
    div.dt-container .dt-search,
    div.dt-container .dt-buttons {
        width: 100%;
    }

    div.dt-container .dt-search input,
    div.dt-container input.dt-input {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    div.dt-container button.dt-button {
        width: 100%;
        justify-content: center;
    }

    div.dt-container .dt-paging {
        justify-content: center;
        width: 100%;
    }

    div.dt-container .dt-info {
        width: 100%;
        text-align: center;
    }
}

/* ── DataTables Responsive extension ─────────────────────────────────────── */
td.dtr-control {
    cursor: pointer;
    white-space: nowrap;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control::before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control::before {
    border-left-color: #001C49 !important;
}

table.dataTable.dtr-inline.collapsed>tbody>tr.dtr-expanded>td.dtr-control::before,
table.dataTable.dtr-inline.collapsed>tbody>tr.dtr-expanded>th.dtr-control::before {
    border-left-color: #001030 !important;
    border-top: 10px solid transparent !important;
}

tr.child td.child {
    background: var(--primary-50) !important;
    padding: 10px 16px !important;
}

tr.child ul.dtr-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

tr.child ul.dtr-details li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: .8125rem;
    border-bottom: 1px dashed var(--neutral-200);
    padding-bottom: 6px;
}

tr.child ul.dtr-details li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

tr.child ul.dtr-details .dtr-title {
    font-weight: 600;
    min-width: 90px;
    flex-shrink: 0;
    color: var(--text-primary-light);
}

tr.child ul.dtr-details .dtr-data {
    color: var(--text-secondary-light);
}

/* ── Activity Log page ───────────────────────────────────────────────────── */
.btn-log-changes {
    padding: .2rem .55rem;
    font-size: .75rem;
}

#changes-body td {
    font-size: .82rem;
    word-break: break-all;
    vertical-align: top;
}

.old-val {
    color: #dc3545;
}

.new-val {
    color: #198754;
}

/* ── Sidebar — Soulan Jo navy brand ──────────────────────────────────────── */
.sidebar {
    background-color: #fff !important;
    border-right: 1px solid #e2e8f0;
}

.sidebar .sidebar-logo {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-menu-group-title {
    color: #9aa4b2 !important;
    font-size: .6875rem !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

.sidebar-menu li>a {
    color: #374151 !important;
    transition: color .15s, background .15s, border-left .15s;
}

.sidebar-menu li>a:hover {
    color: #001C49 !important;
    background: rgba(0, 28, 73, 0.05) !important;
}

.sidebar-menu li.active-page>a,
.sidebar-menu li>a.active-page {
    color: #001C49 !important;
    background: rgba(0, 28, 73, 0.08) !important;
    border-left: 3px solid #001C49 !important;
    font-weight: 600;
}

/* ── Collapsed sidebar: center icons ────────────────────────────────────── */
.sidebar.active .sidebar-menu li a {
    justify-content: center;
}

.sidebar.active:hover .sidebar-menu li a {
    justify-content: flex-start;
}

/* ── Sidebar logo ────────────────────────────────────────────────────────── */
.sidebar-logo img {
    max-height: 2.25rem !important;
}

/* ── Button base ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
}

.btn.d-block,
.btn.w-100 {
    display: flex !important;
    width: 100%;
}

/* Circular icon-only action buttons — fixed size, perfectly centred */
.btn.rounded-circle.btn-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.btn.rounded-circle.btn-sm i {
    font-size: .9rem;
    line-height: 1;
    display: block;
    margin: 0;
}

/* Action button group — form.d-inline must be inline-flex to align in a flex row */
form.d-inline {
    display: inline-flex !important;
    align-items: center;
}

/* ── Tables ──────────────────────────────────────────────────────────────── */
table.dataTable {
    width: 100% !important;
}

table.dataTable th,
table.dataTable td {
    white-space: normal !important;
    word-break: break-word;
}

table.dataTable th.text-center,
table.dataTable td.text-center,
table.dataTable th.text-end,
table.dataTable td.text-end {
    white-space: nowrap !important;
    word-break: normal;
}

/* ── Checkbox / radio alignment ─────────────────────────────────────────── */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: unset;
    padding-left: 0;
}

.form-check .form-check-input {
    margin-top: 0;
    flex-shrink: 0;
}

.form-check .form-check-label {
    cursor: pointer;
    margin-bottom: 0;
}

/* ── Reorder drag-drop list ──────────────────────────────────────────────── */
#reorder-list li {
    user-select: none;
    transition: background .12s, border-left .12s;
}

#reorder-list li[draggable="true"] {
    cursor: grab;
}

#reorder-list li[draggable="true"]:active {
    cursor: grabbing;
}

#reorder-list li.drag-over {
    background: rgba(0, 28, 73, .08);
    border-left: 3px solid #001C49;
}

/* ── Pending approval badge ──────────────────────────────────────────────── */
.badge-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
    font-size: .7rem;
    padding: .2rem .5rem;
    border-radius: 50rem;
    font-weight: 600;
    margin-left: auto;
}

/* ── Validation errors ───────────────────────────────────────────────────── */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .15) !important;
}

.invalid-feedback {
    color: #dc3545 !important;
}

/* ── Breadcrumb list ─────────────────────────────────────────────────────── */
.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-list li+li::before {
    content: "/";
    margin: 0 6px;
    color: #9aa4b2;
    font-weight: 400;
}

/* ── Topbar user avatar (initials circle) ────────────────────────────────── */
.topbar-user-avatar {
    font-size: .875rem;
    letter-spacing: .5px;
}

.topbar-avatar-img {
    object-fit: cover;
}

/* ── Icon boxes ──────────────────────────────────────────────────────────── */
.icon-box-sm {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 28, 73, .07);
    color: #001C49;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.icon-box-xs {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 28, 73, .07);
    color: #001C49;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}

/* ── Card header — white background, consistent border, Wowdash spacing ─── */
.dashboard-main-body .card>.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--neutral-200, #e5e7eb) !important;
    padding: .875rem 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-main-body .card>.card-header h5,
.dashboard-main-body .card>.card-header h6 {
    margin-bottom: 0;
    font-weight: 600;
}

/* ── Dashboard stat cards ────────────────────────────────────────────────── */
.sj-stat-card {
    border: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    border-radius: 10px;
}

.sj-stat-card.indigo {
    border-left: 4px solid #6366f1 !important;
}

.sj-stat-card.emerald {
    border-left: 4px solid #10b981 !important;
}

.sj-stat-card.navy {
    border-left: 4px solid #001C49 !important;
}

.sj-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.sj-stat-icon.indigo {
    background: rgba(99, 102, 241, .1);
    color: #6366f1;
}

.sj-stat-icon.emerald {
    background: rgba(16, 185, 129, .1);
    color: #10b981;
}

.sj-stat-icon.navy {
    background: rgba(0, 28, 73, .1);
    color: #001C49;
}

/* ── Avatar circle sizes ─────────────────────────────────────────────────── */
.sj-avatar-44 {
    width: 44px !important;
    height: 44px !important;
}

.sj-avatar-42 {
    width: 42px !important;
    height: 42px !important;
    font-size: .95rem;
    font-weight: 600;
}

.sj-avatar-90 {
    width: 90px !important;
    height: 90px !important;
    font-size: 1.8rem;
}

.sj-avatar-edit {
    border: 3px solid #001C49 !important;
}

.admin-avatar-lg {
    width: 80px;
    height: 80px;
    font-size: 1.6rem;
    font-weight: 700;
}

.sj-avatar-100 {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    border: 3px solid #001C49 !important;
    font-size: 2rem;
}

.sj-avatar-60 {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    font-size: 1.4rem;
}

/* ── Text / size utilities ───────────────────────────────────────────────── */
.sj-text-xs {
    font-size: .7rem !important;
}

.sj-icon-2rem {
    font-size: 2rem;
}

.sj-icon-3rem {
    font-size: 3rem;
}

.sj-card-radius {
    border-radius: 10px;
}

.sj-min-h-60 {
    min-height: 60px;
}

.sj-drag-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ── Image preview thumbnails ────────────────────────────────────────────── */
.img-preview-thumb {
    max-height: 80px;
    max-width: 260px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #b3d4f5;
    background: #f0f6ff;
    padding: 6px;
}

.img-preview-thumb-sm {
    max-height: 48px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #b3d4f5;
    background: #f0f6ff;
    padding: 4px;
}

/* ── Form info box ───────────────────────────────────────────────────────── */
.sj-info-box {
    background: #f0f6ff;
    border: 1px solid #b3d4f5;
}

/* ── Legal content ───────────────────────────────────────────────────────── */
.legal-content h1,
.legal-content h2,
.legal-content h3 {
    color: #001C49;
}

.legal-content p {
    line-height: 1.8;
}

/* ── SEO section labels ──────────────────────────────────────────────────── */
.seo-section-label {
    font-size: .75rem !important;
    letter-spacing: .06em;
}

.seo-preview-label {
    font-size: .7rem !important;
    letter-spacing: .05em;
}

.seo-preview-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a0dab;
}

/* ── Auth layout ─────────────────────────────────────────────────────────── */
.auth-body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #001030 0%, #001C49 55%, #003380 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-wrapper {
    display: flex;
    width: 100%;
    max-width: 960px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .30);
    animation: fadeUp .35s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-left {
    flex: 0 0 44%;
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

.auth-left img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.auth-left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0, 16, 48, .75) 0%, rgba(0, 28, 73, .50) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px 32px;
}

.auth-left-tagline {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.2px;
    margin-bottom: 8px;
}

.auth-left-sub {
    color: rgba(255, 255, 255, .65);
    font-size: .82rem;
}

.auth-right {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 48px;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}

.auth-logo img {
    max-height: 72px;
    width: auto;
}

.auth-heading h4 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f1825;
    letter-spacing: -.3px;
    margin-bottom: 6px;
}

.auth-heading p {
    font-size: .875rem;
    color: #6b7280;
    margin-bottom: 28px;
}

.auth-right .btn-primary {
    font-weight: 600;
}

@media (max-width: 991px) {
    .auth-wrapper {
        max-width: 720px;
    }

    .auth-left {
        flex: 0 0 40%;
        min-height: 480px;
    }

    .auth-right {
        padding: 44px 40px;
    }

    .auth-left-tagline {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .auth-body {
        padding: 12px;
        align-items: flex-start;
        padding-top: 32px;
    }

    .auth-wrapper {
        flex-direction: column;
        max-width: 480px;
        margin: 0 auto;
        border-radius: 16px;
    }

    .auth-left {
        flex: none;
        width: 100%;
        min-height: 0;
        height: auto;
    }

    .auth-left img {
        display: none;
    }

    .auth-left-overlay {
        position: static;
        background: linear-gradient(110deg, #001030 0%, #001C49 100%);
        padding: 20px 28px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .auth-left-tagline {
        font-size: .95rem;
        margin-bottom: 2px;
    }

    .auth-left-sub {
        font-size: .75rem;
    }

    .auth-right {
        padding: 32px 28px 40px;
    }

    .auth-logo {
        margin-bottom: 24px;
    }

    .auth-logo img {
        max-height: 60px;
    }

    .auth-heading h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 479px) {
    .auth-body {
        padding: 0;
        align-items: stretch;
        background: #fff;
    }

    .auth-wrapper {
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
        max-width: 100%;
    }

    .auth-left-overlay {
        padding: 20px 20px 18px;
    }

    .auth-right {
        padding: 28px 20px 40px;
        flex: 1;
    }

    .auth-heading h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 359px) {
    .auth-right {
        padding: 24px 16px 36px;
    }
}