@import 'general.css';
:root {
    --primary-color: #3D5188;
    --secondary-color: #ffc107;
    --primary-light-color: #5F76A8;
}

.bg-primary-light {
    background-color: var(--primary-light-color) !important;
}

.bg-primary,
.list-group-item.active {
    background-color: var(--primary-color) !important;
}

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

.font-sm {
    font-size: 10pt !important;
}

/* Custom container width */
.container {
    max-width: 1400px;
}

@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
}

body,
html {
    font-family: 'Poppins', sans-serif;
    font-size: 14pt;
    font-weight: 300;
    background-color: #fff;
    padding-top: 0px;
    padding-bottom: 0px;
}

.card-body {
    font-family: 'Poppins', sans-serif;
    font-size: 14pt;
    font-weight: 300;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 14pt;
    font-weight: 300;
}

.nav-main {
    background: none;
    color: #000;
    z-index: 100000;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.font-title {
    font-size: 1.85rem;
}

.navbar-transparent {
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar-transparent .nav-link {
    color: white !important;
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .nav-link {
    color: #333 !important;
}

.hero-banner {
    min-height: 75vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)),
        url('../images/slide1.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: bottom center;
    color: white;
    padding: 50px 0;
    padding-top: 150px;
    padding-bottom: 25px;
}

.trendsSwiper {
    padding: 20px 5px 50px 5px;
}

.swiper-pagination {
    position: relative;
    bottom: -10px !important;
    margin-top: 20px;
}

.swiper-slide {
    height: auto;
    padding: 15px 5px;
}

.heroInfoSwiper {
    width: 100%;
    overflow: hidden;
}

.heroInfoSwiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.heroInfoSwiper .text-start {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.heroInfoSwiper .text-xs {
    overflow-wrap: break-word;
    word-break: normal;
    font-size: 0.75rem;
    line-height: 1.25rem;
}

.heroInfoSwiper .swiper-pagination {
    position: relative;
    bottom: 0 !important;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .heroInfoSwiper .swiper-pagination {
        display: none;
    }
}

@media (max-width: 767px) {
    .heroInfoSwiper {
        padding: 0 10px;
    }

    .heroInfoSwiper .text-xs {
        font-size: 0.75rem;
        line-height: 1.2rem;
    }

    .heroInfoSwiper .swiper-pagination {
        display: flex;
        justify-content: center;
    }

    .hero-banner {
        padding-top: 150px !important;
    }

    .navbar-scrolled {
        background-color: rgba(255, 255, 255, 1);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .navLogoBox {
        width: 200px !important;
    }
}

@media (min-width: 768px) {
    .heroInfoSwiper .swiper-slide {
        padding: 0 15px;
    }
}

.card {
    height: 100%;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.search-input {
    border-radius: 0.5rem 0 0 0.5rem;
    border: none;
    padding: 0.75rem 1rem;
}

.search-button {
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.75rem 1.5rem;
}

.trendsSwiper {
    line-height: 1.5;
}

.trendsSwiper .card-text {
    font-size: 0.8rem;
}

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

.rounded-xl {
    border-radius: 20px !important;
}

.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.card-image:hover img {
    transform: scale(1.1);
}

.shadow-md {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.modal-container-search {
    box-shadow: none !important;
}

.searchContainer {
    width: 50%;
    border-radius: 50px !important;
    border:solid 1px #ccc;
}

.searchContainer .modal-container-search {
    border-radius: 50px !important;
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 767px) {
    .userMenuContainer {
        position: absolute;
        width: 90%;
        top: 0;
        left: 0;
        text-align: right;
        z-index: 1000;
    }

    .userMenuContainer #loginIconBtn {
        margin-right: 0 !important;
    }

    .navbar .dropdownContainer {
        position: absolute;
        width: 100%;
        top: 0;
        right: 0;
    }

    .navbar .dropdownContainer .dropdown-menu {
        width: 100%;
        top: 100px;
        height: 100vh !important;
        max-height: 100vh !important;
        padding-bottom: 150px !important;
    }

    .searchContainer {
        width: 100%;
        border: solid 1px #ccc;   
        border-radius: 50px;
        margin-top: 5px;
    }
}


/* REGISTER */
.auth-container {
    min-height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 1;
}

.auth-image {
    min-height: 100vh;
    background-image: url('../images/slide1.webp');
    background-size: cover;
    background-position: center;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
    z-index: 1;
}

.image-content {
    position: relative;
    z-index: 2;
}

.form-container {
    height: 100vh;
    overflow-y: auto;
    background-color: white;
    position: relative;
    z-index: 10;
}

.page-banner {
    min-height: 40vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../images/slide1.webp');
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    color: white;
    padding-bottom: 40px;
}

.page-banner .display-4 {
    font-size: 2.3rem;
    text-align: center;
}

@media (max-width: 500px) {
    .app-container {
        padding: 0 0 0px !important;
    }

    .page-banner {
        min-height: 35vh;
        display: flex;
        flex-direction: column;
        justify-content: end;
        background-position: center bottom;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 150px;
    }

    .display-4 {
        font-size: 1.5rem;
        line-height: 1;
        text-align: center;
    }

    .page-banner ul.list-inline {
        margin-bottom: 0px !important;
    }

    .page-banner .display-4 .badge {
        font-size: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .auth-image {
        min-height: 30vh;
    }

    .form-container {
        min-height: 70vh;
        height: auto;
    }

    .page-banner {
        min-height: 30vh;
        display: flex;
        flex-direction: column;
        justify-content: end;
        background-position: center bottom;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 10px;
        padding-top: 150px;
    }

    .page-banner ul.list-inline {
        margin-bottom: 0px !important;
    }

    .display-4 {
        font-size: 1.5rem;
        line-height: 1;
        text-align: center;
    }

    .page-banner .display-4 .badge {
        font-size: 1rem;
        text-align: center;
    }

    #loginIconBtn {
        margin-right: 40px;
    }
}

@media (max-width: 999px) {
    .breadcrumb-container {
        margin-top: 3.4rem;
        margin-left: 0;
        padding-top: 4px;
        height: 1.875rem;
        padding-left: 75px;
    }

    #loginIconBtn {
        margin-right: 40px;
    }
}

.airTable.table-striped>tbody>tr:nth-of-type(2n+1)>* {
    background-color: #fff !important;
    box-shadow: none !important;
}

.airTable.table-striped>tbody>tr:nth-child(odd)>td,
.airTable.table-striped>tbody>tr:nth-child(odd)>th {
    background-color: #fff !important;
    box-shadow: none !important;
}

.airTable.table-striped>tbody>tr:nth-child(even)>td,
.airTable.table-striped>tbody>tr:nth-child(even)>th {
    background-color: #f7f9fc !important;
    box-shadow: none !important;
}

.airTable.table-striped-white>tbody>tr:nth-child(odd)>td,
.airTable.table-striped-white>tbody>tr:nth-child(odd)>th {
    background-color: #fff !important;
    box-shadow: none !important;
}

.airTable .modal-container-search .card-header {
    background: none !important;
    border: none !important;
}

.airTable .modal-container-search .card-header .search-box-input {
    outline: none;
    background: transparent;
    width: 100%;
    padding-left: 10px;
}

.airTable #accountTabsMobile .small {
    font-size: 9pt;
}

.airTable #accountTabsMobile .small {
    font-size: 9pt;
}

.airTable .table-responsive {
    overflow-x: auto;
}

/* Enhanced styling for DataTables responsive arrows */
.airTable table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
.airTable table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
    background-color: #007bff !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3) !important;
    height: 24px !important;
    width: 24px !important;
    line-height: 22px !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-weight: bold !important;
    margin-right: 10px !important;
    content: '+' !important;
    text-align: center !important;
    font-family: 'Arial', sans-serif !important;
    transition: all 0.2s ease !important;
}

.airTable table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control:before,
.airTable table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th.dtr-control:before {
    background-color: #dc3545 !important;
    content: '-' !important;
}

.airTable table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control,
.airTable table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control {
    padding-left: 35px !important;
    position: relative !important;
}

/* Add hover effect */
.airTable table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:hover:before,
.airTable table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:hover:before {
    transform: scale(1.1) !important;
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.5) !important;
}

