/*
 * ============================================================
 * SkiAdmin — AdminLTE 3 Theme Override
 * ============================================================
 *
 * Usage:
 *   <link rel="stylesheet" href="/css/ski-adminlte.css">
 *
 * IMPORTANT:
 * Load this file AFTER adminlte.min.css.
 *
 * Expected mountain image:
 *   /images/ski-mountains.jpg
 *
 * The theme intentionally keeps AdminLTE 3's native DOM/classes:
 * .wrapper, .main-header, .main-sidebar, .content-wrapper, etc.
 * ============================================================
 */

/* ============================================================
   0. VARIABLES
   ============================================================ */

:root {
    --ski-primary: #1683e8;
    --ski-primary-dark: #0d2b55;
    --ski-primary-light: #e8f3ff;

    --ski-text: #17345c;
    --ski-text-soft: #526d90;
    --ski-muted: #7690ad;

    --ski-success: #18b981;
    --ski-warning: #e9a72f;
    --ski-danger: #df5b62;
    --ski-info: #25a8d8;

    --ski-white: #ffffff;

    --ski-glass: rgba(255, 255, 255, 0.93);
    --ski-glass-soft: rgba(255, 255, 255, 0.78);
    --ski-glass-light: rgba(255, 255, 255, 0.64);

    --ski-border: rgba(255, 255, 255, 0.82);
    --ski-border-dark: rgba(27, 72, 115, 0.10);

    --ski-shadow:
        0 8px 30px rgba(25, 67, 105, 0.10);

    --ski-shadow-hover:
        0 14px 36px rgba(25, 67, 105, 0.15);

    --ski-radius: 12px;
    --ski-radius-sm: 8px;

    --ski-sidebar-width: 250px;
    --ski-navbar-height: 57px;

    --ski-transition: 0.20s ease;
}


/* ============================================================
   1. GLOBAL
   ============================================================ */

html,
body {
    min-height: 100%;
}

body {
    margin: 0;

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;

    color: var(--ski-text);

    /*
     * Permanent mountain background.
     * Replace this path with your own image.
     */
    background:
        linear-gradient(
            135deg,
            rgba(236, 246, 255, 0.78),
            rgba(255, 255, 255, 0.38)
        ),
        url("../images/background-98A06e7.png")
        center center /
        cover
        fixed
        no-repeat;
}

body::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(245, 250, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.05) 45%,
            rgba(232, 243, 252, 0.22) 100%
        );

    pointer-events: none;
}

.wrapper {
    min-height: 100vh;
    background: transparent !important;
}

.content-wrapper,
.main-footer {
    background: transparent !important;
}

a {
    color: var(--ski-primary);
    transition: color var(--ski-transition);
}

a:hover {
    color: #0874d4;
    text-decoration: none;
}

::selection {
    background: rgba(22, 131, 232, 0.18);
    color: var(--ski-primary-dark);
}


/* ============================================================
   2. NAVBAR
   ============================================================ */

.main-header.navbar {
    min-height: var(--ski-navbar-height);

    background: rgba(255, 255, 255, 0.84) !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.72) !important;

    box-shadow:
        0 2px 20px rgba(30, 70, 110, 0.06);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.main-header .navbar-nav .nav-link {
    color: var(--ski-text) !important;
}

.main-header .navbar-nav .nav-link:hover,
.main-header .navbar-nav .nav-link:focus {
    color: var(--ski-primary) !important;
}

.main-header .navbar-nav .nav-link i,
.main-header .navbar-nav .nav-link .fas,
.main-header .navbar-nav .nav-link .far,
.main-header .navbar-nav .nav-link .fab {
    transition: transform var(--ski-transition);
}

.main-header .navbar-nav .nav-link:hover i {
    transform: translateY(-1px);
}

.navbar-badge {
    background: var(--ski-primary) !important;
}


/* User dropdown */

