:root {
    --primary: #dbdbdb !important;
    --bg-wood-dark-img: var(--base_url)dis/default/bg-wood-dark.jpg;
    --bg-gradient: radial-gradient(circle, rgba(47, 29, 19, 1) 35%, rgba(79, 51, 19, 1) 66%, rgba(51, 34, 19, 1) 96%);
    --bg-gradient2: radial-gradient(circle, rgba(47, 29, 19, 1) 35%, rgba(79, 51, 19, 1) 66%, rgba(51, 34, 19, 1) 96%);
}
   #header {
            height: 70vh;
            width: 100%;
            position: relative;
            overflow: hidden;
        }

        #header img.cover-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover; 
            object-position: center;
            z-index: 1;
        }

        #header .header-content {
            position: relative;
            z-index: 1;
            height: 100%;
            width: 100%;
        }

        #top-Nav a.nav-link.active {
            color: #343a40;
            font-weight: 900;
            position: relative;
        }

        #top-Nav a.nav-link.active::before {
            content: "";
            position: absolute;
            border-bottom: 2px solid #343a40;
            width: 33.33%;
            left: 33.33%;
            bottom: 0;
        }

.dark-mode.text-light .modal * {
    color: var(--light);
}

.dark-mode .btn-dark,
.dark-mode .btn-dark * {
    color: var(--dark) !important;
    background: var(--light) !important;
}

.bg-gradient-black {
    background: #343a40 linear-gradient(180deg, #000000, #282828) repeat-x !important;
    color: #fff;
}

.content-wrapper {
    background-color: #dddddd;
}

.form-control.border-navy:focus {
    border-color: #001f3f !important;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: smaller;
    font-style: italic;
}

.truncate-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.truncate-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.truncate-5 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.modal-dialog.large {
    width: 80% !important;
    max-width: unset;
}

.modal-dialog.mid-large {
    width: 50% !important;
    max-width: unset;
}

@media (max-width:900px) {
    .modal-dialog.large {
        width: 100% !important;
        max-width: unset;
    }
    .modal-dialog.mid-large {
        width: 100% !important;
        max-width: unset;
    }
    .modal-dialog {
        margin: unset !important;
    }
}

#viewer_modal .btn-close {
    position: absolute;
    z-index: 999999;
    /*right: -4.5em;*/
    background: unset;
    color: white;
    border: unset;
    font-size: 27px;
    top: 0;
}

#viewer_modal .modal-dialog {
    width: 80%;
    max-width: unset;
    height: calc(90%);
    max-height: unset;
}

#viewer_modal .modal-content {
    background: black;
    border: unset;
    height: calc(100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
span.select2-selection.select2-selection--single,
span.select2-selection.select2-selection--multiple {
    border: 0 !important;
    border-bottom: 1px solid #ced4da !important;
    border-radius: 0 !important;
}

#viewer_modal img,
#viewer_modal video {
    max-height: calc(100%);
    max-width: calc(100%);
}

table.dataTable th,
table.dataTable td {
    padding: 5px;
}

.card.d-flex {
    flex-direction: row !important;
}

.card.d-flex>img {
    width: 20% !important;
}

.card.d-flex>.card-body {
    width: 80% !important;
}

span.btn {
    cursor: unset;
}

span.btn:hover {
    background: inherit;
}

#tourCarousel {
    height: 50vh !important;
}

#tourCarousel img {
    object-fit: fill;
}

div.stars {
    width: auto;
    display: inline-block
}

.mt-200 {
    margin-top: 200px
}

input.star {
    display: none
}

label.star {
    float: right;
    /* padding: 10px; */
    font-size: 30px;
    color: #333333;
    transition: all .2s
}

input.star:checked~label.star:before {
    content: '\2605';
    color: #ffc800;
    transition: all .25s
}

input.star-5:checked~label.star:before {
    color: #ffc800;
    /* text-shadow: 0 0 20px #952 */
}

input.star-1:checked~label.star:before {
    color: #F62
}

label.star:hover {
    transform: rotate(-15deg) scale(1.3)
}

label.star:before {
    content: '\2605';
    font-family: FontAwesome
}

#top-header {
    height: 70vh;
}

#top-header * {
    text-shadow: 3px 2px #000000b0;
}

#top-header .title {
    font-size: 5em;
    text-shadow: 4px 4px #000000f5;
}

.site-title {
    font-size: 4em !important;
    color: white !important;
    text-shadow: 4px 5px 3px #68717a !important;
}

.site-subtitle {
    font-size: 2em !important;
    color: #e5e5e5 !important;
    text-shadow: 4px 5px 3px #71777c !important;
}

#top-header:before {
    content: '';
    position: absolute;
    height: 80vh;
    width: calc(100%);
    top: 0;
    left: 0;
    background-image: var(--bg-img) !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 0;
    filter: brightness(.95)
}