table.dataTable.table.table-striped>tbody>tr:nth-of-type(2n+1)>* {
    box-shadow: none !important;
}

@media (max-width: 767px) {

    .btn-sm {
        font-size: 10pt !important;
    }

    .airTable .dataTables_length,
    .airTable .dataTables_filter {
        width: 100%;
        margin-bottom: 15px;
        text-align: left !important;
    }

    .airTable .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 5px;
    }

    .airTable .dataTables_length select {
        width: 80px !important;
    }

    .airTable .datepicker {
        font-size: 14px;
    }

    .airTable .form-label {
        margin-bottom: 0.25rem;
    }

    .airTable .input-group {
        margin-bottom: 0.5rem;
    }

    /* Make the expand/collapse button even more prominent on mobile */
    .airTable table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
    .airTable table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
        height: 30px !important;
        width: 30px !important;
        line-height: 28px !important;
        font-size: 16px !important;
        margin-right: 15px !important;
    }

    /* Add more padding to the cell with the control button */
    .airTable table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control,
    .airTable table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control {
        padding-left: 45px !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .dropdownContainer .dropdown-menu .container-fluid .row {
        display: block;
    }
}

/* Custom styles for responsive arrows */
table.dataTable.dtr-column>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-column>tbody>tr>th.dtr-control:before,
table.dataTable.dtr-column>tbody>tr>td.control:before,
table.dataTable.dtr-column>tbody>tr>th.control:before {
    content: "\f054" !important;
    /* FontAwesome chevron-right icon */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    box-shadow: none !important;
    height: 20px !important;
    width: 20px !important;
    border-radius: 50% !important;
    line-height: 20px !important;
    text-align: center !important;
    display: inline-block !important;
    font-size: 12px !important;
    margin-left: -5px !important;
}