.main-header .dropdown-menu {
    margin-top: 8px;

    min-width: 210px;

    background: rgba(255, 255, 255, 0.97) !important;

    border: 1px solid rgba(30, 70, 110, 0.08) !important;
    border-radius: var(--ski-radius) !important;

    box-shadow: var(--ski-shadow) !important;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.main-header .dropdown-item {
    color: var(--ski-text);
    border-radius: 7px;
    margin: 2px 6px;
    width: calc(100% - 12px);
}

.main-header .dropdown-item:hover,
.main-header .dropdown-item:focus {
    color: var(--ski-primary);
    background: var(--ski-primary-light);
}


/* ============================================================
   3. SIDEBAR
   ============================================================ */

.main-sidebar {
    width: var(--ski-sidebar-width);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.94),
            rgba(247, 252, 255, 0.90)
        ) !important;

    border-right: 1px solid rgba(255, 255, 255, 0.80);

    box-shadow:
        5px 0 30px rgba(30, 70, 110, 0.08) !important;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.main-sidebar::before {
    display: none !important;
}


/* Brand */

.brand-link {
    min-height: var(--ski-navbar-height);

    display: flex;
    align-items: center;

    background: transparent !important;

    border-bottom:
        1px solid rgba(30, 70, 110, 0.07) !important;

    color: var(--ski-primary-dark) !important;

    font-size: 1.08rem;
    font-weight: 600;
}

.brand-link:hover {
    color: var(--ski-primary) !important;
}

.brand-link .brand-image {
    max-height: 34px;
    width: auto;

    margin-left: 0.5rem;
    margin-right: 0.55rem;

    opacity: 1;
}

.brand-text {
    color: var(--ski-primary-dark) !important;
    letter-spacing: -0.01em;
}


/* Sidebar menu */

.sidebar {
    padding-top: 10px;
}

.nav-sidebar {
    padding: 0 8px;
}

.nav-sidebar > .nav-item {
    margin-bottom: 3px;
}

.nav-sidebar .nav-link {
    min-height: 44px;

    display: flex;
    align-items: center;

    margin: 3px 0;

    padding: 10px 12px;

    border-radius: 9px;

    color: #58708f !important;

    transition:
        background var(--ski-transition),
        color var(--ski-transition),
        transform var(--ski-transition);
}

.nav-sidebar .nav-link:hover {
    background: rgba(22, 131, 232, 0.08) !important;
    color: var(--ski-primary) !important;

    transform: translateX(1px);
}

.nav-sidebar .nav-link.active {
    background:
        linear-gradient(
            90deg,
            rgba(22, 131, 232, 0.14),
            rgba(22, 131, 232, 0.07)
        ) !important;

    color: var(--ski-primary) !important;

    box-shadow: none !important;
}

.nav-sidebar .nav-link.active::before {
    content: "";

    position: absolute;
    left: 0;

    width: 3px;
    height: 24px;

    border-radius: 0 3px 3px 0;

    background: var(--ski-primary);
}

.nav-sidebar .nav-icon {
    width: 28px;

    margin-right: 6px;

    color: #6983a2 !important;

    font-size: 1rem;
}

.nav-sidebar .nav-link:hover .nav-icon,
.nav-sidebar .nav-link.active .nav-icon {
    color: var(--ski-primary) !important;
}

.nav-sidebar .nav-link p {
    margin-bottom: 0;
}


/* Treeview */

.nav-sidebar .nav-treeview {
    padding-left: 9px;
}

.nav-sidebar .nav-treeview .nav-link {
    min-height: 39px;
    font-size: 0.91rem;
}


/* Sidebar mini */

.sidebar-mini.sidebar-collapse .main-sidebar:hover {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(247, 252, 255, 0.97)
        ) !important;

    box-shadow: var(--ski-shadow-hover) !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar {
    box-shadow:
        3px 0 18px rgba(30, 70, 110, 0.06) !important;
}


/* ============================================================
   4. CONTENT AREA
   ============================================================ */

.content-wrapper {
    min-height: calc(100vh - var(--ski-navbar-height));

    /*
     * Gives the background enough room to remain visible.
     */
    padding-bottom: 20px;
}

