:root{
  --brand-1: #5b6cff; /* indigo */
  --brand-2: #00c2a8; /* teal */
  --brand-3: #ffd166; /* warm */
  --bg: #f5f7fb;
  --text: #1a1f36;
}

/******** Layout ********/
.theme-body{ background: var(--bg); color: var(--text); }
.app-header{ background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); color: #fff; }
.app-header .navbar-brand{ color:#fff; }
.app-header .avatar{ width:36px; height:36px; }

.app-wrapper{ min-height: calc(100vh - 56px - 60px); /* header & footer */ }
.app-sidebar{ width: 280px; background: #ffffff; border-right: 1px solid rgba(0,0,0,.06); transition: transform .25s ease-in-out; }
.app-sidebar.collapsed{ transform: translateX(-100%); }

@media (max-width: 991.98px){
  .app-sidebar{ position: fixed; top: 56px; bottom: 60px; z-index: 1040; }
  body.sidebar-open #sidebar{ transform: translateX(0) !important; }
  body:not(.sidebar-open) #sidebar{ transform: translateX(-100%); }
}

.app-content{ padding: 1rem; }
.app-footer{ background: #ffffff; border-top:1px solid rgba(0,0,0,.06); }
.app-footer .socials a{ color: inherit; opacity:.8; }
.app-footer .socials a:hover{ opacity:1; }

/******** Sidebar ********/
.sidebar-menu{ padding: 1rem; }
.sidebar-title{ font-size:.9rem; text-transform: uppercase; letter-spacing:.08em; color:#6c757d; margin: .5rem 0 .25rem; }
.sidebar-link{ display:block; padding:.6rem .75rem; border-radius:.5rem; color:#334155; text-decoration:none; transition: background .2s; }
.sidebar-link:hover{ background:#f1f5f9; }
.sidebar-link.active{ background: linear-gradient(90deg, rgba(91,108,255,.12), rgba(0,194,168,.12)); color:#111827; font-weight:600; }

/******** Cards ********/
.gradient-card{ background: linear-gradient(135deg, rgba(91,108,255,.15), rgba(0,194,168,.15)); }
.tour-card .ratio{ border-top-left-radius: .5rem; border-top-right-radius: .5rem; }
.login-card{ background: #ffffff; }

/******** Utilities ********/
.text-dark-50{ color: rgba(0,0,0,.55) !important; }

/* Session banner states */
.session-banner{
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.session-banner.session-warn{
  background: #fff3cd; /* bootstrap warning bg */
  border-bottom-color: #ffe69c;
}
.session-banner.session-danger{
  background: #f8d7da; /* bootstrap danger bg */
  border-bottom-color: #f1aeb5;
}

/* --- Tour Thumbnails --- */
.ratio {
  position: relative;
  overflow: hidden;
}
.ratio img {
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ratio:hover img {
  transform: scale(1.05);
}
.ratio .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ratio:hover .overlay {
  opacity: 1;
}
/* --- Tour Thumbnails (namespaced) --- */
.tour-thumb { position: relative; overflow: hidden; }
.tour-thumb img { object-fit: cover; transition: transform 0.4s ease; }
.tour-thumb:hover img { transform: scale(1.05); }
.tour-thumb .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tour-thumb:hover .overlay { opacity: 1; }

/* --- Header and Sidebar Hardening --- */
.app-header.navbar { min-height: 56px; }
.app-sidebar { flex: 0 0 280px; }
.app-content { min-width: 0; }

/* Admin Extensions polish */
#userList .list-group-item { padding: .85rem 1rem; }
#userList .user-click { outline: none; }
#userList .user-click:focus { box-shadow: 0 0 0 .2rem rgba(0,123,255,.15); border-radius: .5rem; }
.table td, .table th { vertical-align: middle; }

/* Login combined page */
.login-combo .gradient-side{
  background: linear-gradient(135deg, rgba(91,108,255,1), rgba(0,194,168,1));
  min-height: 100%;
  border-right: 1px solid rgba(255,255,255,.2);
}
.role-switch{
  display: inline-flex; gap:.5rem; flex-wrap: wrap;
}
.role-switch .btn{ min-width: 150px; }
.login-combo {
  min-height: 63vh;
  border-radius: 0;
}
/* Left gradient branding section */
.login-left {
  background: linear-gradient(135deg, #5B6CFF, #00C2A8);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 100%;
}

/* Card wrapper */
.login-wrapper {
  border-radius: 16px;
  overflow: hidden;
}

/* Input focus enhancements */
.form-control:focus {
  border-color: #5B6CFF !important;
  box-shadow: 0 0 0 0.15rem rgba(91, 108, 255, 0.25);
}

/* Button focus */
.btn:focus {
  box-shadow: none !important;
}
/* Login combined page end */
/* Admin Extensions page */
.table-clickable tbody tr { cursor: pointer; }
.table-clickable tbody tr.active-row {
  background-color: rgba(91,108,255,0.08) !important;
}
.table-clickable tbody tr:hover {
  background-color: rgba(15,23,42,0.03) !important;
}

/* Filter bar */
.extensions-filters {
  background: #ffffff;
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(15,23,42,0.06);
}
.extensions-filters .form-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6c757d;
}

/* Tabs badge */
.nav-extensions .nav-link .badge {
  font-size: .7rem;
  vertical-align: middle;
}

/* Modal table */
#extModalTable td, #extModalTable th {
  vertical-align: middle;
}

/* Shared filter panel */
.extensions-filters {
  background: #ffffff;
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(15,23,42,0.06);
}
.extensions-filters .form-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6c757d;
}

/* Clickable row styling */
.table-clickable tbody tr { cursor: pointer; }
.table-clickable tbody tr:hover {
  background-color: rgba(15,23,42,0.03) !important;
}