table.dataTable.dtr-column>tbody>tr.dtr-expanded td.dtr-control:before {
    content: "\f078" !important;
    /* FontAwesome chevron-down icon */
    background-color: #dc3545 !important;
}

.searchContainer .card-header {
    border-bottom: none !important;
}

.breadcrumb-container {
    padding-left: 10px !important;
    background: none;
}

.breadcrumb-transparent,
.breadcrumb-transparent a {
    color: #fff !important;
}

.breadcrumb-white a {
    color: var(--primary-color) !important;
}

.active-filter {
    background-color: var(--secondary-color);
    color: #000 !important;
}

.active-filter:hover {
    background-color: var(--secondary-color);
    color: #000 !important;
}

.filter-item {
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.filter-item:hover {
    background-color: rgba(255, 193, 7, 0.8);
    color: #fff !important;
}

.profile-btn {
    font-size: 11pt !important;
    font-weight: 400 !important;
}

.table-header,
.table-header th {
    background-color: var(--primary-color) !important;
    border-bottom: 1px solid #ccc !important;
    color: #fff !important;
    padding: 5px !important;
    text-transform: none !important;
    border-top: 0px !important;
}

.table-striped tbody tr:nth-of-type(odd),
.table-striped>tbody>tr:nth-child(odd)>td {
    background-color: #f8f9fa !important;
}

.table-striped tbody tr:nth-of-type(even),
.table-striped>tbody>tr:nth-child(even)>td {
    background-color: #ffffff !important;
}

.rounded-sm {
    border-radius: 15px !important;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 100001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    border-top: 6px solid var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loaded #preloader {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-out;
}

/* Scroll to top button */
#scroll-to-top {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

#scroll-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

#toolsBox {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

#toolsBox:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

#toolsBox.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 978px) {
    body {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
}

.searchContainer .modal-container-search {
    padding-left: 18px !important;
    padding-right: 18px !important;
}

.searchContainer .search-box-input {
    padding-left: 30px !important;
}

.searchContainer .card-header {
    background-color: #fff !important;
}

.searchContainer .search-box-button {
    margin-left: -10px !important;
}

.searchContainer .search-body-global .search-body {
    border: 2px solid #333 !important;
    border-radius: 15px !important;
}

.searchContainer .search-box-input {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

.searchContainer .search-box-input:focus {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

.swiper-pagination {
    margin-bottom: 10px !important;
}

.QuickTools {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    gap: 10px;
}

.text-center {
    text-align: center !important;
}

.text-bold {
    font-weight: bold !important;
}

#description-card h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 14pt;
    font-weight: 600 !important;
}

.admin-edit-btn {
    position: fixed;
    bottom: 20px;
    left: 70px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1100;
    transition: background 0.2s;
}

.header-subtitle {
    font-size: 20pt;
    color: #fff;
    font-weight: 400;
    margin-bottom: 0px;
}

.header-subtitle2 {
    font-size: 16pt;
    color: #fff;
    font-weight: 400;
    margin-bottom: 0px;
}

.header-title {
    font-size: 32pt;
    color: #fff;
    font-weight: 400;
    margin-bottom: 0px;
}

.text-primary {
    color: #3D5188 !important;
}

.text-primary-light {
    color: #3D5188 !important;
}

.middleBar {
    background-color: var(--primary-color);
    padding: 10px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.middleBar ul.list-inline {
    margin-bottom: 0;
    padding: 0;
}

.middleBar ul.list-inline li.list-inline-item {
    margin-bottom: 0 !important;
    margin-right: 2rem;
}

.middleBar ul.list-inline li a {
    color: #fff;
    font-size: 12pt;
}

@media (max-width: 768px) {
    .middleBar ul.list-inline li.list-inline-item {
        margin-right: 0.25rem;
        margin-left: 0.25rem;
    }

    .middleBar ul.list-inline li a {
        font-size: 11pt;
    }
}