/* =========================================
   1. IMPORTS & FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

/* =========================================
   2. RESET & CORE STYLES
   ========================================= */
* {
    box-sizing: border-box;
}
:root {


    --bs-spacer: 1rem; /* The base unit */
}

body {
    display: block;
    color: #1d3557;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.01);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 990;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-transition:
        -webkit-opacity 0.6s ease,
        visibility 0.4s ease,
        backdrop-filter 0.6s ease;
    transition:
        opacity 0.6s ease,
        visibility 0.4s ease,
        backdrop-filter 0.6s ease;
}

body.sidebar-show {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

body.sidebar-show::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Links */
a {
    text-decoration: none !important;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
    color: #457b9d;
}

a:hover, a:active, a:focus {
    outline: none !important;
}

/* Text Helpers */
.small, small {
    font-size: 0.8rem;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* =========================================
   3. TYPOGRAPHY (OPTIMIZED)
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin: 0;
    padding: 0;
    color: #252f4a;
    letter-spacing: -0.05px;
}

h1 {
    font-size: 1.4rem;
    margin: 0.42rem 0;
}
h2 {
    font-size: 1.3rem;
}
h3 {
    font-size: 1.2rem;
}
h4 {
    font-size: 1.1rem;
    font-weight: 600;
}
h5 {
    font-size: 1rem;
}
h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-text, .dark-text a {
    color: #252f4a;
}
.light-text, .light-text a {
    color: #99a1b7;
}



/* =========================================
   4. LAYOUT STRUCTURE
   ========================================= */
#main {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: 100%;
    margin: 0 0.5rem 0 15.5rem; /* Consolidated left and right margins */
    background: #fff no-repeat;
    overflow: hidden;
}

.form-control::placeholder {
    color: #bac4cc !important;
    opacity: 1;
}

/* =========================================
   5. HEADER & NAVIGATION
   ========================================= */
body .header, body.header-fixed .header {
    top: 0;
    margin-left: 15rem;
    right: 0;
    background: #f9fbfc;
    z-index: 99;
    border-bottom: 2px solid #dfe2e6;
    box-sizing: border-box;
}

.header.scroll-header {
    padding-left: 280px !important;
    background: #037afb;
    box-shadow: 0 3px 10px rgba(62, 85, 120, 0.045);
}

.header .navbar {
    padding: 0 13px;
}

.header.scroll-header .navbar-brand {
    color: #000;
}