.company-name {
    font-size: 1.35rem;
    font-variant: all-petite-caps;
    font-family: monospace;
    font-weight: 600;
    color: #b5b5b5;
}

img.company-logo {
    transition: transform .02s ease-in;
}

img.company-logo:hover {
    transform: scale(1.02);
}

nav.text-light .nav-link {
    color: var(--light)!important;
}

.login-title {
    text-shadow: -3px 5px 9px #000 !important;
    font-family: cursive;
    font-size: 4.5em !important;
    color: white !important;
}

.form-control.border-0.border-bottom {
    border-bottom: 1px solid !important;
    border-color: #dae1e7 !important;
    transition: border .5s ease-in;
}

.form-control.border-0.border-bottom:focus {
    border-color: var(--info) !important;
}

#print-logo {
    height: 150px;
    width: 150px;
    object-fit: scale-down;
    object-position: center center;
    border-radius: 100%;
    float: left;
}

#student-img-avatar {
    object-fit: scale-down;
    object-position: center center;
    height: 25px;
    width: 25px;
    border: 1px solid var(--dark);
    border-radius: 100%;
}

.review-user-img {
    object-fit: scale-down;
    object-position: center center;
    height: 30px;
    width: 30px;
    border: 1px solid var(--dark);
    border-radius: 100%;
}

#banner-img {
    object-fit: scale-down;
    object-position: center center;
    height: 40vh;
    width: calc(80%);
}

.banner-img {
    object-fit: scale-down;
    object-position: center center;
    height: 27vh;
    width: calc(90%);
}

@media (max-width:760px) {
    #banner-img {
        height: 30vh;
        width: calc(100%);
    }
}

.list-group:empty:before {
    color: #505050;
    content: "List is Empty";
    text-align: center;
    width: calc(100%)
}

a.page-link.active {
    background-color: #007bff;
    color: #fff;
}

a.page-link[disabled] {
    cursor: not-allowed;
    background-color: #c7c7c7;
    color: #e9e9e9;
    pointer-events: none;
}

div#search-field {
    display: none !important;
    transition: all 3s ease-in;
    height: 0;
}

div#search-field.show {
    background: var(--light);
    top: 2.7em;
    width: 30em;
    left: -30em;
    height: auto;
    padding: 0.5em 0.5em;
    border: 1px solid #d7d7d7;
    display: block !important;
}

table[data-placeholder='true'] tbody:empty:after {
    content: "No data";
    position: absolute;
    color: rgb(145 142 142);
    font-size: .8em;
    font-style: italic;
    width: calc(100%);
    padding: 0.5em;
    text-align: center;
}

.custom-checkbox {
    cursor: pointer;
}

/* ===================== */
/* Premium Topbar Polish */
/* ===================== */
:root {
    --nav-bg:     #0a1a33;   /* navy blue */
    --nav-accent: #1e40af;   /* navy accent */
    --nav-text:   #e5e7eb;
}

#topbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1037;
    background: var(--nav-bg);
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
}

/* Brand */
#topbar .navbar-brand {
    font-weight: 600;
    letter-spacing: .4px;
    color: #ffffff;
}

#topbar .brand-image {
    width: 34px;
    height: 34px;
    opacity: .9;
}

#topbar .nav-link {
    position: relative;
}

/* Desktop */
#topbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 6px;
    height: 2px;
    background: var(--nav-accent);
    border-radius: 10px;
}

/* Mobile fix */
@media (max-width: 767px) {
    #topbar .nav-link.active::after {
        left: 0;
        right: 0;
        bottom: 4px;
        
    }
}

/* User area */
.user-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.25);
}

.user-name {
    font-size: .85rem;
    font-weight: 500;
    margin-right: .5rem;
    color: var(--nav-text);
}

.logout-btn {
    color: #93c5fd;
    transition: color .2s ease;
}

.logout-btn:hover {
    color: #bfdbfe;
}

/* Mobile */
.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Layout spacing */
.layout-navbar-fixed .content-wrapper {
    padding-top: 0rem !important;
}
/* FIX left gap on mobile */
@media (max-width: 991.98px) {
  body.sidebar-mini.sidebar-collapse .main-header,
  body.sidebar-mini.sidebar-collapse .content-wrapper,
  body.sidebar-mini.sidebar-collapse .main-footer {
    margin-left: 0 !important;
  }

  body.sidebar-mini .main-header,
  body.sidebar-mini .content-wrapper,
  body.sidebar-mini .main-footer {
    margin-left: 0 !important;
  }
}
/* ===============================
   PREMIUM SIDEBAR STYLE
================================ */
.premium-sidebar .sidebar {
  padding-top: 4px;
}

