/* ---------------------------
GLOBAL VARIABLES (FIGMA)
---------------------------- */
:root {
    --brand-primary: #1B3965;
    --brand-dark: #131517;
    
    --border-card: #EAECF0;
    --border-input: #475569;
    --border-focus:#1b396587;
    
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    
    --text-heading: #131517;
    --text-label: #131517;
    --text-placeholder: #1B3965;
    --text-muted: #475569;
    --bg-muted:#E7ECF3;
    --normal-text: #ffffff;
    --bg-light-blue:#DFECFF;
    --light-blue-text:#0068FF;
    --menu-active-blue:#ECEDFC;
    --menu-normal-grey:#5E5E62;
    --bg-light-grey:#FBFBFB;
    --paragraph-text-color:#6B7280;
    --menu-dark-grey:#4B5563;
    
    /* custom colors tables  */
    --success-text-color:#137A5F;
    --success-bg-color:#E8F5F1;
    --warning-text-color:#FFA602;
    --warning-bg-color:#FFF6E6;
    --primary-text-color:#0089E9;
    --primary-bg-color:#DEEFFF;
    --info-text-color:#5630BC;
    --info-bg-color:#F0ECFD;
    --danger-text-color:#FF0000;
    --danger-bg-color:#FFE5E5;
    
    
    /* ============================= */
    /*        BASE FONT FAMILY       */
    /* ============================= */
    --font-primary: "Roboto", sans-serif;
    
    /* ============================= */
    /*         TITLE / HEADINGS      */
    /* ============================= */
    
    /* Login Card Title */
    --font-title-lg-size: 28px;
    --font-title-lg-weight: 500;
    --font-title-lg-line: 36px;
    --font-title-lg-track: -0.2px;
    
    /* Input Labels + Small Titles */
    --font-sub-title-size: 16px;
    --font-sub-title-weight: 500;
    --font-sub-title-line: 24px;
    --font-sub-title-track: 0.15px;
    
    /* ============================= */
    /*        BODY / PARAGRAPHS      */
    /* ============================= */
    
    /* Placeholder + Body Large */
    --font-body-lg-size: 16px;
    --font-body-lg-weight: 400;
    --font-body-lg-line: 24px;
    --font-body-lg-track: 0.5px;
    
    /* ============================= */
    /*          LABEL / BUTTON       */
    /* ============================= */
    
    /* Button Text */
    --font-label-btn-size: 14px;
    --font-label-btn-weight: 600;
    --font-label-btn-line: 20px;
    --font-label-btn-track: 0.1px;
    
    /* link Text */
    --font-link-lg-size: 13px;
    --font-link-lg-weight: 500;
    --font-link-lg-line: 20px;
    --font-link-lg-track: 0.1px;
    
    /* paragraph text  */
    --font-para-size: 14px;
    --font-para-weight: 400;
    --font-para-line: 24px;
    --font-para-track: 0px;
}

/* ---------------------------
BASE
---------------------------- */
body {
    background: var(--bg-light);
    font-family: var(--font-primary);
    color: var(--brand-dark);
}

/* ---------------------------
APP LAYOUT
---------------------------- */
.app-layout {
    min-height: 100vh;
    display: flex;
    background: var(--bg-light);
}

.app-sidebar {
    width: 260px;
    background: var(--bg-white);
    color: #fff;
    padding: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-card);
}

.app-sidebar .brand {
    display: flex;
    align-items: center;
    height: 74px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-card);
}

.app-sidebar .brand img {
    width: 127px;
    height: 30px;
}


.sidebar-nav {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 32px 24px 0 24px;
}

.sidebar-nav a {
    color: var(--menu-normal-grey);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-label-btn-size);
    font-weight: var(--font-link-lg-weight);
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: var(--menu-active-blue);
    color:var(--brand-primary);
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-card);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 74px;
}

.app-header .page-meta h1 {
    font-size: var(--font-label-btn-size);
    font-weight: var(--font-label-btn-weight);
    margin-bottom: 2px;
}

.breadcrumb .breadcrumb-item a {
    font-size: var(--font-label-btn-size);
    font-weight: var(--font-label-btn-weight);
    color: var(--menu-normal-grey);
    text-decoration: none;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\f285"; 
    font-family: "bootstrap-icons" !important;
    font-weight: normal;
    display: inline-block;
    padding-right: 0.5rem;
}