.navbar-toggler {
    padding: 0;
    border: none;
    color: #000;
    outline: 0 !important;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.navbar-toggler a, .navbar-toggler:hover {
    color: #000 !important;
}

/* Header Links */
.header .link {
    color: #000;
    border-radius: 0.55rem;
}

.header .link:hover, .header .link:focus {
    background: #e0e0e0;
}

.header .navbar-nav > li > a {
    color: #000;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    padding: 5px 15px;
}

.header.scroll-header .navbar-nav > li > a {
    color: #000;
}

.header .navbar-nav > li > a:hover, .header .navbar-nav > li.show > a {
    background: #ddd;
    color: #000;
}

.header.scroll-header .navbar-nav > li > a:hover,
.header.scroll-header .navbar-nav > li.show > a {
    color: #fff !important;
}

.header .navbar-nav > li > a > i {
    vertical-align: middle;
}

.header .navbar-nav .dropdown a.dropdown-toggle::after {
    display: none;
}

.header .navbar-nav .dropdown.show .dropdown-menu {
    opacity: 1;
    margin-top: 15px;
    visibility: visible;
}

.header .navbar-nav .dropdown .dropdown-menu a:hover {
    background-color: #f4f5fa;
}

.header .navbar-nav .dropdown .dropdown-menu li.divider {
    display: block;
    width: 100%;
    height: 1px;
    background: #f2f2f2;
    margin: 8px 0;
}

/* =========================================
   6. SIDEBAR
   ========================================= */
.sidebar {
    -webkit-filter: blur(0) !important;
    filter: blur(0) !important;
    position: fixed;
    display: block;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    height: 100svh;
    width: 15rem;
    z-index: 999;
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
    font-weight: 500;
    padding: 1rem 0.5rem;
    background-color: #f9fbfc;
    background-attachment: fixed;
    overflow-y: auto;
    overflow: visible !important;
    -webkit-overflow-scrolling: touch;
    -webkit-transition: -webkit-transform 0.2s ease-in-out;
    transition: transform 0.2s ease-in-out;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    will-change: transform, scroll-position;
}

/* Added fallback height for modern mobile browsers */
@supports (height: 100dvh) {
    .sidebar {
        height: 100dvh;
    }
}

body.sidebar-show .sidebar, .sidebar-show .sidebar {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
}

/* Sidebar Elements */
.sidebar-user-card {
    background-color: #eef2ff;
    border-radius: 0.7rem;
    -webkit-transition: background-color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

.sidebar-user-card:hover {
    background-color: #e0e7ff;
}

.sidebar-avatar {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #757575;
}

.sidebar-toggle-btn {
    width: 1.6rem;
    height: 1.6rem;
    background-color: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -16px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    box-shadow: 0px 4px 10px rgba(26, 115, 232, 0.4);
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.sidebar-toggle-btn:hover {
    background-color: #1557b0;
}

.sidebar .slimScrollDiv, .sidebar .sidebar-inner {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.sidebar .sidebar-inner ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar .sidebar-inner ul li {
    display: block;
    overflow: hidden;
    margin-top: 1px;
}

.sidebar .sidebar-inner ul li a {
    justify-content: left;
    font-weight: 400;
    letter-spacing: 0.8px;
    color: #252f4a;
    padding: 0.5rem 0.3rem;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    border-radius: 0.7rem;
    margin: 0.2rem;
}

.sidebar .sidebar-inner ul li a:hover,
.sidebar .sidebar-inner ul li.open > a,
.sidebar .sidebar-inner ul li a:focus {
    background-color: #e9ecef;
    color: #007bff;
}

.sidebar .sidebar-inner ul li a.active {
    background: #007bff;
    color: #fff;
}

.sidebar .material-icons {
    font-size: 20px !important;
}

.sidebar i {
    font-size: 1rem;
    margin-right: 0.7rem;
    margin-left: 0.3rem;
}

.sidebar .sidebar-inner ul li a i:not(.has-sub-menu) {
    vertical-align: top;
}

.sidebar .sidebar-inner ul li a i.has-sub-menu {
    vertical-align: middle;
    margin-left: auto;
    color: #c1c1c1;
    float: right;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.sidebar .sidebar-inner ul li.open > a > i.has-sub-menu {
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

.sidebar .sidebar-inner ul li.sidebar-title {
    display: block;
    text-transform: uppercase;
    margin: 22px 10px 6px;
    overflow: hidden;
    float: none;
    padding: 0 0.85rem 0 3rem;
    border-bottom: 1px solid color-mix(in sRGB, #e1def5 8%, #2f3349);
}

.sidebar .sidebar-inner ul li.sidebar-title:first-child {
    margin-top: 0;
    align-items: center;
    text-align: center;
    padding: 23px 13px;
    color: #fff;
    background: #333948 !important;
}

.sidebar .sidebar-inner ul li ul.sub-menu {
    display: none;
    position: relative;
    overflow: hidden;
}

.sidebar .sidebar-inner ul li ul.sub-menu li {
    display: block;
    overflow: hidden;
}

.sidebar .sidebar-inner ul li ul.sub-menu a {
    text-align: left;
}

.sidebar .sidebar-inner ul li ul.sub-menu li a.active,
.sidebar .sidebar-inner ul li.active-page > a {
    color: #697a8d;
}

/* =========================================
   7. NAVIGATION TABS
   ========================================= */
.top-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.top-nav::-webkit-scrollbar {
    display: none;
}

.tabs-nav {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #eee;
    overflow: visible;
    padding-right: 8px;
    padding-left: 8px;
}

.tab-link {
    text-decoration: none;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    padding: 5px;
    position: relative;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
    cursor: pointer;
}

.tab-link:hover {
    color: #2bacf8;
}

.tab-link.active {
    color: #4b6584;
    border-bottom: 2px solid #2bacf8;
    margin-bottom: -2px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.footer .footer-text {
    display: block;
    padding: 10px 25px 30px;
    font-size: 1.4rem;
}

/* =========================================
   8. COMPONENTS (Cards, Buttons, Alerts)
   ========================================= */
.card {
    background-color: transparent;
    border: 0px solid #f1f3f5;
    border-radius: 0.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f3f5;
}

.card .card-title {
    align-items: flex-start !important;
    margin: 0;
    margin-left: 4px;
    font-size: 1rem;
}

.card-title .main-title {
    font-size: 1rem;
}

.card-title .sub-title {
    color: #99a1b7;
    font-size: 0.7rem;
}

.card-header {
    align-items: center;
    padding: 0.5rem;
    font-weight: 500;
    margin-bottom: 0;
    background: #f1f3f5;
    color: #000;
    font-size: 1rem;
    min-height: 42px;
    border: 0;
}

.card-header i {
    margin-right: 5px;
}

.card-body {
    padding: 1.25rem;
    padding-top: 0.25rem;
}

.card-header-pills, .card-header-tabs {
    margin-right: 0;
    margin-left: 0;
}

.card-header-tabs {
    margin-bottom: -10px;
    border-bottom: 0;
}

.card-footer {
    border: 0;
    background: transparent;
}

.card.text-white .card-title {
    color: #fcfcfc;
}

.card.card-transparent {
    background: transparent !important;
    box-shadow: none;
}

.head-card {
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
}

.card-border {
    border: 1px solid #eae4e6;
}

.card-subheader {
    background: #f1f5f3;
    padding: 0.75rem 1.25rem;
}

.card-subheader .btn {
    margin: 0 0.4em;
}

.ccard {
    border: 1px solid #f3f3f3;
    box-shadow: 0 3px 10px rgba(62, 85, 120, 0.045);
    border-radius: 4px;
    background-color: #f2f2f2;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert .alert-link {
    color: inherit !important;
    font-weight: 600;
}

.alert.alert-primary {
    background-color: #a4a9f1 !important;
    color: #141b87 !important;
    border-color: #666ee8 !important;
}
.alert.alert-secondary {
    background-color: #9094a4 !important;
    color: #1a1b20 !important;
    border-color: #6b6f82 !important;
}
.alert.alert-success {
    background-color: #5fe0b2 !important;
    color: #0b3a29 !important;
    border-color: #28d094 !important;
}
.alert.alert-danger {
    background-color: #ff909f !important;
    color: #960014 !important;
    border-color: #ff4961 !important;
}
.alert.alert-warning {
    background-color: #ffbc90 !important;
    color: #963b00 !important;
    border-color: #ff9149 !important;
}
.alert.alert-info {
    background-color: #62bcf6 !important;
    color: #053858 !important;
    border-color: #1e9ff2 !important;
}
.alert.alert-light {
    background-color: #fff !important;
    color: #878787 !important;
    border-color: #e0e0e0 !important;
}
.alert.alert-dark {
    background-color: #666 !important;
    color: #000;
    border-color: #424242 !important;
}

/* Notice Box */
.notice {
    border-style: dashed !important;
    border-radius: 0.475rem !important;
    padding: 0.7rem !important;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    font-size: 1rem;
    color: #4b5675;
}

.notice .icn {
    font-size: 24px;
    margin-right: 16px;
}

.notice .content {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
}

.notice span, .notice h3 {
    font-size: 1rem;
}

.notice h3 {
    color: #071437;
}

.notice-info {
    background: #e9f3ff;
    border-color: #1b84ff;
}
.notice-info i {
    color: #1b84ff;
}
.notice-warning {
    background: #fff8dd;
    border-color: #f6c000;
}
.notice-warning i {
    color: #f6c000;
}

.erf {
    background: red;
    color: #fcfcfc;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 10px;
    margin: 0 6px;
    cursor: pointer;
}

/* Status Labels */
.status {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 0.25rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
    gap: 4px;
    justify-content: center;
    -webkit-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
    color: #111;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    text-transform: uppercase;
    line-height: 1;
}

.draft {
    background-color: #e2e8f0;
    color: #475569;
}
.in-review, .pending {
    background-color: #fef3c7;
    color: #92400e;
}
.approved {
    background-color: #dcfce7;
    color: #166534;
}
.submitted, .submited {
    background-color: #e0f2fe;
    color: #075985;
}
.delivered, .live {
    background-color: #ede9fe;
    color: #5b21b6;
}
.removed, .rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    border-radius: 0.25rem;
    cursor: pointer;
    border: 0px solid transparent;
    outline: none;
    padding: 0.3rem 1rem;
    overflow: hidden;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px;
    box-shadow: none!important;

}



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

.btn-xs {
    padding: 0.1rem 0.2rem;
    font-size: 0.6rem;
    line-height: 1.2;
    border-radius: 4px;
}
.btn-sm {
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem !important;
}
.btn-lg {
    font-size: 1rem !important;
    padding: 0.5px 0.9px !important;
}
.btn i {
    padding-right: 2px;
}
.square {
    border-radius: 0;
}
.round {
    border-radius: 1.5rem;
}

.btn:disabled:hover, .btn:disabled:focus, .btn:disabled.active, .btn:disabled:active {
    box-shadow: none !important;
}

/* Button Variants */
.btn.btn-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.btn-primary .btn-glow {
    box-shadow: 0 1px 20px 1px rgba(102, 110, 232, 0.6);
}
.btn.btn-outline-primary {
    border-color: #00856f;
    background-color: transparent;
    color: #00856f;
}
.btn.btn-outline-primary:hover {
    background-color: #00856f;
    color: #fff !important;
}

.btn.btn-secondary {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}
.btn.btn-secondary:hover {
    background-color: #777b8f !important;
    border-color: #777b8f !important;
    color: #fff !important;
}
.btn.btn-outline-secondary {
    border-color: #6b6f82;
    background-color: transparent;
    color: #6b6f82;
}
.btn.btn-outline-secondary:hover {
    background: #6b6f82;
    color: #fcfcfc;
}

.btn.btn-success {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}
.btn.btn-success:hover {
    background-color: #28d094 !important;
}
.btn.btn-outline-success {
    border-color: #28d094;
    background-color: transparent;
    color: #28d094;
}
.btn.btn-outline-success:hover {
    background: #28d094;
    color: #fcfcfc;
}

.btn.btn-danger {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}
.btn.btn-danger:hover {
    background-color: #ff4961 !important;
}
.btn.btn-outline-danger {
    border-color: #ff4961;
    background-color: transparent;
    color: #ff4961;
}
.btn.btn-outline-danger:hover {
    background: #ff4961;
    color: #fcfcfc;
}

.btn.btn-warning {
    background-color: #ff9149 !important;
    color: #fff !important;
}
.btn.btn-outline-warning {
    border-color: #ff9149;
    background-color: transparent;
    color: #ff9149;
}
.btn.btn-outline-warning:hover {
    background: #ff9149;
    color: #fcfcfc;
}

.btn.btn-info {
    background-color: #00856f !important;
    color: #fff !important;
}
.btn.btn-info:hover {
    background-color: #00705e !important;
}
.btn.btn-outline-info {
    border-color: #1e9ff2;
    background-color: transparent;
    color: #1e9ff2;
}
.btn.btn-outline-info:hover {
    background: #1e9ff2;
    color: #fcfcfc;
}

.btn.btn-light {
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #ddd;
}
.btn.btn-light:hover {
    background: #f1f1f4 !important;
}
.btn.btn-outline-light {
    border-color: #e0e0e0;
    background-color: transparent;
    color: #e0e0e0;
}
.btn.btn-outline-light:hover {
    background: #e0e0e0;
    color: #fff;
}

.btn.btn-dark {
    background-color: #424242 !important;
    color: #fff;
}
.btn.btn-outline-dark {
    border-color: #424242;
    background-color: transparent;
    color: #424242;
}
.btn.btn-outline-dark:hover {
    background: #424242;
    color: #fcfcfc;
}

.btn.btn-link {
    color: #000;
    background-color: transparent;
    text-decoration: none !important;
    border-color: transparent;
}
.btn.btn-link:hover {
    color: #000 !important;
    background-color: transparent;
}

.btn-group {
    position: relative;
    vertical-align: middle;
    display: inline-block !important;
}
.btn-group > .btn {
    position: relative;
    margin-left: -3px !important;
}
.btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.mbtn {
    display: none;
}
.noobtn {
    border: 0;
    box-shadow: none;
    background: #f0f0f0 !important;
}

/* =========================================
   9. FORMS & DROPDOWNS
   ========================================= */
.header .navbar-nav .dropdown.show .dropdown-menu, .dropdown-menu.show {
    animation: fadeOnly 0.3s ease-in-out;
    margin-top: 15px !important;
    -webkit-transition: none !important;
    transition: none !important;
    display: block;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 98 !important;
    clip-path: none;
}

.dropdown-menu {
    border-radius: 0.25rem;
    border: none;
    box-shadow: 0px 0.4rem 1rem rgba(0, 0, 0, 0.15);
    background: #ffffff;
    padding: 0.5rem;
    min-width: 12.5rem;
    overflow: hidden;
    font-size: 1rem;
}

.dropdown-item {
    padding: 0.4rem 0.8rem;
    color: #333;
    border-radius: 0.25rem;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

.dropdown-header {
    padding: 8px 16px;
    margin-bottom: 0;
    font-size: 1rem;
    color: #384c6d;
    white-space: nowrap;
    font-weight: 600;
    text-transform: uppercase;
}

.dropdown-menu a.disabled {
    opacity: 0.4;
}
.dropdown-menu a i, .c-drop a i {
    margin-right: 0.08rem;
}
.dropdown-menu-right {
    right: 0;
    left: auto;
}

/* Forms */
.form-control {
    width: 100%;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    color: #313a46;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    -webkit-transition:
        border-color 0.15s ease-in-out,
        -webkit-box-shadow 0.15s ease-in-out;
    transition:
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
}

input[type='file'] {
    padding-block: 6px;
}

select.foorm-control {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    line-height: 3.5rem;
}

.foorm-control::-webkit-input-placeholder {
    color: rgba(131, 141, 145, 0.6);
}

.form-control:disabled {
    background-color: #f7f7f7;
    opacity: 1;
}
.form-control:focus {
    border: 1px solid #b4bec5;
    box-shadow: none;
    color: #4e5154;
    background: #fff;
}

input:disabled::-webkit-input-placeholder,
input:disabled:-moz-placeholder,
input:disabled::-moz-placeholder,
input:disabled:-ms-input-placeholder {
    color: #f9f9f9;
}

/* =========================================
   10. MODALS, TABLES & UTILITIES
   ========================================= */
body.modal-open {
    overflow: visible;
}
.modal-content {
    border: 0;
    box-shadow: 0 3px 10px rgba(62, 85, 120, 0.045);
    border-radius: 4px;
    background: #fcfcfc;
}
.modal-header {
    border-bottom: 0;
    padding: 10px;
    background: #f7f7f7;
}
.modal-title {
    font-size: 1rem;
    color: #000;
    font-weight: 600;
    margin-left: 0.5rem;
}
.modal-body {
    padding: 0.6rem 1rem;
}
.modal-footer {
    padding: 0.8rem;
    border: 0;
    background: #f7f7f7;
}
.modal-header .close i {
    font-size: 1.2rem !important;
    color: #7d7d83;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    text-shadow: none;
}
.modal-header .close:hover i, .modal-header .close:focus {
    color: #000;
    outline: 0;
}
.modal-header .nobtn {
    background: #dfdfdf !important;
}

/* Tables */
.table {
    color: #384c6d;
}
.table * {
    border-color: #e6e6e6 !important;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f2f2f2;
}
.table td, .table th {
    padding: 12px 20px;
}
.table thead th {
    font-weight: 600;
    border-top: 0;
}
.table.table-hover tbody tr {
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}
.table.table-hover tbody tr:hover {
    background: #f2f2f2;
}

/* Lists & Navs */
.list-group-item {
    padding: 10px 15px;
    border: 1px solid #f2f2f2;
}
.list-group-item.active {
    background-color: #037afb;
    border-color: #037afb;
}

.nav-link {
    color: #384c6d;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.nav-link:hover, .nav-link.active {
    color: #037afb;
}
.nav-tabs {
    border-bottom: 1px solid #e6e6e6;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    border-color: #e6e6e6 #e6e6e6 #fcfcfc;
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #037afb;
}

.page-link {
    border: none;
    background: #e6e6e6;
    padding: 9px 15px;
    color: #384c6d;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.page-item.active .page-link, .page-link:focus, .page-link:active, .page-link:hover {
    border: none;
    background: #037afb;
    color: #fcfcfc;
    outline: 0 !important;
    box-shadow: none !important;
}
.pagination-circle .page-link {
    border-radius: 34px !important;
    margin-right: 5px;
}

/* Other Utils */
.progress {
    border-radius: 4px;
}
.btn .spinner-grow, .btn .spinner-border {
    vertical-align: middle;
}

.toast {
    border: none;
    margin: 10px;
}
.toast-header {
    padding: 6px 10px;
}
.toast-header button.close i {
    font-size: 1.2rem;
    vertical-align: middle;
}
.toast-body {
    padding: 6px 10px;
}
.toast-body .toast-message {
    display: block;
    float: left;
}

.popover {
    border: 0;
    box-shadow: 0 3px 10px rgba(62, 85, 120, 0.045);
}
.popover-header {
    padding: 9px 15px;
    background: #f2f2f2;
    border-bottom-color: #e6e6e6;
}
.popover-body {
    padding: 9px 15px;
    font-size: 1.3rem;
}
.popover .arrow:before {
    display: none;
}

/* Help Menu & Topics */
.help-menu, .help-topics {
    display: block;
}
.help-menu h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(27, 29, 93, 1);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.help-menu ul li a {
    color: rgba(27, 29, 93, 0.5);
    padding: 5px 0;
    display: block;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.help-menu ul li a.active, .help-menu ul li a.active:hover {
    color: #037afb;
    font-weight: normal;
}
.help-menu ul li a:hover {
    color: rgba(27, 29, 93, 1);
}

.help-topics {
    border-radius: 6px;
    margin-top: 15px;
}
.help-topics h3 {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
}
.help-topics li a {
    display: block;
    margin: 5px 0;
    color: rgba(27, 29, 93, 0.5);
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.help-topics li a:hover {
    color: #037afb;
}

/* Pages & Specifics */
.error-page .container, .error-page .error-container {
    height: 100%;
    position: relative;
}
.error-info {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
.error-info h1 {
    font-size: 14.8rem;
    color: #384c6d;
    font-weight: bold;
}
.error-info p {
    font-size: 1.4rem;
}
.error-image {
    position: absolute;
    right: 0;
    height: 100%;
    width: 50%;
    background: url(../images/404.svg) center center no-repeat;
    background-size: contain;
}
body.err-500 .error-image {
    background: url(../images/500.svg) center center no-repeat;
    background-size: contain;
}
.coming-soon h1 {
    font-size: 6.4rem;
}
.coming-soon .error-image {
    background: url(../images/coming-soon.svg) center center no-repeat;
    background-size: contain;
}

.login-page {
    background: url(../images/login.jpg) center center no-repeat;
    background-size: cover;
}
.login-page::before {
    display: block;
    content: '';
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
}
.login-page .lfh {
    height: 100vh;
    margin: 0 auto;
}
.login-page .login-box {
    position: absolute;
    width: 100%;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
.login-page .login-box .forgot-link {
    line-height: 31px;
}

#artworkimg, #artworkimg2 {
    width: 150px;
    height: 150px;
    margin-right: auto;
    margin-left: auto;
    border-radius: 0.25rem;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}
#albumThumb {
    width: 250px;
    margin-right: 20px;
}

.img button, .img button:hover, .img button:focus, img:focus-visible {
    border: 0;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    background: #fcfcfc;
}
.img button:hover {
    background: #f6f6f6;
}

.avatar {
    position: relative;
    width: 36px;
    height: 36px;
    white-space: nowrap;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    display: inline-flex;
    font-size: 0.8rem;
    text-align: center;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, #ff6a4b 27%, #ff416a 75%);
}

.player audio {
    position: fixed;
    left: 0;
    bottom: 0;
    width: calc(100% - 280px);
    color: white;
    text-align: center;
    z-index: 1000;
    margin-left: 280px;
    background: #f1f3f4;
}

/* Custom Badge/Icon */
.icon-wrapper {
    position: relative;
    display: inline-flex;
}
.badge-count {
    position: absolute;
    top: 0;
    right: 15px;
    background-color: #2bacf8;
    color: white;
    font-size: 10px;
    font-weight: bold;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

#toast-container > .toast {
    opacity: 1;
    display: flex;
    width: auto;
    cursor: pointer;
}

/* Scrollbars */
html::-webkit-scrollbar {
    display: none;
}
html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================================
   11. MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    body .header, body.header-fixed .header {
        padding-left: 0 !important;
        width: 100% !important;
        margin-left: 0px;
    }
    #main {
        margin: 0 0.5rem;
    }
    .sidebar {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .notice .content {
        flex-wrap: wrap;
    }
    #artworkimg, #artworkimg2 {
        width: 85% !important;
        height: auto !important;
        max-width: 400px;
    }
    .notice .content .btn {
        margin-top: 4px;
    }
    .notice .content h3 {
        margin-bottom: 4px;
    }
}

@media (max-width: 600px) {
    #albumThumb {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .sidebar-show .header {
        margin-left: 0;
    }
}
.min-vh-100 {
    min-height: 100vh; /* Fallback for old browsers */
    min-height: 100svh !important; /* "Small Viewport Height" - Ignores address bar */
}


/* =========================================
   12. DARK MODE OVERRIDES
   ========================================= */
[data-bs-theme="dark"] {
    /* Core Body & Text */
    --bs-body-bg: #151521;
    --bs-body-color: #99a1b7;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] body, [data-bs-theme="dark"] #main {
    background-color: #151521;
    color: #99a1b7;
}
[data-bs-theme="dark"] .text-dark, [data-bs-theme="dark"] .link, [data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,[data-bs-theme="dark"] h3,[data-bs-theme="dark"] h4,[data-bs-theme="dark"] h5 {
    color: #99a1b7!important;
}

/* Typography */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .text-dark {
     color: #99a1b7!important;
}

/* Sidebar & Header */
[data-bs-theme="dark"] .sidebar,
[data-bs-theme="dark"] body .header,
[data-bs-theme="dark"] body .border,

[data-bs-theme="dark"] body .border-bottom,

[data-bs-theme="dark"] body.header-fixed .header {
    background-color: #1e1e2d;
    border-color: #2b2b40!important;
}
[data-bs-theme="dark"] body .tabs-nav {
 border-color: #2b2b40!important;
}

[data-bs-theme="dark"] .sidebar .sidebar-inner ul li a {
    color: #99a1b7;

}
[data-bs-theme="dark"] .table tr:hover,
[data-bs-theme="dark"] .page-link {
    background:  #1e1e2d!important;
    color: #99a1b7!important;  }


[data-bs-theme="dark"] body .table * {
     border-color: #151521!important;
}



[data-bs-theme="dark"] .sidebar .sidebar-inner ul li a:hover,
[data-bs-theme="dark"] body .btn-light,
[data-bs-theme="dark"] body .bg-white,
[data-bs-theme="dark"] .sidebar .sidebar-inner ul li a.active {
    background-color: #2b2b40!important;
    color: #fff!important;
    border-color: #2b2b40!important;
}
[data-bs-theme="dark"] .text-dark a, [data-bs-theme="dark"] .btn {
color: #fff!important;

}

[data-bs-theme="dark"] .sidebar-user-card {
    background-color: #2b2b40;
}

/* Cards & Content */
[data-bs-theme="dark"] .caard, [data-bs-theme="dark"] .modal-content {
    background-color: #1e1e2d;
    border-color: #2b2b40;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
[data-bs-theme="dark"] .bg-light {
    background-color: #2b2b40!important;
}

[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
    background-color: #2b2b40;
    color: #ffffff;
}

[data-bs-theme="dark"] .table {
    color: #99a1b7;
}

[data-bs-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Forms */
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .link:hover {
    background-color: #1b1b29!important;
    border-color: #323248;
    color: #99a1b7;
}
[data-bs-theme="dark"] .form-control::placeholder,
 {
    color: #323248!important;
}
[data-bs-theme="dark"] .form-control:focus {
    background-color: #1b1b29;
    border-color: #007bff;
}
[data-bs-theme="dark"] img, [data-bs-theme="dark"] .notice, [data-bs-theme="dark"] .status {
filter: brightness(0.8);
}


/* Dropdowns */
[data-bs-theme="dark"] .dropdown-menu, [data-bs-theme="dark"] .list-group-item {
    background-color: #1e1e2d!important;
    border: 1px solid #2b2b40;
    color:#fff;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #99a1b7;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item.active {
    background-color: #2b2b40;
    color: #ffffff;
}
/* =========================================
   DARK MODE FILE INPUT
   ========================================= */
[data-bs-theme="dark"] .form-control::file-selector-button {
    background-color: #2b2b40; /* Darker button background */
    color: #ffffff;            /* White text for button */
    border-inline-end-width: 1px;
    border-color: #323248;     /* Border between button and text */
    transition: background-color 0.15s ease-in-out;
}

[data-bs-theme="dark"] .form-control::file-selector-button:hover {
    background-color: #323248; /* Slight highlight on hover */
}

/* Label text (No file chosen) */
[data-bs-theme="dark"] .form-control {
    color: #99a1b7;            /* Muted grey for the label text */
    background-color: #1b1b29; /* Deep dark background */
    border-color: #323248;
}

/* Placeholder/Info text color */
[data-bs-theme="dark"] input[type="file"] {
    color: #99a1b7;
}
[data-bs-theme="dark"] .page-item.active a, [data-bs-theme="dark"] .page-link:hover{
    color:  #1e1e2d!important;
    background: #99a1b7!important;  }