.premium-sidebar {
  background: linear-gradient(180deg, #0f172a, #020617);
}

/* Brand */
.premium-brand {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.6rem 1rem;
}

.premium-brand .brand-text {
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

/* Nav links */
.nav-sidebar .nav-link {
  border-radius: 10px;
  margin: 0 8px 4px;
  padding: 0.6rem 0.9rem;
  color: #c7d2fe;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Icons */
.nav-sidebar .nav-icon {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Hover */
.nav-sidebar .nav-link:hover {
  background: rgba(99,102,241,0.18);
  color: #fff;
  transform: translateX(3px);
}

/* Active */
.nav-sidebar .nav-link.active {
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
  box-shadow: 0 6px 18px rgba(99,102,241,0.35);
}

.nav-sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: #6366f1;
  border-radius: 0 6px 6px 0;
}

/* Headers */
.nav-header {
  color: #94a3b8;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 10px 16px 6px;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

/* Mobile */
@media (max-width: 991.98px) {
  .nav-sidebar .nav-link {
    margin: 0 6px;
    padding: 0.55rem 0.8rem;
  }
}
/* ===============================
   PREMIUM TOPBAR
================================ */

.main-header.premium-topbar {
    background: linear-gradient(135deg, #0f172a, #1e3a8a); /* Very dark blue gradient */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);   /* subtle white border */
    color: #ffffff;                                        /* text color white */
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);               /* deeper shadow for premium feel */
}

/* Remove mobile gap */
@media (max-width: 991.98px) {
  .main-header {
    margin-left: 0 !important;
  }
}

/* Toggle button */
.premium-toggle {
  font-size: 1.1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.premium-toggle:hover {
  background: rgba(255,255,255,0.15);
}

/* Title */
.premium-title {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #e0e7ff;
}

/* User button */
.user-dropdown-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s ease;
}

.user-dropdown-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* Avatar */
.user-avatar {
  height: 30px;
  width: 30px;
  object-fit: cover;
}

/* Name */
.user-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
}

/* Dropdown menu */
.dropdown-menu {
  border-radius: 12px;
  padding: 6px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.dropdown-item {
  border-radius: 8px;
  font-size: 0.8rem;
  padding: 8px 12px;
}

.dropdown-item:hover {
  background: #eef2ff;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .user-name {
    display: none;
  }
}

/* ===============================
   PREMIUM FOOTER
================================ */

.premium-footer {
  background: linear-gradient(180deg, #020617, #020617);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #c7d2fe;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left text */
.footer-left strong {
  font-weight: 500;
  color: #e5e7eb;
}

.footer-muted {
  margin-left: 6px;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Right */
.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-app {
  background: rgba(99,102,241,0.15);
  color: #c7d2fe;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.footer-version {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Mobile */
@media (max-width: 576px) {
  .premium-footer {
    text-align: center;
    justify-content: center;
  }

  .footer-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
}
/* Footer gap fix */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1 0 auto;
  padding-bottom: 0 !important;
  padding-top: 2rem; 
}

.main-footer {
  margin-bottom: 0 !important;
  flex-shrink: 0;
}
/* ===============================
   DASHBOARD
================================ */
/* Dashboard container */
.dashboard-row {
    padding: 2rem 1.5rem;
}

/* Dashboard header */
.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}
.dashboard-header p {
    font-size: 1rem;
    color: #6b7280;
}

/* Cards grid */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Stat card base */
.stat-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 15px;
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

/* Icon style */
.stat-icon {
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    flex-shrink: 0;
}

/* Color variants */
.stat-card.warning .stat-icon { background: #f59e0b; }
.stat-card.danger .stat-icon { background: #ef4444; }
.stat-card.primary .stat-icon { background: #3b82f6; }
.stat-card.success .stat-icon { background: #10b981; }
.stat-card.secondary .stat-icon { background: #6b7280; }
.stat-card.teal .stat-icon { background: #14b8a6; }

/* Content inside card */
.stat-content {
    display: flex;
    flex-direction: column;
}
.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}
.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin-top: 0.25rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .stat-card {
        flex-direction: row;
        padding: 1rem;
    }
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    .stat-value { font-size: 1.4rem; }
}
/* ===========================
   PROFILE PAGE
=========================== */
.profile-card {
    border-radius: 0.75rem;
    border: none;
}

.profile-card .card-header h5 {
    font-weight: 600;
    color: #111827;
}

/* Avatar */
.avatar-wrapper {
    display: flex;
    justify-content: center;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #6366f1;
    box-shadow: 0 8px 20px rgba(99,102,241,0.2);
}

/* Inputs */
.profile-card .form-control {
    border-radius: 0.5rem;
}

.profile-card label {
    font-weight: 500;
    color: #374151;
}

/* Footer */
.profile-card .card-footer {
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .profile-avatar {
        width: 110px;
        height: 110px;
    }
}