.breadcrumb .breadcrumb-item.active {
    color: var(--brand-dark);
    font-size: var(--font-label-btn-size);
    font-weight: var(--font-label-btn-weight);
}

.app-header .page-meta p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.app-header .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.app-content {
    padding: 32px;
    flex: 1;
    background-color: var(--bg-light-grey);
}

.main-inner-invoice {
    /* max-width: 733px; */
    margin: 0 auto;
}

/* Header profile dropdown */
.header-profile {
    background: transparent;
    border: 0;
    padding: 0;
}

.header-profile img {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    object-fit: cover;
}

.header-profile-name {
    font-size: var(--font-label-btn-size);
    font-weight: var(--font-link-lg-weight);
    color: var(--menu-dark-grey);
}

.header-profile i {
    font-size: 12px;
}

.header-modal {
    border: 1px solid var(--border-card);
    border-color: var(--border-card);
}

.header-modal li a {
    color: var(--menu-dark-grey);
}

/* Invoice table refinements */
.invoice-table-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.invoice-table-card .table > :not(caption) > * > * {
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom-color: #f1f5f9;
}

.invoice-table-card .table thead th {
    border-bottom: 0;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: none;
    font-weight: 500;
    padding: 1rem 1rem;
}

.invoice-table-card .table thead th:first-child {
    border-top-left-radius: 10px !important;
}

.invoice-table-card .table thead th:last-child {
    border-top-right-radius: 10px !important;
}

.invoice-table-card .table tbody tr td {
    font-size: 14px;
    color: var(--brand-dark);
    font-weight: 500;
    padding: 1rem 1rem;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    justify-content: center !important;
}

.invoice-table-card .dataTables_wrapper .dataTables_paginate {
    width: 100% !important;
}

.invoice-table-card .datatable-footer #invoiceTable_previous .page-link,
.invoice-table-card .datatable-footer #usersTable_previous .page-link,
.invoice-table-card .datatable-footer #invoiceTable_next .page-link,
.invoice-table-card .datatable-footer #usersTable_next .page-link {
    border-radius: 9px !important;
    background-color: var(--bg-white);
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-dark);
    border: 1px solid var(--border-card);
}

.dataTables_paginate ul.pagination li:first-child {
    display: block !important;
    margin-right: auto !important;
}

.dataTables_paginate ul.pagination li:last-child {
    display: block !important;
    margin-left: auto !important;
}

.invoice-table-card .datatable-footer li.paginate_button.page-item a.page-link {
    border-radius: 5px !important;
    color: var(--brand-dark);
    font-size: var(--font-link-lg-size);
    font-weight: var(--font-link-lg-weight);
    margin-right: 10px;
    border: none;
}

.invoice-table-card .datatable-footer li.paginate_button.page-item.active a.page-link {
    border: 2px solid #dedede;
    background-color: var(--border-card);
}

.invoice-table-card .datatable-footer li.paginate_button.page-item a.page-link:focus {
    box-shadow: none;
}

.custom-dashboard-card {
    background: var(--bg-white);
    border-radius: 24px;
    border: 1px solid var(--border-card);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.overview-box {
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-card);
}

.overview-box h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px !important;
}

.overview-box span {
    font-size: var(--font-para-size);
    color: var(--menu-dark-grey);
    font-weight: 500;
}

.overview-box .icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: #fff;
}

.overview-box.pending {
    background: var(--info-bg-color);
    border-color: rgba(99, 102, 241, 0.25);
}

.overview-box.pending .icon-wrap {
    background: var(--info-text-color);
}

.overview-box.approved {
    background: var(--success-bg-color);
    border-color: rgba(16, 185, 129, 0.25);
}

.overview-box.approved .icon-wrap {
    background: var(--success-text-color);
}

.overview-box.rejected {
    background: var(--danger-bg-color);
    border-color: rgba(239, 68, 68, 0.25);
}

.overview-box.rejected .icon-wrap {
    background: var(--danger-text-color);
}

.overview-box.total {
    background: var(--primary-bg-color);
    border-color: rgba(27, 57, 101, 0.25);
}

.overview-box.total .icon-wrap {
    background: var(--primary-text-color);
}

.modal-body h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.modal-body p {
    font-size: 0.875rem;
    font-weight: normal;
}