.content-header {
    padding: 26px 30px 12px;
}

.content-header h1 {
    margin: 0;

    color: var(--ski-primary-dark);

    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.content-header p {
    color: var(--ski-text-soft);
}

.content {
    padding: 0 30px 30px;
}


/* ============================================================
   5. BREADCRUMBS
   ============================================================ */

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

    padding: 7px 12px;

    margin-bottom: 0;

    background: rgba(255, 255, 255, 0.72) !important;

    border: 1px solid rgba(255, 255, 255, 0.82);

    border-radius: var(--ski-radius-sm);

    box-shadow: 0 3px 12px rgba(30, 70, 110, 0.05);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.breadcrumb-item {
    color: var(--ski-muted);
    font-size: 0.86rem;
}

.breadcrumb-item a {
    color: var(--ski-primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #9bb0c7;
}

.content-header .breadcrumb {
    padding: 10px 15px;
}


/* ============================================================
   6. CARDS
   ============================================================ */

.card {
    background: var(--ski-glass) !important;

    border:
        1px solid var(--ski-border) !important;

    border-radius:
        var(--ski-radius) !important;

    box-shadow:
        var(--ski-shadow) !important;

    overflow: hidden;

    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);

    transition:
        box-shadow var(--ski-transition),
        transform var(--ski-transition);
}

.card:hover {
    box-shadow: var(--ski-shadow-hover) !important;
}

.card-header {
    min-height: 54px;

    /*display: flex;*/
    /*align-items: center;*/

    background: transparent !important;

    border-bottom:
        1px solid rgba(30, 70, 110, 0.07) !important;

    padding: 14px 18px;
}


.card-title {
    margin: 0;

    color: var(--ski-text);

    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    color: var(--ski-text);
}

.card-footer {
    background: rgba(247, 251, 255, 0.48) !important;

    border-top:
        1px solid rgba(30, 70, 110, 0.06) !important;
}

.card-tools .btn-tool {
    color: var(--ski-muted);
}

.card-tools .btn-tool:hover {
    color: var(--ski-primary);
}


/* Card variants */

.card-primary {
    border-top: 3px solid var(--ski-primary) !important;
}

.card-success {
    border-top: 3px solid var(--ski-success) !important;
}

.card-warning {
    border-top: 3px solid var(--ski-warning) !important;
}

.card-danger {
    border-top: 3px solid var(--ski-danger) !important;
}

.card-info {
    border-top: 3px solid var(--ski-info) !important;
}


/* ============================================================
   7. SMALL BOX / KPI
   ============================================================ */

.small-box {
    min-height: 150px;

    position: relative;

    background: var(--ski-glass) !important;

    border:
        1px solid var(--ski-border) !important;

    border-radius:
        var(--ski-radius) !important;

    box-shadow:
        var(--ski-shadow) !important;

    color: var(--ski-text) !important;

    overflow: hidden;

    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);

    transition:
        transform var(--ski-transition),
        box-shadow var(--ski-transition);
}

.small-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--ski-shadow-hover) !important;
}

.small-box > .inner {
    padding: 20px;
}

.small-box h3 {
    margin: 0 0 5px;

    color: var(--ski-primary-dark) !important;

    font-size: 2rem;
    font-weight: 600;
}

.small-box p {
    margin: 0;

    color: var(--ski-text-soft) !important;

    font-size: 0.91rem;
}

.small-box .icon {
    top: 18px;
    right: 18px;

    color: rgba(22, 131, 232, 0.12) !important;
}

.small-box .icon > i {
    font-size: 55px;
}

.small-box-footer {
    display: block;

    padding: 8px 20px;

    background: rgba(235, 245, 253, 0.50) !important;

    color: var(--ski-primary) !important;

    border-top:
        1px solid rgba(30, 70, 110, 0.05);

    transition: background var(--ski-transition);
}

