/* === Global Base Styles === */
:root {
  --sidebar-width: 236px;
  --tgo-green-900: #0b3d2e;
  --tgo-green-800: #14532d;
  --tgo-green-700: #1a6b3f;
  --tgo-green-600: #16a34a;
  --tgo-green-100: #e8f5ec;
  --tgo-green-50: #f5fbf7;
  --tgo-white: #ffffff;
  --tgo-page-bg: #f3f5f8;
  --tgo-card-bg: #ffffff;
  --tgo-card-border: #d8e1f0;
  --tgo-muted: #64748b;
  --tgo-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  --tgo-shell-shadow: 0 18px 40px rgba(11, 38, 28, 0.16);
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(22, 163, 74, 0.08), transparent 22%),
    radial-gradient(circle at 88% 16%, rgba(11, 61, 46, 0.08), transparent 22%),
    linear-gradient(180deg, #f4f7f4 0%, #f5f7f8 100%);
  margin: 0;
  padding: 0;
  height: 100vh;
  color: #173126;
}

/* Shared TGO tool skin: aligned with Asset Management design language */
body.dashboard,
body.downloads,
body.monthly-plan,
body.i9-tracker,
body.timecard-checker,
body.time-converter,
body.hr-census,
body.application-summary,
body.da-count,
body.schedule {
  background: var(--tgo-page-bg);
}

body.dashboard .main-content .card,
body.downloads .main-content .card,
body.monthly-plan .main-content .card,
body.i9-tracker .main-content .card,
body.timecard-checker .main-content .card,
body.time-converter .main-content .card,
body.hr-census .main-content .card,
body.application-summary .main-content .card,
body.da-count .main-content .card,
body.schedule .main-content .card {
  border-radius: 14px;
  border: 1px solid var(--tgo-card-border);
  background: var(--tgo-card-bg);
  box-shadow: var(--tgo-shadow);
}

body.dashboard .main-content .nav-pills .nav-link,
body.downloads .main-content .nav-pills .nav-link,
body.monthly-plan .main-content .nav-pills .nav-link,
body.i9-tracker .main-content .nav-pills .nav-link,
body.timecard-checker .main-content .nav-pills .nav-link,
body.time-converter .main-content .nav-pills .nav-link,
body.hr-census .main-content .nav-pills .nav-link,
body.application-summary .main-content .nav-pills .nav-link,
body.da-count .main-content .nav-pills .nav-link,
body.schedule .main-content .nav-pills .nav-link {
  border-radius: 10px;
  color: #1f2937;
  font-weight: 600;
}

body.dashboard .main-content .nav-pills .nav-link.active,
body.downloads .main-content .nav-pills .nav-link.active,
body.monthly-plan .main-content .nav-pills .nav-link.active,
body.i9-tracker .main-content .nav-pills .nav-link.active,
body.timecard-checker .main-content .nav-pills .nav-link.active,
body.time-converter .main-content .nav-pills .nav-link.active,
body.hr-census .main-content .nav-pills .nav-link.active,
body.application-summary .main-content .nav-pills .nav-link.active,
body.da-count .main-content .nav-pills .nav-link.active,
body.schedule .main-content .nav-pills .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--tgo-green-900), var(--tgo-green-800) 55%, var(--tgo-green-600));
  box-shadow: 0 10px 20px rgba(22, 101, 52, 0.25);
}

body.dashboard .main-content .form-control,
body.dashboard .main-content .form-select,
body.downloads .main-content .form-control,
body.downloads .main-content .form-select,
body.monthly-plan .main-content .form-control,
body.monthly-plan .main-content .form-select,
body.i9-tracker .main-content .form-control,
body.i9-tracker .main-content .form-select,
body.timecard-checker .main-content .form-control,
body.timecard-checker .main-content .form-select,
body.time-converter .main-content .form-control,
body.time-converter .main-content .form-select,
body.hr-census .main-content .form-control,
body.hr-census .main-content .form-select,
body.application-summary .main-content .form-control,
body.application-summary .main-content .form-select,
body.da-count .main-content .form-control,
body.da-count .main-content .form-select,
body.schedule .main-content .form-control,
body.schedule .main-content .form-select {
  border-radius: 10px;
  border-color: #d6dfed;
}