.modal-body .btn-success {
    background-color: var(--success-text-color);
    border-color: var(--success-text-color);
    font-weight: var(--font-label-btn-weight);
}

.modal-body .btn-danger {
    background-color: var(--danger-text-color);
    border-color: var(--danger-text-color);
    font-weight: var(--font-label-btn-weight);
}

.modal-body .btn-warning {
    background-color: var(--warning-text-color);
    border-color: var(--warning-text-color);
    font-weight: var(--font-label-btn-weight);
}

.modal-body .btn-primary {
    background-color: var(--primary-text-color);
    border-color: var(--primary-text-color);
    font-weight: var(--font-label-btn-weight);
}

.confirmation-modal {
    border-radius: 24px;
    border: none;
}

.confirmation-modal.approve .modal-icon {
    background: var(--success-bg-color);
    color: var(--success-text-color);
}

.confirmation-modal.reject .modal-icon {
    background:var(--danger-bg-color);
    color: var(--danger-text-color);
}

.confirmation-modal.delete .modal-icon {
    background: var(--warning-bg-color);
    color: var(--warning-text-color);
}

.confirmation-modal.print .modal-icon {
    background: var(--primary-bg-color);
    color: var(--primary-text-color);
}

.confirmation-modal .modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto;
}

.invoice-table-card .table tbody tr:hover {
    background-color: #f9fafb;
}

.badge-status {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-status.pending {
    background: var(--info-bg-color);
    color: var(--info-text-color);
}

.badge-status.approved {
    background:var(--success-bg-color);
    color: var(--success-text-color);
}

.badge-status.rejected {
    background: var(--danger-bg-color);
    color: var(--danger-text-color);
}

.invoice-table-header {
    padding: 18px 24px 12px;
}

.invoice-table-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
}

.invoice-table-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.invoice-search {
    max-width: 260px;
}

.custom-datatable-form-search {
    border-color: var(--border-card) !important;
    background-color: var(--bg-light-grey);
}

.custom-datatable-form-search:focus {
    box-shadow: none !important;
    background-color: var(--bg-light-grey);
}

.custom-search-btn {
    border-color: var(--border-card) !important;
    background-color: var(--bg-light-grey) !important;
}

.datatable-footer {
    padding: 8px 16px 12px;
}

.datatable-footer .dataTables_paginate .pagination {
    margin-bottom: 0;
}

.datatable-footer .page-link {
    border-radius: 999px !important;
}

.datatable-footer .dataTables_info {
    font-size: 13px;
    color: var(--text-muted);
}

.invoice-table-card .dataTables_wrapper {
    padding: 0 0px 0px 0;
    border: 1px solid var(--border-card);
    border-radius: 12px;
}