.small-box-footer:hover {
    background: rgba(22, 131, 232, 0.07) !important;
}


/* ============================================================
   8. INFO BOX
   ============================================================ */

.info-box {
    min-height: 105px;

    background: var(--ski-glass) !important;

    border:
        1px solid var(--ski-border) !important;

    border-radius:
        var(--ski-radius) !important;

    box-shadow:
        var(--ski-shadow) !important;

    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
}

.info-box-icon {
    width: 58px;
    height: 58px;

    margin: 18px;

    align-self: center;

    border-radius: 50% !important;

    background:
        var(--ski-primary-light) !important;

    color:
        var(--ski-primary) !important;

    font-size: 1.25rem;
}

.info-box-content {
    padding: 15px 15px 15px 0;
}

.info-box-text {
    color: var(--ski-muted);

    font-size: 0.86rem;
}

.info-box-number {
    color: var(--ski-primary-dark);

    font-size: 1.55rem;
    font-weight: 600;
}


/* ============================================================
   9. PROGRESS / TRENDS
   ============================================================ */

.progress {
    height: 7px;

    background: rgba(30, 70, 110, 0.08);

    border-radius: 20px;
}

.progress-bar {
    border-radius: 20px;
    background-color: var(--ski-primary);
}

.ski-trend-up {
    color: var(--ski-success) !important;
}

.ski-trend-down {
    color: var(--ski-danger) !important;
}


/* ============================================================
   10. BUTTONS
   ============================================================ */

.btn {
    border-radius: var(--ski-radius-sm);

    transition:
        background var(--ski-transition),
        border-color var(--ski-transition),
        color var(--ski-transition),
        box-shadow var(--ski-transition),
        transform var(--ski-transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--ski-primary) !important;
    border-color: var(--ski-primary) !important;

    box-shadow:
        0 4px 12px rgba(22, 131, 232, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0874d4 !important;
    border-color: #0874d4 !important;

    box-shadow:
        0 7px 18px rgba(22, 131, 232, 0.24);
}

.btn-outline-primary {
    color: var(--ski-primary);
    border-color: rgba(22, 131, 232, 0.35);
}

.btn-outline-primary:hover {
    background: var(--ski-primary);
    border-color: var(--ski-primary);
}

.btn-light {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(30, 70, 110, 0.10);
    color: var(--ski-text);
}


/* ============================================================
   11. FORMS
   ============================================================ */

.form-group label,
.form-label {
    color: var(--ski-text);

    font-size: 0.9rem;
    font-weight: 500;
}

.form-control,
.custom-select,
.custom-file-label {
    min-height: 40px;

    background:
        rgba(255, 255, 255, 0.88) !important;

    border:
        1px solid rgba(50, 100, 150, 0.14) !important;

    border-radius:
        var(--ski-radius-sm) !important;

    color: var(--ski-text) !important;

    box-shadow: none !important;

    transition:
        border-color var(--ski-transition),
        box-shadow var(--ski-transition);
}

.form-control::placeholder {
    color: #9aadc1;
}

.form-control:focus,
.custom-select:focus,
.custom-file-input:focus ~ .custom-file-label {
    border-color:
        rgba(22, 131, 232, 0.50) !important;

    box-shadow:
        0 0 0 3px rgba(22, 131, 232, 0.10) !important;
}

.input-group-text {
    background:
        rgba(240, 247, 253, 0.82) !important;

    border:
        1px solid rgba(50, 100, 150, 0.12) !important;

    color: var(--ski-muted);
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--ski-primary);
    border-color: var(--ski-primary);
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow:
        0 0 0 3px rgba(22, 131, 232, 0.10);
}

.invalid-feedback {
    color: var(--ski-danger);
}


/* ============================================================
   12. SELECT2
   ============================================================ */

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: 40px;

    background:
        rgba(255, 255, 255, 0.88);

    border:
        1px solid rgba(50, 100, 150, 0.14);

    border-radius:
        var(--ski-radius-sm);
}