body.dashboard .main-content .table thead th,
body.downloads .main-content .table thead th,
body.monthly-plan .main-content .table thead th,
body.i9-tracker .main-content .table thead th,
body.timecard-checker .main-content .table thead th,
body.time-converter .main-content .table thead th,
body.hr-census .main-content .table thead th,
body.application-summary .main-content .table thead th,
body.da-count .main-content .table thead th,
body.schedule .main-content .table thead th {
  background: #ecfdf3;
}

body.dashboard .main-content .btn-success,
body.downloads .main-content .btn-success,
body.monthly-plan .main-content .btn-success,
body.i9-tracker .main-content .btn-success,
body.timecard-checker .main-content .btn-success,
body.time-converter .main-content .btn-success,
body.hr-census .main-content .btn-success,
body.application-summary .main-content .btn-success,
body.da-count .main-content .btn-success,
body.schedule .main-content .btn-success {
  border-color: #15803d;
  background: linear-gradient(135deg, #166534, #16a34a);
}

body.dashboard .main-content .btn-outline-success,
body.downloads .main-content .btn-outline-success,
body.monthly-plan .main-content .btn-outline-success,
body.i9-tracker .main-content .btn-outline-success,
body.timecard-checker .main-content .btn-outline-success,
body.time-converter .main-content .btn-outline-success,
body.hr-census .main-content .btn-outline-success,
body.application-summary .main-content .btn-outline-success,
body.da-count .main-content .btn-outline-success,
body.schedule .main-content .btn-outline-success {
  border-color: #16a34a;
  color: #166534;
}

/* Reusable utility classes for future pages */
.tgo-tool-shell {
  max-width: 1700px;
  margin: 0 auto;
}

.tgo-hero-card {
  border: 0;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tgo-green-900), var(--tgo-green-800) 55%, var(--tgo-green-600));
  box-shadow: 0 14px 28px rgba(16, 80, 47, 0.22);
}

.tgo-surface-card {
  border: 1px solid var(--tgo-card-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--tgo-shadow);
}

.tgo-subtle-text {
  color: var(--tgo-muted);
}

/* Only Kanban page uses flex body layout */
body.kanban {
  display: flex;
  flex-direction: column;
}

header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* Chart sizing */
.chart-container {
  height: 300px;       /* default height */
  position: relative;  /* Chart.js respects container */
}

.chart-container.large {
  height: 350px;       /* taller for stacked bar charts */
}

canvas {
  max-width: 100%;     /* responsive width */
  max-height: 100%;    /* respect container height */
}

/* === Dashboard Header === */