.invoice-table-card .dataTables_wrapper table.dataTable {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.invoice-table-card .dataTables_wrapper .dataTables_info {
    font-size: 13px;
    color: var(--text-muted);
}

.invoice-table-card .dataTables_wrapper .dataTables_paginate {
    margin-top: 6px;
}

.action-dots {
    background-color: transparent;
    border: none;
    font-size: 18px;
}

/* Empty state card (create first invoice) */
.empty-state-card {
    max-width: 420px;
    width: 100%;
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--border-card);
    background: var(--bg-white);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.empty-icon {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    margin: 0 auto;
    background: var(--bg-light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--menu-normal-grey);
}

.paragrapgh-text {
    color: var(--paragraph-text-color) !important;
    font-size: var(--font-para-size);
    font-weight: var(--font-para-weight);
}

/* Create / Edit invoice canvas */

.invoice-create-title {
    font-size: 18px;
    font-weight: 600;
}

.invoice-action-buttons .btn {
    min-width: 120px;
}

.invoice-canvas,
.invoice-sheet {
    background: var(--bg-white);
    border-top: 4px solid var(--brand-primary);
    padding: 32px 40px 40px;
    margin-top: 16px;
    font-size: var(--font-sub-title-size);
    font-weight: var(--font-sub-title-weight);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.custom-invoice-col {
    width: 100%;
}

.custom-invoice-left {
    max-width: 45%;
    width: 100%;
}

.custom-invoice-right {
    max-width: 45%;
    width: 100%;
}

.custom-invoice {
    justify-content: space-between;
}

.custom-invoice label {
    /* font-size: 10px; */
    font-weight: 600;
}

.upload-field-label {
    width: 55%;
}

.custom-invoice input.form-control,
.custom-invoice input {
    font-size: 12px;
    font-weight: 300;
}

.custom-subtitle {
    font-size: var(--font-sub-title-size);
    font-weight: var(--font-sub-title-weight);
    color: var(--brand-dark);
}

.logo-file-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.invoice-info-card .form-label,
.logo-panel .form-label {
    font-size: 13px;
    color: var(--text-muted);
}

.logo-panel .logo-file-note {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.items-table {
    margin-top: 20px;
    border-radius: 4px;
}

.items-table thead th {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 500;
    border-color: var(--brand-primary);
}

.custom-invoice-items table,
.custom-invoice-items th,
.custom-invoice-items td,
.custom-invoice-items input,
.custom-invoice-items button {
    font-size: 12px !important;
}


.items-table tbody td {
    padding-block: 10px;
}

.add-item-row {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    border: 1px dashed var(--border-card);
    color: var(--brand-primary);
    cursor: pointer;
}

.custom-input-group-text {
    background-color: transparent;
    border: 1px solid var(--border-input);
    border-right: none;
    border-radius: 10px;
}

.custom-input-group {
    border-radius: 10px;
    transition: .2s ease;
}

.custom-input-group .form-control {
    border-left: none !important;
    text-align: right;
}

.custom-input-group.custom-group-focused {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 .2rem rgb(27 57 101 / 12%);
    z-index: 999;
    border-radius: 10px;
}

/* Remove only the focus glow for inputs inside custom group */
.custom-input-group .form-control:focus,
.custom-input-group .form-select:focus {
    box-shadow: none !important;
}

/* Summary card */
.invoice-summary-card {
    border: 1px solid var(--border-card);
    border-radius: 4px;
    font-size: 13px;
}

.custom-summary-card {
    max-width: 317px;
    width: 100%;
}

/* Dark blue title bar */
.summary-header {
    background: #163c6d;
    color: #fff;
    padding: 10px 14px;
    font-weight: 600;
    border-radius: 4px 4px 0 0;
}

/* Inner rows */
.summary-row {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-row:last-child {
    border-bottom: none;
}

/* Bold final value */
.summary-row.total strong {
    font-weight: 700;
}

/* Note box with dashed border */
.note-box {
    border: 2px dashed var(--border-card);
    border-radius: 6px;
    background-color: var(--bg-light-grey);
}

.note-box input::placeholder {
    font-size: 12px;
}

/* Profile page */
.profile-hero {
    position: relative;
}

.profile-cover {
    height: 160px;
    border-radius: 16px;
    background: linear-gradient(90deg, #1B3965, #3673CB);
}

.profile-avatar-wrapper {
    display: flex;
    align-items: end;
    gap: 16px;
    margin-top: -48px;
    margin-left: 32px;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: #f8fafc;
    border: 4px solid var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--brand-primary);
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    /* display: none; */
}

.profile-avatar.has-image i {
    display: none;
}

.profile-avatar.has-image img {
    display: block;
}
.profile-avatar-main {
    width: 114px;
    height: 114px;
    border-radius: 999px;
    border: 4px solid white;
    display: flex;
}

.avatar-edit-btn {
    position: absolute;
    top: 84%;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.profile-basic h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.profile-card {
    border-radius: 16px;
    border: 1px solid var(--border-card);
}

.profile-card .card-header {
    background: transparent;
    border-bottom: none;
    border-radius: 16px 16px 0px 0px;
}

.profile-card .form-control,
.profile-card .form-select {
    border-radius: 10px;
}

.profile-card .card-header button {
    padding-inline: 18px;
}

.profile-card .phone-field {
    display: flex;
    gap: 12px;
}

.profile-card .phone-field .form-select {
    max-width: 120px;
}

.profile-card .phone-field .form-control {
    flex: 1;
}

.card-body .form-control {
    border: 1px solid var(--border-card);
}

.custom-file-input-grey::file-selector-button {
    background-color: #e0e0e0;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    margin-left: -5px;
    cursor: pointer;
}

@media (max-width: 767px) {
    .app-layout {
        flex-direction: column;
    }
    .app-sidebar {
        width: 100%;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 12px;
    }
    .app-sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .sidebar-nav {
        padding: 0px 16px 0 16px;
    }
    .app-content {
        padding: 20px;
    }
    
    
    .app-sidebar .brand {
        height: 60px;
        border-bottom: none;
    }
    .app-header {
        height: 50px;
        border-top: 1px solid var(--border-card);
    }
    
    /* invoiceedit-page */
    .main-inner-invoice {
        max-width: unset;
        margin: unset;
    }
    
    .custom-invoice-left {
        max-width: 100%;
        width: 100%;
    }
    
    .custom-invoice-right {
        max-width: 100%;
        width: 100%;
    }
    
    .invoice-canvas, .invoice-sheet {
        padding: 12px 20px 20px;
    }
    
    /* button styling  */
    
    .custom-filter-btn,
    .auth-btn-outline,
    .auth-btn {
        font-size: 12px !important;
    }
    
    .custom-input-group-text {
        padding: 5px;
    }
    
    .custom-input-group .form-control {
        padding: 12px 5px;
    }

    .profile-card .card-header {
    display: block !important;
}
    
}
@media (min-width:768px) and (max-width:1024px) {
    .app-layout {
        flex-direction: column;
    }
    
    .app-sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0 20px 0 0;
    }
    .app-content {
        padding: 20px;
    }
    .app-sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0px;
    }
    .app-sidebar .brand {
        height: 60px;
        border-bottom: none;
    }
    .app-header {
        height: 50px;
        border-top: 1px solid var(--border-card);
    }
}

/* ---------------------------
AUTH PAGE LAYOUT
---------------------------- */
.auth-page {
    min-height: 100vh;
    background: var(--bg-white);
    font-family: var(--font-primary);
    display: flex;
    flex-direction: column;
    padding: 10px;
}

/* Push logo slightly upward */
.auth-header {
    text-align: center;
    padding-top: 40px;
    margin-bottom: 28px;
}

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

/* Wrapper centers the card vertically */
.auth-wrapper {
    flex: 1;
    flex-direction: column;
}

/* ---------------------------
CARD
---------------------------- */
.auth-card {
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-card);
    border-radius: 12px;
    background: var(--bg-white);
}

/* ---------------------------
TEXT & LABELS
---------------------------- */
.auth-title {
    color: var(--text-heading);
    font-size: var(--font-title-lg-size);
    font-weight: var(--font-title-lg-weight);
    line-height: var(--font-title-lg-line);
    letter-spacing: var(--font-title-lg-track);
}

.auth-label {
    color: var(--text-label);
    font-size: var(--font-sub-title-size);
    font-weight: var(--font-sub-title-weight);
    line-height: var(--font-sub-title-line);
    letter-spacing: var(--font-sub-title-track);
}

.auth-forgot {
    color: var(--brand-dark);
    font-size: var(--font-link-lg-size);
    font-weight: var(--font-link-lg-weight);
    text-decoration: none;
}

.auth-bottom-text {
    margin-top: 18px;
    color: var(--brand-dark);
    font-size: var(--font-sub-title-size);
    font-weight: var(--font-sub-title-weight);
}

.auth-signup-link {
    color: var(--brand-primary);
    text-decoration: none;
}

/* forgo password page  */
.auth-subtext{
    font-size: var(--font-label-btn-size);
    color: var(--brand-primary);
}

/* ---------------------------
INPUTS
---------------------------- */
.auth-input {
    border: 1px solid var(--border-input);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: var(--font-sub-title-size);
    color: var(--brand-dark);
}

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

.auth-input:focus {
    color: var(--brand-primary);
    background-color: var(--bs-body-bg);
    border-color:var(--border-focus);
    outline: 0;
    box-shadow: 0 0 0 .25rem rgb(27 57 101 / 12%);
}

/* eye icon */
.password-toggle-icon {
    position: absolute;
    right: 16px;
    top: 14px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
}

.password-toggle-icon.reset {
    top: 40px;
}

/* ---------------------------
BUTTONS
---------------------------- */
.auth-btn {
    background: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    color: #fff;
    padding: 12px;
    font-size: var(--font-label-btn-size);
    font-weight: var(--font-label-btn-weight);
    border-radius: 8px;
}

.auth-btn:hover {
    background: var(--brand-dark);
    border: 1px solid var(--brand-dark);
    color: var(--bg-white);
}

.auth-btn:focus {
    background: var(--brand-dark);
    border: 1px solid var(--brand-dark);
}

.auth-btn-outline {
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
    padding: 12px;
    font-size: var(--font-label-btn-size);
    font-weight: var(--font-label-btn-weight);
    border-radius: 8px;
}

.auth-btn-outline:hover {
    border: 2px solid var(--brand-primary);
    color: var(--normal-text);
    background: var(--brand-primary);
}

.auth-btn-outline:focus {
    border: 2px solid var(--brand-primary);
    color: var(--normal-text);
    background: var(--brand-primary);
}

.custom-filter-btn {
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    color: var(--brand-primary);
    padding: 12px;
    font-size: var(--font-label-btn-size);
    font-weight: var(--font-label-btn-weight);
    border-radius: 8px;
}

.custom-filter-btn:hover {
    background: var(--border-card);
    border: 1px solid var(--border-card);
    color: var(--brand-primary);
}

.custom-filter-btn:focus {
    background: var(--border-card);
    border: 1px solid var(--border-card);
}


/* ---------------------------
VERIFY ACCOUNT PAGE
---------------------------- */

/* OTP INPUTS */
.otp-input {
    width: 100%;
    height: 66px;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    outline: none;
}
.otp-input:focus {
    color: var(--brand-primary);
    background-color: var(--bs-body-bg);
    border-color:var(--border-focus);
    outline: 0;
    box-shadow: 0 0 0 .25rem rgb(27 57 101 / 12%);
}

/* ---------------------------
SIGNUP PAGE CUSTOM
---------------------------- */
.signup-wrapper {
    padding: 40px 16px 60px;
    background: var(--bg-white);
}

.signup-card {
    max-width: 980px;
    margin: 0 auto;
}

.signup-logo {
    text-align: center;
    margin-bottom: 32px;
}

.signup-logo img {
    height: 38px;
}

.form-section {
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    background: var(--bg-white);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.form-label {
    font-weight: 500;
    color: var(--text-label);
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid var(--border-input);
    padding: 0.75rem 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 .2rem rgb(27 57 101 / 12%);
}

.phone-field {
    display: flex;
    gap: 12px;
}

.phone-field .form-select {
    max-width: 120px;
}

.dashed-upload {
    border: 2px dashed var(--text-muted);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    background-color: var(--bg-muted);
    color: var(--brand-primary);
    transition: 0.2s;
}

.dashed-upload:hover {
    border-color: var(--brand-primary);
    background-color: #f7f9ff;
}

.dashed-upload p {
    font-size: var(--font-sub-title-size);
}

.custom-text-color {
    color: var(--brand-primary) !important;
}


.form-check-input:checked {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.form-check-input{
    border-color: var(--border-input);
}

.info-banner {
    border-radius: 12px;
    background: var(--bg-light-blue);
    color: var(--light-blue-text);
    padding: 14px 18px;
    font-size: 14px;
    border-left: 3px solid var(--brand-primary);
}

.consent-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 20px 0;
}

.consent-row .form-check {
    margin-bottom: 0;
    font-size: 15px;
}

.dual-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.dual-actions .btn {
    border-radius: 14px;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
}

.dual-actions .btn-outline-primary {
    border-width: 2px;
}

.signup-footer {
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
}

.signup-footer a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.avatar-edit-btn i {
    display: inline-block !important;
}
/*  */

    .switch {
    position: relative;
    display: inline-block;
    width: 40px;     /* reduced from 60px */
    height: 22px;    /* reduced from 34px */
    }

    .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
    }

    .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 22px;  /* optional, for consistency */
    }

    .slider:before {
    position: absolute;
    content: "";
    height: 16px;     /* reduced from 26px */
    width: 16px;      /* reduced from 26px */
    left: 3px;        /* adjusted to match new size */
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    }

    input:checked + .slider {
    background-color: #2196F3;
    }

    input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
    }

    input:checked + .slider:before {
    transform: translateX(18px); /* was 26px; adjusted to match new width */
    }

    .slider.round {
    border-radius: 22px;
    }

/*  */
@media (max-width: 767px) {
    .signup-card {
        padding: 24px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .phone-field {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    .iti.iti--allow-dropdown.iti--show-flags {
        width: 100%;
    }
}