.select2-container--default
.select2-selection--single
.select2-selection__rendered {
    line-height: 38px;
    color: var(--ski-text);
}

.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    height: 38px;
}

.select2-dropdown {
    background: rgba(255, 255, 255, 0.98);

    border-color:
        rgba(30, 70, 110, 0.10);

    box-shadow: var(--ski-shadow);
}

.select2-results__option--highlighted {
    background: var(--ski-primary) !important;
}


/* ============================================================
   13. DATATABLES
   ============================================================ */

.dataTables_wrapper {
    color: var(--ski-text);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info {
    color: var(--ski-muted);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 36px;

    margin-left: 6px;

    background:
        rgba(255, 255, 255, 0.90);

    border:
        1px solid rgba(50, 100, 150, 0.14);

    border-radius:
        var(--ski-radius-sm);

    color: var(--ski-text);

    outline: none;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color:
        rgba(22, 131, 232, 0.50);

    box-shadow:
        0 0 0 3px rgba(22, 131, 232, 0.10);
}

table.dataTable {
    width: 100% !important;

    border-collapse: separate !important;
    border-spacing: 0;
}

table.dataTable thead th {
    padding: 13px 12px;

    background:
        rgba(235, 244, 252, 0.78);

    border-bottom:
        1px solid rgba(30, 70, 110, 0.08) !important;

    color: var(--ski-muted);

    font-size: 0.80rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.025em;
}

table.dataTable tbody td {
    padding: 12px;

    border-top:
        1px solid rgba(30, 70, 110, 0.055);

    color: var(--ski-text);

    vertical-align: middle;
}

table.dataTable tbody tr {
    background: rgba(255, 255, 255, 0.38);
}

table.dataTable tbody tr:hover {
    background:
        rgba(22, 131, 232, 0.045);
}

table.dataTable.no-footer {
    border-bottom:
        1px solid rgba(30, 70, 110, 0.08);
}


/* DataTables pagination */

.dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 34px;

    margin-left: 3px;
    padding: 6px 10px;

    border: 0 !important;
    border-radius: 7px !important;

    color: var(--ski-text-soft) !important;

    background: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background:
        rgba(22, 131, 232, 0.08) !important;

    color: var(--ski-primary) !important;
}

.dataTables_wrapper .dataTables_paginate
.paginate_button.current {
    background:
        var(--ski-primary) !important;

    color: #fff !important;

    box-shadow:
        0 3px 9px rgba(22, 131, 232, 0.18);
}


/* Responsive DataTables */