.portal-banner {
  background: linear-gradient(135deg, #198754, #28a745); /* gradient green */
  color: #fff;
  font-weight: 500;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  opacity: 0; /* start hidden */
  transform: translateY(-10px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.portal-banner i {
  color: #fff;
  font-size: 2rem; /* larger robot icon */
}

/* Banner fade-in animation */
.animate-banner {
  animation: fadeSlideIn 1s ease forwards;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse effect for robot icon */
.pulse-icon {
  animation: pulse 4s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* Hover glow effect */
.portal-banner:hover {
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.6);
  transform: translateY(-2px);
}

/* Text glow effect with animation */
.glow-text strong {
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
               0 0 12px rgba(40, 167, 69, 0.6);
  animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
  0% { text-shadow: 0 0 6px rgba(255,255,255,0.8), 0 0 12px rgba(40,167,69,0.6); }
  50% { text-shadow: 0 0 10px rgba(255,255,255,1), 0 0 20px rgba(40,167,69,0.9); }
  100% { text-shadow: 0 0 6px rgba(255,255,255,0.8), 0 0 12px rgba(40,167,69,0.6); }
}

.bg-teal {
  background-color: #20c997 !important; /* Bootstrap teal */
  color: #fff !important;
}

.bg-purple {
  background-color: #6f42c1 !important; /* Bootstrap purple */
  color: #fff !important;
}

.bg-orange {
  background-color: #fd7e14 !important; /* Bootstrap orange */
  color: #fff !important;
}

/* ──────────────────────────────────────────────
   ✅ Core Table Styling
────────────────────────────────────────────── */
.table-wrapper {
  max-height: 70vh;
  overflow: auto;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  background-color: #fff;
  scrollbar-gutter: stable both-edges;
}

.table thead th {
  position: sticky;
  top: 0;
  background-color: #d1e7dd; /* Match Bootstrap's table-success */
  z-index: 2;
  box-shadow: inset 0 -1px 0 #dee2e6;
}

.table th,
.table td {
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
  font-size: 0.9rem;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fa;
}

/* ──────────────────────────────────────────────
   ✅ DataTables Search Bar Styling
────────────────────────────────────────────── */
.dataTables_filter {
  margin: 0.5rem 0 1rem 0.5rem;
}

.dataTables_filter label {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  align-items: center;
}

.dataTables_filter input {
  width: 250px;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #ced4da;
}

/* ──────────────────────────────────────────────
   🧩 Additional Scroll Helpers (used elsewhere)
────────────────────────────────────────────── */
.overflow-auto {
  scrollbar-gutter: stable both-edges;
}

.table-container {
  max-height: 70vh;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  background-color: #fff;
}

.table-scroll {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: auto;
}

.table-scroll-x {
  overflow-x: auto;
}

.table-scroll-y {
  max-height: 70vh;
  overflow-y: auto;
  min-width: max-content;
}

/* ──────────────────────────────────────────────
   🎨 Scrollbar Styling (horizontal)
────────────────────────────────────────────── */
.table-wrapper::-webkit-scrollbar {
  height: 12px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background-color: #adb5bd;
  border-radius: 6px;
}






/* === Global Sidebar === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #203947;
  color: #ffffff;
  font-size: 0.88rem; /* uniform professional sidebar text size */
  z-index: 100; /* keeps sidebar above content */
  transition: transform 0.24s ease;
  box-shadow: 10px 0 28px rgba(11, 38, 28, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.sidebar-brand-link {
  display: block;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  transform: none !important;
  width: 100%;
}
.sidebar-brand-logo {
  display: block;
  width: 100%;
  max-width: 114px;
  height: auto;
  margin: 0 auto;
}
.sidebar-brand-copy {
  min-width: 0;
}
.sidebar-brand-title {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.sidebar-brand-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-top: 0.1rem;
}
.sidebar a,
.sidebar a:visited,
.sidebar a:focus,
.sidebar a:active,
.sidebar button.nav-link,
.sidebar button.nav-link:focus,
.sidebar button.nav-link:active {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.86rem;
  line-height: 1.25;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.sidebar a:hover,
.sidebar button.nav-link:hover {
  background-color: rgba(129, 190, 103, 0.18);
  color: #ffffff;
  border-color: rgba(129, 190, 103, 0.22);
  transform: translateX(2px);
}
.sidebar .nav-link > span {
  display: inline-flex;
  align-items: center;
}
.sidebar-section-label {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 0.45rem;
  margin: 0.9rem 0 0.3rem;
}
.sidebar .nav-link.active {
  background: rgba(129, 190, 103, 0.22);
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(129, 190, 103, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sidebar-footer {
  padding: 0.75rem 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  text-align: center;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(0, 0, 0, 0.08);
}

/* Sub-menu links inside collapsible menus */
.sidebar .collapse .nav-link {
  background-color: transparent;
  color: inherit;
  box-shadow: none;
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
  padding-left: 0.84rem;
  font-size: 0.82rem;
  font-weight: 400;
}

/* Keep submenu horizontal alignment stable during expand/collapse states */
.sidebar .collapse,
.sidebar .collapsing {
  padding-left: 0 !important;
  margin-left: 0.62rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

/* Restore smooth dropdown animation */
.sidebar .collapsing {
  transition: height 0.2s ease;
  overflow: hidden;
}

/* Keep helper links (login/logout/footer links) visually consistent */
.sidebar .small {
  font-size: 0.77rem !important;
}

.sidebar #sidebarAccordion > li.mt-2 {
  margin-top: 0.14rem !important;
}

.sidebar hr {
  margin: 0.85rem 0 0.7rem;
}

.sidebar footer {
  font-size: 0.74rem;
}

.sidebar footer small {
  display: block;
  line-height: 1.25;
}

/* Global account menu shown at top-right of viewport */
.global-account-menu {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 1100;
}
.btn-account {
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid #d6e4da;
  color: #1b2b22;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(11, 38, 28, 0.12);
  backdrop-filter: blur(10px);
}
.btn-account,
.btn-account i,
.btn-account span {
  color: #10221a !important;
}
.btn-account .account-notif-badge {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.72rem;
  min-width: 1.25rem;
  line-height: 1.05;
}
.btn-account:hover {
  background-color: #ffffff;
  color: #16271e;
  border-color: #bfd1c6;
}
.btn-account:focus,
.btn-account:active {
  color: #16271e !important;
  border-color: #4f6f61 !important;
  box-shadow: 0 0 0 0.2rem rgba(80, 131, 108, 0.25) !important;
}
.global-account-menu .dropdown-menu {
  min-width: 220px;
  border: 1px solid #dfe7e1;
  border-radius: 16px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  box-shadow: 0 18px 42px rgba(11, 38, 28, 0.14);
}
.global-account-menu .dropdown-header {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #66786f;
}
.global-account-menu .dropdown-item-text {
  font-size: 0.84rem;
  color: #5f6f67 !important;
}
.global-account-menu .dropdown-item {
  color: #1b2b22 !important;
  font-size: 0.86rem;
  font-weight: 500;
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
}
.global-account-menu .dropdown-item i {
  color: inherit;
}
.global-account-menu .dropdown-item:hover,
.global-account-menu .dropdown-item:focus {
  color: #0f2018 !important;
  background: #edf4ef;
}
.global-account-menu .dropdown-item.disabled,
.global-account-menu .dropdown-item:disabled {
  color: #98a8a0 !important;
}
.global-account-menu .account-dropdown-badge {
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 1.25rem;
  text-align: center;
}
.global-account-menu .dropdown-item.ticket-shortcut {
  color: #15271f !important;
  font-weight: 600;
}
.global-account-menu .dropdown-item.ticket-shortcut:hover,
.global-account-menu .dropdown-item.ticket-shortcut:focus {
  color: #0f1f18 !important;
  background: #eef6f1;
}

/* Top safety gap after moving account controls into the dashboard header */
body.dashboard .main-content,
body.downloads .main-content,
body.hr-census .main-content {
  padding-top: 16px !important;
}

/* Copy global sidebar hover color */
.sidebar .collapse .nav-link:hover {
  background-color: rgba(129, 190, 103, 0.18);
  color: #ffffff;
}

/* Copy global active color */
.sidebar .collapse .nav-link.active {
  background: rgba(129, 190, 103, 0.22);
  color: #ffffff;
  font-weight: 700;
}

/* === Main content offset (prevents overlap) === */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  transition: margin-left 0.24s ease;
}

.main-content::before {
  content: "";
  position: fixed;
  inset: 0 0 auto var(--sidebar-width);
  height: 180px;
  background:
    radial-gradient(circle at 12% 18%, rgba(22, 163, 74, 0.12), transparent 26%),
    radial-gradient(circle at 82% 4%, rgba(11, 61, 46, 0.1), transparent 22%);
  pointer-events: none;
  z-index: 0;
}

.main-content > * {
  position: relative;
  z-index: 1;
}

/* === Responsive Shell (Mobile / Tablet) === */
@media (max-width: 991.98px) {
  .sidebar {
    width: min(82vw, 320px);
    transform: translateX(-100%);
    z-index: 1200;
    box-shadow: 12px 0 32px rgba(15, 23, 42, 0.28);
  }

  body.mobile-sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.mobile-sidebar-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.36);
    z-index: 1190;
  }

  .main-content {
    margin-left: 0 !important;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  body.sidebar-hidden .main-content {
    margin-left: 0 !important;
    padding-left: 0.9rem !important;
  }

  body.dashboard .main-content,
  body.downloads .main-content,
  body.hr-census .main-content {
    padding-top: 14px !important;
  }

  .sidebar-reveal-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    left: 10px;
    bottom: 12px;
    z-index: 1210;
  }

  body.mobile-sidebar-open .sidebar-reveal-btn {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .main-content {
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
  }

  .btn-account {
    font-size: 0.78rem;
    padding: 0.3rem 0.58rem;
  }
}

/* Sidebar hide/show toggle */
body.sidebar-hidden .sidebar {
  transform: translateX(calc(-1 * var(--sidebar-width)));
}

body.sidebar-hidden .main-content {
  margin-left: 0 !important;
  padding-left: 56px !important;
}

.sidebar-toggle-btn {
  width: 100%;
  margin-top: 6px;
  border-radius: 999px;
  box-shadow: none;
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
  font-size: 0.78rem;
}

.sidebar-reveal-btn {
  position: fixed;
  bottom: 14px;
  left: 8px;
  z-index: 1202;
  border-radius: 999px;
  display: none;
  padding: 0.2rem 0.45rem;
  line-height: 1;
}

body.sidebar-hidden .sidebar-reveal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Avoid container negative margins causing overlap */
body.dashboard .container-fluid,
body.dashboard .row {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* === Global Cards === */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.card-body {
  padding: 1rem 0.75rem;
}
.card-title {
  font-size: 1rem;
}
.card-text {
  font-size: 0.875rem;
}

/* === Global Buttons === */
.btn-primary {
  background-color: #80b06c !important;
  border-color: #80b06c !important;
}
.btn-primary:hover {
  background-color: #6a9459 !important;
  border-color: #6a9459 !important;
}
.btn-success {
  background-color: #80b06c !important;
  border-color: #80b06c !important;
}
.btn-success:hover {
  background-color: #6a9459 !important;
  border-color: #6a9459 !important;
}
.btn-outline-secondary {
  color: #203442 !important;
  border-color: #203442 !important;
}
.btn-outline-secondary:hover {
  background-color: #203442 !important;
  color: #ffffff !important;
}
.btn-outline-primary {
  color: #80b06c !important;
  border-color: #80b06c !important;
}
.btn-outline-primary:hover {
  background-color: #80b06c !important;
  color: #fff !important;
}

/* === Global Toasts === */
.toast-success { background-color: #80b06c !important; color: #fff !important; }
.toast-warning { background-color: #ffc107 !important; color: #000 !important; }
.toast-danger  { background-color: #dc3545 !important; color: #fff !important; }

/* === Global Utilities === */
.rotate {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}
.text-positive { color: #28a745; font-weight: 600; }
.text-negative { color: #dc3545; font-weight: 600; }

/* === Dashboard Page === */
body.dashboard h1 { color: #80b06c; }

.btn-dashboard {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-dashboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Custom dark-outline button with green hover */
.btn-outline-dark {
  color: #212529;          /* dark text */
  border-color: #212529;   /* dark border */
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  color: #fff;             /* white text on hover */
  background-color: #198754; /* Bootstrap green (#198754) */
  border-color: #198754;
}

.modal-wide {
  max-width: 900px; /* adjust as needed */
}

/* === Kanban Page === */
body.kanban .kanban-board {
  display: flex;
  gap: 20px;
  padding: 10px;
  overflow-x: auto;
}
body.kanban .kanban-column {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
body.kanban .kanban-column h5 {
  position: sticky;
  top: 0;
  background: #fff;
  margin: 0;
  padding: 0.5rem;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
  text-align: center;
  z-index: 10;
}
body.kanban .driver-card {
  background: #e9ecef;
  padding: 0.5rem;
  margin: 0.5rem;
  border-radius: 6px;
  cursor: grab;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
body.kanban .driver-card.show { opacity: 1; transform: translateY(0); }
body.kanban .driver-card:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.15); transform: translateY(-2px); }
body.kanban .driver-card.dragging { opacity: 0.5; }
body.kanban .driver-card .card-actions { display: flex; justify-content: flex-end; gap: 5px; margin-top: 5px; }
body.kanban .just-moved {
  border: 2px solid #ffc107;
  background-color: #fff3cd;
  transition: background-color 2s ease;
}

/* === PDF Converter Page === */
body.pdf-converter #dropZone {
  border: 2px dashed #80b06c;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
body.pdf-converter #dropZone.dragover { background-color: #e6f4ea; border-color: #6a9459; }
body.pdf-converter #dropZone i { font-size: 2.5rem; color: #80b06c; }
body.pdf-converter #dropZone.disabled { pointer-events: none; opacity: 0.6; }
body.pdf-converter #loadingOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
body.pdf-converter #loadingOverlay.active { opacity: 1; pointer-events: all; }
body.pdf-converter #loadingOverlay p { color: #fff; }


/* I9 - Drop zone styling (same as PDF converter) */
#dropZone {
  border: 2px dashed #198754; /* Bootstrap success green */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

#dropZone.dragover {
  background-color: #f8f9fa;
  border-color: #28a745; /* brighter green when dragging */
}



/* === Time Converter Page === */
body.time-converter h1 { color: #80b06c; }


/* === Dev Status Scrollbar === */
.timeline-scroll {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 6px;
}

.timeline-scroll::-webkit-scrollbar {
  width: 8px;
}
.timeline-scroll::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 4px;
}
.timeline-scroll::-webkit-scrollbar-thumb {
  background-color: #198754;
  border-radius: 4px;
}
.timeline-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #157347;
}

.timeline-scroll {
  scrollbar-width: thin;
  scrollbar-color: #198754 #f8f9fa;
}

/* Compact mode styles */
.compact-mode td, .compact-mode th {
  font-size: 0.75rem;
  padding: 0.25rem 0.4rem;
  line-height: 1.2;
}
.compact-mode {
  width: auto;
  margin-left: 0;
  margin-right: auto;
  display: inline-table; /* shrink to content width */
}

/* Badge fade animation */
#compactBadge {
  transition: opacity 0.3s ease;
}
#compactBadge.d-none {
  opacity: 0;
}

/* Colored toggle button */
.btn-compact-toggle {
  background-color: #198754;   /* Bootstrap green */
  color: #fff;
  border: none;
}
.btn-compact-toggle:hover {
  background-color: #157347;   /* darker green on hover */
}

/* === Calendly Generator Theme Overrides === */

/* Use portal green for primary elements */
.bg-primary {
  background-color: #80b06c !important;
}

.text-primary {
  color: #80b06c !important;
}

/* Spinner color */
.spinner-border.text-primary {
  color: #80b06c !important;
}

/* Card header with portal green */
.card-header.bg-primary {
  background-color: #80b06c !important;
  border-bottom: 1px solid #6a9459;
}

/* Alerts styled to match portal theme */
.alert-info {
  background-color: rgba(128, 176, 108, 0.1);
  border-color: #80b06c;
  color: #203442;
}

.alert-success {
  background-color: #80b06c !important;
  border-color: #6a9459 !important;
  color: #fff !important;
}

.alert-warning {
  background-color: #ffc107 !important;
  border-color: #e0a800 !important;
  color: #203442 !important;
}

.alert-danger {
  background-color: #dc3545 !important;
  border-color: #b02a37 !important;
  color: #fff !important;
}