.dtr-details {
    width: 100%;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before {
    background-color: var(--ski-primary);
}


/* ============================================================
   14. MODALS
   ============================================================ */

.modal-content {
    background:
        rgba(255, 255, 255, 0.97) !important;

    border:
        1px solid rgba(255, 255, 255, 0.92) !important;

    border-radius:
        var(--ski-radius) !important;

    box-shadow:
        0 20px 60px rgba(20, 55, 90, 0.20) !important;

    overflow: hidden;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.modal-header {
    padding: 16px 20px;

    background:
        rgba(248, 252, 255, 0.82);

    border-bottom:
        1px solid rgba(30, 70, 110, 0.07);
}

.modal-title {
    color: var(--ski-text);

    font-weight: 600;
}

.modal-body {
    padding: 20px;

    color: var(--ski-text);
}

.modal-footer {
    padding: 14px 20px;

    background:
        rgba(248, 252, 255, 0.65);

    border-top:
        1px solid rgba(30, 70, 110, 0.07);
}

.modal-backdrop.show {
    opacity: 0.35;
}


/* ============================================================
   15. ALERTS / CALLOUTS
   ============================================================ */

.alert {
    border: 0 !important;

    border-radius:
        var(--ski-radius-sm) !important;

    box-shadow:
        0 4px 16px rgba(30, 70, 110, 0.05);
}

.alert-primary {
    background: rgba(22, 131, 232, 0.09);
    color: var(--ski-primary-dark);
}

.alert-success {
    background: rgba(24, 185, 129, 0.09);
    color: #08704e;
}

.alert-warning {
    background: rgba(233, 167, 47, 0.12);
    color: #79520a;
}

.alert-danger {
    background: rgba(223, 91, 98, 0.10);
    color: #8e3037;
}

.callout {
    background:
        rgba(255, 255, 255, 0.78);

    border-radius:
        var(--ski-radius-sm);

    border-top: 0;

    box-shadow:
        0 4px 16px rgba(30, 70, 110, 0.06);
}


/* ============================================================
   16. BADGES
   ============================================================ */

.badge {
    padding: 5px 9px;

    border-radius: 20px;

    font-size: 0.72rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--ski-primary) !important;
}

.badge-success {
    background: var(--ski-success) !important;
}

.badge-warning {
    background: var(--ski-warning) !important;
}

.badge-danger {
    background: var(--ski-danger) !important;
}

.badge-info {
    background: var(--ski-info) !important;
}


/* ============================================================
   17. LIST GROUPS
   ============================================================ */

.list-group {
    border-radius: var(--ski-radius-sm);
}

.list-group-item {
    background:
        rgba(255, 255, 255, 0.48);

    border-color:
        rgba(30, 70, 110, 0.06);

    color: var(--ski-text);
}

.list-group-item:hover {
    background:
        rgba(22, 131, 232, 0.04);
}


/* ============================================================
   18. DROPDOWNS
   ============================================================ */

.dropdown-menu {
    background:
        rgba(255, 255, 255, 0.97) !important;

    border:
        1px solid rgba(30, 70, 110, 0.08) !important;

    border-radius:
        var(--ski-radius) !important;

    box-shadow:
        var(--ski-shadow) !important;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dropdown-item {
    color: var(--ski-text);

    border-radius: 7px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background:
        rgba(22, 131, 232, 0.08);

    color: var(--ski-primary);
}

.dropdown-divider {
    border-color:
        rgba(30, 70, 110, 0.07);
}


/* ============================================================
   19. PAGINATION
   ============================================================ */

.page-link {
    color: var(--ski-primary);

    background:
        rgba(255, 255, 255, 0.78);

    border-color:
        rgba(30, 70, 110, 0.08);
}

.page-link:hover {
    color: var(--ski-primary-dark);

    background:
        rgba(22, 131, 232, 0.07);

    border-color:
        rgba(22, 131, 232, 0.14);
}

.page-item.active .page-link {
    color: #fff;

    background:
        var(--ski-primary);

    border-color:
        var(--ski-primary);
}


/* ============================================================
   20. TABS
   ============================================================ */

.nav-tabs {
    border-bottom:
        1px solid rgba(30, 70, 110, 0.08);
}

.nav-tabs .nav-link {
    color: var(--ski-muted);

    border: 0;
    border-bottom: 2px solid transparent;

    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    color: var(--ski-primary);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--ski-primary);

    background: transparent;

    border-color:
        transparent transparent var(--ski-primary);
}


/* ============================================================
   21. TOASTS
   ============================================================ */

.toast {
    background:
        rgba(255, 255, 255, 0.96) !important;

    border:
        1px solid rgba(30, 70, 110, 0.08);

    border-radius:
        var(--ski-radius);

    box-shadow:
        0 12px 40px rgba(30, 70, 110, 0.16);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}


/* ============================================================
   22. FOOTER
   ============================================================ */

.main-footer {
    min-height: 48px;

    padding: 15px 30px;

    border-top: 0 !important;

    color: var(--ski-muted);

    background:
        rgba(255, 255, 255, 0.58) !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.main-footer a {
    color: var(--ski-primary);
}


/* ============================================================
   23. LOADING / SKELETON
   ============================================================ */

.ski-skeleton {
    position: relative;

    overflow: hidden;

    background:
        rgba(220, 233, 245, 0.60);

    border-radius:
        var(--ski-radius-sm);
}

.ski-skeleton::after {
    content: "";

    position: absolute;
    inset: 0;

    transform: translateX(-100%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.55),
            transparent
        );

    animation:
        ski-skeleton-loading 1.4s infinite;
}

@keyframes ski-skeleton-loading {
    100% {
        transform: translateX(100%);
    }
}


/* ============================================================
   24. SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background:
        rgba(255, 255, 255, 0.30);
}

::-webkit-scrollbar-thumb {
    background:
        rgba(70, 112, 151, 0.24);

    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background:
        rgba(70, 112, 151, 0.40);
}


/* ============================================================
   25. MOBILE / TABLET
   ============================================================ */

@media (max-width: 1199.98px) {

    .content-header {
        padding-left: 24px;
        padding-right: 24px;
    }

    .content {
        padding-left: 24px;
        padding-right: 24px;
    }
}


@media (max-width: 991.98px) {

    body {
        background-attachment: scroll;

        background-position:
            center center;
    }

    .main-sidebar {
        background:
            rgba(255, 255, 255, 0.97) !important;

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .content-header {
        padding: 20px 18px 10px;
    }

    .content-header h1 {
        font-size: 1.65rem;
    }

    .content {
        padding: 0 18px 24px;
    }

    .breadcrumb {
        margin-top: 8px;
    }

    .card,
    .small-box,
    .info-box {
        margin-bottom: 15px;
    }

    .main-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
}


@media (max-width: 767.98px) {

    body {
        background:
            linear-gradient(
                135deg,
                rgba(242, 249, 255, 0.90),
                rgba(255, 255, 255, 0.65)
            ),
            url("../images/background-98A06e7.png")
            center center /
            cover
            fixed
            no-repeat;
    }

    .content-header {
        padding: 17px 15px 8px;
    }

    .content-header h1 {
        font-size: 1.45rem;
    }

    .content {
        padding: 0 15px 20px;
    }

    .small-box {
        min-height: 135px;
    }

    .small-box h3 {
        font-size: 1.7rem;
    }

    .small-box .icon > i {
        font-size: 44px;
    }

    .info-box {
        min-height: 90px;
    }

    .info-box-icon {
        width: 48px;
        height: 48px;

        margin: 14px;
    }

    .info-box-number {
        font-size: 1.3rem;
    }

    .card-header {
        padding: 13px 15px;
    }

    .card-body {
        padding: 15px;
    }

    /*
     * Keep tables usable on phones.
     */
    .table-responsive {
        border: 0;
    }

    table.dataTable thead th,
    table.dataTable tbody td {
        padding: 10px 8px;
        font-size: 0.82rem;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: calc(100% - 65px);
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-content {
        border-radius: 10px !important;
    }

    .main-footer {
        text-align: center;
    }

    .main-footer .float-right,
    .main-footer .float-left {
        float: none !important;
        display: block;
        margin-bottom: 5px;
    }
}


@media (max-width: 575.98px) {

    .main-header .navbar-nav .nav-link {
        padding-left: 9px;
        padding-right: 9px;
    }

    .content-header h1 {
        font-size: 1.3rem;
    }

    .breadcrumb {
        display: flex;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .card {
        border-radius: 10px !important;
    }

    .small-box {
        border-radius: 10px !important;
    }

    .info-box {
        border-radius: 10px !important;
    }
}


/* ============================================================
   26. ACCESSIBILITY
   ============================================================ */

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.custom-select:focus-visible {
    outline: 3px solid rgba(22, 131, 232, 0.25);
    outline-offset: 2px;
}


/* Respect reduced motion */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ============================================================
   27. PRINT
   ============================================================ */

@media print {

    body {
        background: #fff !important;
    }

    body::before {
        display: none !important;
    }

    .main-header,
    .main-sidebar,
    .main-footer {
        display: none !important;
    }

    .content-wrapper {
        margin-left: 0 !important;
        background: #fff !important;
    }

    .card,
    .small-box,
    .info-box {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        background: #fff !important;
        backdrop-filter: none !important;
    }
}
