/* Steam-inspired design system variables - LIGHT MODE */
/* Enhanced for maximum compatibility and accessibility with modern light theme */
:root {
  /* Base colors with high contrast ratios and modern light palette */
  --main-bg: #ffffff; /* Pure white for maximum contrast */
  --secondary-bg: #f8f9fa; /* Soft light gray background */
  --navbar-border: #e3e6f0; /* Subtle border for navbar */
  --card-border: #e9ecef; /* Light border for cards */

  /* Text colors with WCAG AA compliance and better readability */
  --text-primary: #1a202c; /* Dark charcoal for primary content */
  --text-secondary: #2d3748; /* Dark slate for secondary text */
  --text-muted: #4a5568; /* Medium grey for muted text - readable */
  --text-light: #718096; /* Light grey for backgrounds */

  /* Accent colors - modern blue palette */
  --discord-accent: #4299e1; /* Bright blue for Discord */
  --primary-accent: #3182ce; /* Professional blue */
  --main-accent: #2b6cb0; /* Deep blue accent */
  --main-accent-hover: #2c5282; /* Darker blue on hover */

  /* Status colors with better contrast */
  --danger: #e53e3e; /* Accessible red */
  --success: #38a169; /* Accessible green */
  --warning: #d69e2e; /* Accessible yellow */
  --info: #3182ce; /* Accessible blue */

  /* Component backgrounds with subtle gradients */
  --footer-bg: #edf2f7; /* Light blue-gray footer */
  --card-bg: #ffffff; /* White card backgrounds */
  --card-bg-alt: #f7fafc; /* Alternative card background */
  --modal-bg: #ffffff; /* Modal background */
  --dropdown-bg: #ffffff; /* Dropdown background */

  /* Borders and shadows with modern depth */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-light: rgba(0, 0, 0, 0.04);
  --shadow-medium: rgba(0, 0, 0, 0.08);
  --shadow-strong: rgba(0, 0, 0, 0.12);

  /* Special colors */
  --patreon: #ff6b6b; /* Modern red for Patreon */
  --status-online: #38a169; /* Online green */

  /* Typography - keep original fonts for consistency */
  --font-header: "Commissioner", Arial, sans-serif;
  --font-body: "Commissioner", Arial, sans-serif;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
  }
}
.fade-in {
  animation: fadeIn 0.8s ease-in;
  animation-fill-mode: both;
}
.slide-up {
  animation: slideUp 0.8s cubic-bezier(0.39, 0.575, 0.565, 1);
  animation-fill-mode: both;
}

html,
body {
  background: var(--main-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden; /* Prevent horizontal scrollbar */
  min-height: 100vh;
}

/* Ensure all text has proper contrast */
* {
  color: inherit;
}

/* Headings with proper hierarchy */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: var(--font-header);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

/* Links with proper contrast */
a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--main-accent-hover);
  text-decoration: underline;
}

a:visited {
  color: var(--primary-accent);
}

.navbar {
  background: var(--card-bg) !important;
  border-bottom: 2px solid var(--navbar-border);
  box-shadow: 0 2px 12px 0 rgba(49, 55, 74, 0.15);
  min-height: 60px;
  padding: 0.5rem 1rem;
  z-index: 1030;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

/* Force opaque navbar in all states - prevent transparency */
.navbar,
.navbar.banner--stick,
.banner--stick:not(.navbar-dark),
.banner--stick.transparent,
.navbar.fixed,
.navbar.banner--clone,
.navbar.navbar-dark,
.navbar.navbar-dark.banner--stick,
.navbar.navbar-dark.fixed,
.navbar.navbar-dark.banner--clone {
  background: var(--card-bg) !important;
  background-color: var(--card-bg) !important;
  border-bottom: 2px solid var(--navbar-border) !important;
}

.navbar .navbar-brand {
  color: var(--text-primary) !important;
  font-family: var(--font-header);
  font-size: 1.5rem;
  letter-spacing: 1px;
  font-weight: 700;
}

.navbar .nav-link {
  color: var(--text-primary) !important;
  font-family: var(--font-body);
  font-size: 1.08rem;
  transition: color 0.2s ease;
  font-weight: 500;
}

.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:hover {
  color: var(--primary-accent) !important;
  background: none !important;
  font-weight: 600;
}

.navbar .dropdown-menu {
  background: var(--dropdown-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 24px var(--shadow-medium);
  border-radius: 8px;
}

.navbar .dropdown-item {
  color: var(--primary-accent);
  font-family: var(--font-body);
  transition: all 0.2s ease;
  padding: 0.75rem 1rem;
  font-weight: 500;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  color: var(--text-primary);
  background: var(--secondary-bg);
  font-weight: 600;
}

/* Content wrapper styling */
.content-wrapper {
  min-height: calc(100vh - 80px); /* Account for fixed navbar */
  padding-top: 20px; /* Additional spacing from navbar */
}

/* Ensure main content doesn't overlap with fixed navbar */
main.container {
  margin-top: 20px;
}

.navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 24px;
  height: 18px;
}

.navbar-toggler-icon:before,
.navbar-toggler-icon:after,
.navbar-toggler-icon div {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: #0066cc;
  border-radius: 2px;
  position: absolute;
  transition: all 0.3s ease;
}

.navbar-toggler-icon:before {
  top: 0;
}

.navbar-toggler-icon div {
  top: 50%;
  transform: translateY(-50%);
}

.navbar-toggler-icon:after {
  bottom: 0;
}

.card,
.modal-content {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-light);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 16px var(--shadow-medium);
}

/* Card headers with better contrast */
.card-header {
  background: var(--secondary-bg);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.5rem;
  color: var(--text-primary);
}

.card-footer {
  background: var(--secondary-bg);
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 1rem 1.25rem;
}

/* Primary buttons with enhanced modern styling */
.btn-primary,
a.btn-primary,
.btn-primary:focus {
  background: linear-gradient(
    135deg,
    var(--main-accent) 0%,
    var(--primary-accent) 100%
  );
  border: 2px solid var(--main-accent);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover,
.btn-primary:active {
  background: linear-gradient(
    135deg,
    var(--main-accent-hover) 0%,
    var(--main-accent) 100%
  );
  border-color: var(--main-accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 108, 176, 0.4);
}

.btn-primary:disabled,
.btn-primary.disabled {
  background: var(--text-muted);
  border-color: var(--text-muted);
  color: #ffffff;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

/* Danger buttons */
.btn-danger,
.btn-danger:focus,
.btn-danger:active,
.btn-danger:hover {
  background: var(--danger);
  color: #ffffff;
  border: 2px solid var(--danger);
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
  transition: all 0.2s ease;
}

.btn-danger:hover,
.btn-danger:focus {
  background: #c82333;
  border-color: #bd2130;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Success buttons */
.btn-success {
  background: var(--success);
  color: #ffffff;
  border: 2px solid var(--success);
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
  transition: all 0.2s ease;
}

.btn-success:hover {
  background: #218838;
  border-color: #1e7e34;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Outline buttons for light mode */
.btn-outline-primary {
  color: var(--main-accent);
  border: 2px solid var(--main-accent);
  background: transparent;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #ffffff;
  background: var(--main-accent);
  border-color: var(--main-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Secondary buttons */
.btn-secondary {
  background: var(--secondary-bg);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--border-color);
  color: var(--text-primary);
  transform: translateY(-1px);
}

footer.footer {
  background: #e9ecef;
  color: #6c757d;
  border-top: 1px solid #dee2e6;
}

a,
.dropdown-item {
  color: #0066cc;
  text-decoration: none;
}

a:hover,
.dropdown-item:hover {
  color: #5865f2;
}

.text-muted {
  color: #6c757d !important;
}

::-webkit-scrollbar {
  background: #f8f9fa;
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 5px;
}

/* Status icon */
.status-online {
  color: #28a745;
}

.btn-patreon {
  background: #ff424d;
  color: #ffffff;
}

.btn-steam-login {
  background: #007bff !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px 0 rgba(0, 123, 255, 0.2);
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  outline: none !important;
}
.btn-steam-login:hover,
.btn-steam-login:focus {
  background: #0056b3 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px 0 rgba(0, 86, 179, 0.3);
  transform: translateY(-2px) scale(1.03);
}
.btn-steam-login img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

/* Form controls with enhanced contrast and usability */
input,
textarea,
select {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--main-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  background: var(--card-bg);
  color: var(--text-primary);
}

input:disabled,
textarea:disabled,
select:disabled {
  background: var(--secondary-bg);
  color: var(--text-muted);
  border-color: var(--border-light);
  cursor: not-allowed;
}

/* Form labels */
.form-label {
  color: var(--text-primary);
  font-family: var(--font-header);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Enhanced form controls */
.form-control,
.form-select,
textarea.form-control,
select.form-control,
input[type="text"].form-control,
input[type="email"].form-control,
input[type="password"].form-control,
input[type="search"].form-control,
.form-control-file {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px var(--shadow-light);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus,
select.form-control:focus,
input[type="text"].form-control:focus,
input[type="email"].form-control:focus,
input[type="password"].form-control:focus,
input[type="search"].form-control:focus {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--main-accent);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1),
    inset 0 1px 2px var(--shadow-light);
  outline: none;
}

.form-control::placeholder,
textarea.form-control::placeholder,
input[type="text"].form-control::placeholder,
input[type="email"].form-control::placeholder,
input[type="password"].form-control::placeholder,
input[type="search"].form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

/* Invalid form states */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Valid form states */
.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.valid-feedback {
  color: var(--success);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Checkboxes and radios */
.form-check-input {
  border: 2px solid var(--border-color);
  background: var(--card-bg);
}

.form-check-input:checked {
  background-color: var(--main-accent);
  border-color: var(--main-accent);
}

.form-check-input:focus {
  border-color: var(--main-accent);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-check-label {
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
}

/* File inputs */
input[type="file"].form-control,
input[type="file"].form-control-file {
  padding: 0.5rem;
  background-color: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

input[type="file"].form-control:focus,
input[type="file"].form-control-file:focus {
  background-color: var(--card-bg);
  border-color: var(--main-accent);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

html {
  position: relative;
  min-height: 100%;
}
body {
  margin-bottom: 60px;
  margin-top: 0 !important;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
  line-height: 60px;
}
main {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 80px;
}

/* Remove any extra spacing that might be causing gaps */
header {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}

/* Ensure main content starts immediately */
main.container {
  margin-top: 0 !important;
  padding-top: 1rem !important;
  margin-bottom: 80px;
}

/* Special handling for homepage hero banner */
.hero-banner {
  margin-top: -60px !important; /* Offset the body padding */
}

h1 {
  font-weight: 500;
}

#docs-page h1 {
  padding-top: 70px;
  margin-top: -50px;
}

h2,
h3 {
  font-weight: 400;
}

#docs-page h2,
#docs-page h3 {
  padding-top: 80px;
  margin-top: -75px;
}

@media (min-width: 768px) {
  .navbar-expand-md .navbar-nav .dropdown-menu {
    position: absolute;
    right: -13px;
    left: inherit;
  }
}

.btn-primary-dark {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary-dark:hover {
  color: #fff;
  background-color: #0056b3;
  border-color: #0056b3;
}

.user-card h3 {
  margin: 15px 0px;
}

.date {
  font-size: 12px;
  color: var(--text-muted);
}

.post h4 {
  margin-bottom: 0px;
  font-size: 24px;
  margin-top: 3px;
}

#company-wall {
  margin-bottom: 100px;
}

.row-images {
  margin-bottom: 15px;
}

#profile .card-title,
#profile .card-subtitle {
  text-align: center;
}

h1 {
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

#logbook #detail p {
  font-weight: 700;
  margin-bottom: 3px;
}

#logbook #detail h2 {
  margin-bottom: 15px;
}

.timeline .row {
  margin-top: 20px;
}

.timeline div:nth-child(2) {
  margin-top: 10px;
}

.timeline {
  position: relative;
  padding-left: 15px;
}

.timeline .row {
  margin-top: 10px;
}

.timeline-line {
  position: absolute;
  width: 3px;
  display: block;
  background: var(--primary-accent);
  height: 100%;
  top: 0px;
  bottom: 10px;
  margin-left: -18px;
  height: 100%;
}

.timeline-line::before {
  top: -4px;
}

.timeline-line::after {
  bottom: -4px;
}

.timeline-line::after,
.timeline-line::before {
  content: "";
  position: absolute;
  left: -3.5px;
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 50%;
  background: #007bff;
}
.timeline-separator {
  border-top: 2px solid currentColor;
  padding: 15px 5px 10px 40px;
  margin-left: -15px;
  margin-top: 40px;
}
.timeline-separator h3 {
  margin-left: -18px;
}
.timeline-icon {
  margin: 8px 0 0 -7px;
  height: 0.8em;
  width: 0.8em;
}

/* Logbook text fitting and overflow fixes */
.timeline .card-header {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.4;
  padding: 0.75rem 1rem;
}

.timeline .card-header h4 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.timeline .list-group-item {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.5rem 0.75rem;
}

.timeline .card {
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
  margin-bottom: 0.5rem;
}

/* Responsive timeline adjustments */
@media (max-width: 768px) {
  .timeline {
    padding-left: 10px;
  }

  .timeline .card-group {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .timeline .card-header h4 {
    font-size: 1rem;
  }

  .timeline .list-group-item {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }

  .timeline-line {
    margin-left: -12px;
  }

  .timeline-icon {
    margin-left: -5px;
  }
}

@media (max-width: 576px) {
  .timeline .card-header {
    padding: 0.5rem 0.75rem;
  }

  .timeline .card-header h4 {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .timeline .list-group-item {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
  }
}

/* Logbook table text overflow and responsive fixes */
.table-responsive .table td,
.table-responsive .table th {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 150px;
  vertical-align: top;
}

.table-responsive .table td:first-child,
.table-responsive .table th:first-child {
  max-width: 50px;
  text-align: center;
}

.table-responsive .table td:last-child,
.table-responsive .table th:last-child {
  max-width: 120px; /* Increased from 80px to accommodate View button */
  text-align: center;
  white-space: nowrap; /* Prevent button text wrapping */
}

/* Companies table specific improvements */
.table-responsive .table .btn-sm {
  padding: 0.25rem 0.75rem; /* Compact padding for small buttons */
  font-size: 0.875rem;
  white-space: nowrap;
  min-width: auto; /* Override any min-width constraints */
}

@media (max-width: 768px) {
  .table-responsive .table td,
  .table-responsive .table th {
    max-width: 120px;
    font-size: 0.85rem;
    padding: 0.5rem 0.3rem;
  }

  .table-responsive .table td:first-child,
  .table-responsive .table th:first-child {
    max-width: 40px;
  }

  .table-responsive .table td:last-child,
  .table-responsive .table th:last-child {
    max-width: 85px; /* Increased from 60px */
  }

  .table-responsive .table .btn-sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .table-responsive .table td,
  .table-responsive .table th {
    max-width: 100px;
    font-size: 0.8rem;
    padding: 0.4rem 0.25rem;
  }

  .table-responsive .table td:first-child,
  .table-responsive .table th:first-child {
    max-width: 35px;
  }

  .table-responsive .table td:last-child,
  .table-responsive .table th:last-child {
    max-width: 75px; /* Increased to properly contain button */
  }

  .table-responsive .table .btn-sm {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
  }
}

/* Bus schedule styling */
.bus-schedule-header {
  background-color: #007bff;
  color: #ffffff;
  border-radius: 10px 10px 0 0;
  padding: 8px 15px;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1.25rem;
}

.bus-schedule-card {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bus-stop-card {
  border: 1px solid #dee2e6;
  margin-bottom: 6px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.bus-stop-card:hover {
  transform: translateY(-2px);
}

.bus-stop-header {
  padding: 6px 10px;
  background-color: #343a40;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 3px solid #007bff;
}

.bus-stop-time {
  background-color: #2c3e50;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 6px;
}

.delay-badge {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.delay-on-time {
  background-color: #28a745;
  color: white;
}

.delay-minor {
  background-color: #ffc107;
  color: #343a40;
}

.delay-major {
  background-color: #dc3545;
  color: white;
}

.passenger-info {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.passenger-badge {
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 10px;
  font-weight: 600;
  font-size: 0.8rem;
}

.passengers-in {
  background-color: #17a2b8;
  color: white;
}

.passengers-out {
  background-color: #6c757d;
  color: white;
}

.bus-stop-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 6px 0;
  position: relative;
}

.bus-stop-row:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.bg-dark {
  background-color: #f8f9fa !important;
}

.btn {
  border-radius: 3px;
}

form .btn {
  vertical-align: baseline;
}

#map {
  height: 580px;
}

#map .my-div-icon {
  display: flex;
}

.my-div-span {
  color: white;
  font-size: 18px;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000;
  padding-left: 5px;
}

.img-mod {
  max-height: 400px;
  max-width: 100%;
  width: auto;
}

.chat-row {
  background: white;
  margin: 10px 0px;
  border: 1px solid #0000001c;
  padding: 5px;
}

pre {
  border: 1px solid lightgrey;
  padding: 5px;
}

.list-child {
  padding-left: 30px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.comment {
  margin-bottom: 10px;
}

@media (max-width: 574px) {
  .card-body-table {
    padding-left: 8px;
    padding-right: 4px;
    font-size: 0.8rem;
  }
}

#profile .btn {
  margin: 2px 0px;
}

.container .editor-toolbar.fullscreen {
  z-index: 1050;
}

.container .EasyMDEContainer .CodeMirror-fullscreen {
  z-index: 1050;
}

/* Button Styles */
.btn-primary {
  background: #007bff !important;
  color: #ffffff !important;
  font-family: "Commissioner", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 2rem;
  letter-spacing: 1px;
  border: 1px solid #0056b3;
  min-width: 120px;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: #0056b3 !important;
  color: #ffffff !important;
}
.btn,
.btn-primary,
.btn-sm {
  font-size: 1rem;
  padding: 10px 0;
  border-radius: 1.2rem;
  min-width: 100px;
}
.btn-primary.btn-sm {
  padding: 8px 0;
  font-size: 0.98rem;
}

/* Card Styles */
.card {
  background: #ffffff;
  border-radius: 2.2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08), 0 2px 8px 0 #0001;
  border: 1px solid #dee2e6;
}
.card-body {
  padding: 2.5rem;
}

/* Form Styles */
.form-label {
  color: #495057;
  font-family: "Commissioner", Arial, sans-serif;
}
.form-control {
  background: #f8f9fa;
  color: #495057;
  border: 1.5px solid #dee2e6;
  border-radius: 1.2rem;
  font-size: 1.08rem;
  padding: 10px 16px;
}

/* Form Controls */
.form-control,
.form-select,
textarea.form-control,
select.form-control,
input[type="text"].form-control,
input[type="email"].form-control,
input[type="password"].form-control,
input[type="search"].form-control,
.form-control-file,
.form-control-file {
  background-color: #ffffff;
  color: #495057;
  border: 1px solid #dee2e6;
  border-radius: 10px;
}

.form-control:focus {
  background-color: #ffffff;
  color: #495057;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control::placeholder {
  color: #6c757d;
  opacity: 0.7;
}

.text-danger {
  color: #dc3545 !important;
}

.invalid-feedback {
  color: #dc3545;
}

.form-control.is-invalid {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

.form-text.text-muted {
  color: #6c757d !important;
  opacity: 0.8;
}

select.form-select,
select.form-control {
  background-image: linear-gradient(45deg, transparent 50%, #6c757d 50%),
    linear-gradient(135deg, #6c757d 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  appearance: none;
}

input[type="file"].form-control,
input[type="file"].form-control-file {
  padding: 0.375rem 0.75rem;
  background-color: #ffffff;
  color: #495057;
  border-color: #dee2e6;
}

input[type="file"].form-control:focus,
input[type="file"].form-control-file:focus {
  background-color: #ffffff;
  border-color: #007bff;
}

.modal-content {
  background-color: #ffffff;
  color: #495057;
  border-radius: 14px;
  border: 1px solid #dee2e6;
}

.modal-header,
.modal-footer {
  border-color: #dee2e6;
}

.btn-primary {
  background: #007bff;
  color: #ffffff;
  border: none;
  font-weight: 700;
  border-radius: 10px;
}

.btn-primary:hover {
  background: #0056b3;
  color: #ffffff;
  color: #0056b3 !important;
  border: 2px solid #007bff !important;
  background: transparent !important;
  font-family: "Commissioner", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  border-radius: 2rem;
  letter-spacing: 1px;
  min-width: 120px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #ffffff !important;
  background: #007bff !important;
  border-color: #0056b3 !important;
  box-shadow: 0 6px 20px 0 rgba(0, 123, 255, 0.3);
  transform: translateY(-2px) scale(1.02);
  border-radius: 1.5rem !important;
}

.btn-outline-primary:hover::before,
.btn-outline-primary:focus::before {
  width: 100%;
  opacity: 1;
}

/* Navbar Button Spacing */
.navbar-nav
  .nav-item:has(.btn-outline-primary)
  + .nav-item:has(.btn-outline-primary)
  .btn-outline-primary {
  margin-left: 1rem;
  animation: pulse 2s infinite;
}

.navbar-nav .nav-item:nth-last-child(1) .btn-outline-primary {
  margin-left: 1rem;
  animation: pulse 2s infinite;
}

/* Additional button improvements for consistent rounded corners */
.btn-outline-primary,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
  border-radius: 1.5rem !important;
  overflow: hidden !important;
}

/* Ensure pseudo-elements maintain border-radius */
.btn-outline-primary::after,
.btn-outline-primary::before {
  border-radius: 1.5rem !important;
}

/* Fix for any focus outlines */
.btn-outline-primary:focus {
  box-shadow: 0 6px 20px 0 rgba(0, 123, 255, 0.3),
    0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
  border-radius: 1.5rem !important;
}

/* Mobile improvements */
@media (max-width: 767.98px) {
  .navbar .btn-outline-primary {
    border-radius: 1.5rem !important;
    margin: 0.25rem 0 !important;
    width: auto !important;
    min-width: 120px !important;
  }

  .navbar .nav-link {
    border-radius: 0.75rem !important;
    margin: 0.1rem 0 !important;
  }
}

/* Fix Register button margin for tablet view (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-nav .nav-item:nth-last-child(1) .btn-outline-primary {
    margin: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .card {
    border-radius: 1.1rem !important;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08), 0 1px 4px 0 #0001 !important;
    padding: 0 !important;
  }
  .card-body {
    padding: 1.2rem !important;
  }
  .btn,
  .btn-primary,
  .btn-sm {
    font-size: 1rem !important;
    padding: 10px 0 !important;
    border-radius: 1.5rem !important;
    min-width: 100px !important;
  }
  .btn-primary.btn-sm {
    padding: 8px 0 !important;
    font-size: 0.98rem !important;
  }
  .form-control {
    font-size: 1rem !important;
    border-radius: 0.9rem !important;
    padding: 8px 12px !important;
  }
  .mb-3,
  .mb-4,
  .mt-4 {
    margin-bottom: 1rem !important;
    margin-top: 1rem !important;
  }
  .container-fluid,
  .d-flex.align-items-center.justify-content-center.min-vh-100 {
    padding: 0 !important;
  }
}

.btn,
.btn-primary,
.btn-outline-primary,
.btn-primary-dark {
  border-radius: 1.5rem !important;
}

.btn-outline-primary,
.btn.btn-outline-primary {
  background: transparent !important;
  color: #007bff !important;
  border-color: #007bff !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transform: translateY(0);
}

.btn-outline-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #007bff;
  z-index: -1;
  transition: width 0.35s cubic-bezier(0.39, 0.575, 0.565, 1);
  opacity: 0;
  border-radius: 1.5rem;
}

.user-card .card {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px 0 #0002;
  border: 1.5px solid #f8f9fa;
}
.user-card .card-body {
  border-radius: 14px !important;
}

.user-card img.img-circle {
  border-radius: 10px !important;
  object-fit: cover;
}

/* Pagination Styles */
.pagination {
  justify-content: flex-end !important;
  display: flex !important;
  margin-top: 1.5rem;
}
.pagination li {
  margin: 0 2px;
}
.pagination .page-link {
  background: #007bff !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 8px 0 rgba(0, 123, 255, 0.2);
}
.pagination .page-link:hover,
.pagination .page-link:focus,
.pagination .active .page-link {
  background: #0056b3 !important;
  color: #ffffff !important;
}
.pagination .active .page-link {
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(0, 86, 179, 0.3);
}

/* Company Table Styles */
.table-dark th,
.table-dark td {
  vertical-align: middle !important;
  text-align: left;
}
.table-dark th {
  font-family: "Commissioner", Arial, sans-serif;
  font-weight: 700;
  color: #ffffff;
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}
.table-dark td {
  font-family: Arial, sans-serif;
  color: #495057;
  background: #ffffff;
  border-top: 1px solid #dee2e6;
}
.table-dark .text-end {
  text-align: right !important;
}
.table-dark .fw-semibold {
  font-weight: 600;
}
.table-dark .badge.bg-secondary {
  background: #dee2e6 !important;
  color: #495057 !important;
  font-size: 1rem;
  border-radius: 8px;
  padding: 0.5em 1em;
}

.btn-primary:hover,
.btn-primary:focus {
  box-shadow: none !important;
}

.card,
.card-body,
.table.table-dark,
.table.table-dark th,
.table.table-dark td,
.form-control {
  border-radius: 12px !important;
}
.table.table-dark {
  overflow: hidden;
}
.table.table-dark th,
.table.table-dark td {
  border-radius: 0 !important;
}
.btn,
.btn-primary {
  border-radius: 10px !important;
}

/* Company Management Styles */
.card,
.card-header,
.card-footer,
.card-body,
.table,
.table th,
.table td,
.form-control {
  border-radius: 12px !important;
}
.card-header.bg-primary,
.card-header.bg-danger {
  background: #007bff !important;
  color: #ffffff !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
  font-family: "Commissioner", Arial, sans-serif;
  font-weight: 700;
}
.card-header.bg-danger {
  background: #ff424d !important;
  color: #fff !important;
}

.form-check-input:checked {
  background-color: #007bff !important;
  border-color: #007bff !important;
}
.form-check-input:focus {
  border-color: #007bff !important;
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25) !important;
}
.form-check-input[type="checkbox"] {
  border-radius: 6px !important;
}

.btn-success {
  background: #007bff !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700;
  border-radius: 10px !important;
}
.btn-success:hover {
  background: #0056b3 !important;
  color: #ffffff !important;
}
.btn-danger {
  background: #ff424d !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  border-radius: 10px !important;
}
.btn-danger:hover {
  background: #d32f2f !important;
  color: #fff !important;
}

#dashboard .card {
  border-radius: 8px !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

#dashboard .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.static-btn {
  animation: none !important;
  transition: background-color 0.2s, color 0.2s !important;
}

.static-btn i {
  display: inline-block !important;
}

/* User Profile Styles */
.roles-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
  margin: 0 auto;
}

.roles-list .badge {
  width: 100%;
  margin-bottom: 5px;
  padding: 8px 12px;
  font-size: 0.9rem;
  text-align: center;
}

.badge.bg-role {
  background-color: #e9ecef;
  color: #495057;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s;
}

.badge.bg-role:hover {
  background-color: #dee2e6;
}

/* Prevent images from overflowing their card/container borders in documentation cards and content */
.card-img-top,
.card .card-img-top,
.card .img-fluid,
.card img,
.content-formatted img,
.content-formatted figure img,
.content-formatted figure.media img,
.content-formatted figure.media-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.card-img-top[style],
.card .card-img-top[style] {
  object-fit: cover !important;
  width: 100% !important;
  height: 200px !important;
}

@media (max-width: 768px) {
  .card-img-top[style],
  .card .card-img-top[style] {
    height: 140px !important;
  }
}

.content-formatted img,
.content-formatted figure img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Documentation Management Table Button Fixes */
.table-responsive .table .btn-sm {
  min-width: 32px;
  padding: 0.25rem 0.7rem;
  font-size: 0.92rem;
  border-radius: 0.4rem;
  box-shadow: none;
  margin-right: 0.15rem;
  margin-bottom: 0.1rem;
}

.table-responsive .table .btn-sm i {
  font-size: 1.1em;
  vertical-align: middle;
}

.btn-group .btn {
  margin-right: 0.15rem;
}

@media (max-width: 768px) {
  .table-responsive .table .btn-sm {
    padding: 0.18rem 0.45rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .table-responsive .table .btn-sm {
    padding: 0.12rem 0.3rem;
    font-size: 0.75rem;
  }
}

.btn-primary#ndaSubmit {
  padding: 0.8rem 2.5rem !important;
  font-size: 1.12rem;
  border-radius: 2rem;
  font-weight: 700;
  min-width: 140px;
}

.admin-section {
  border: 2px solid #007bff;
  background: rgba(0, 123, 255, 0.05);
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(0, 123, 255, 0.08);
  margin-bottom: 1.5rem;
}
.admin-section .btn {
  margin-bottom: 0.5rem;
}
.admin-section .btn-danger {
  border-radius: 6px;
}
.admin-section .btn-warning {
  border-radius: 6px;
}
.admin-section .fw-bold {
  letter-spacing: 0.5px;
}

/* --- GLOBAL BUTTON LAYOUT SHIFT FIX --- */
.btn,
.btn-primary,
.btn-danger,
.btn-success,
.btn-secondary,
.btn-outline-primary {
  border-width: 2px !important;
  border-style: solid !important;
  box-sizing: border-box !important;
  min-height: 44px;
  padding: 10px 24px !important;
  border-radius: 1.5rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn-primary,
.btn-danger,
.btn-success,
.btn-secondary,
.btn-outline-primary {
  border-color: transparent !important;
}
.btn-primary:hover,
.btn-danger:hover,
.btn-success:hover,
.btn-secondary:hover,
.btn-outline-primary:hover {
  /* Enhanced hover effects with proper rounded corners */
  filter: brightness(0.97);
  outline: none;
  border-color: #0056b3 !important;
  transform: translateY(-2px) scale(1.02) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}
/* --- END FIX --- */

/* Fix for yellow color scheme button text visibility issue */
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  color: #ffffff !important; /* Dark text color for better contrast on yellow background */
}

body {
  padding-top: 60px; /* Add space for fixed navbar */
}

.content-wrapper {
  margin: 0;
  padding: 0;
}

header {
  position: relative;
  z-index: 1030;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
}

/* EasyMDE Dark Theme Fixes */
.EasyMDEContainer .CodeMirror {
  background-color: #f8f9fa !important;
  color: #495057 !important;
  border-color: #dee2e6 !important;
}

.EasyMDEContainer .CodeMirror-fullscreen {
  background-color: #f8f9fa !important;
  color: #495057 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 9999 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.EasyMDEContainer .editor-toolbar {
  background-color: #f8f9fa !important;
  border-color: #dee2e6 !important;
}

.EasyMDEContainer .editor-toolbar.fullscreen {
  background-color: #f8f9fa !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 50px !important;
  z-index: 10000 !important;
  border: none !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.EasyMDEContainer .editor-toolbar a {
  color: #495057 !important;
  border-color: transparent !important;
}

.EasyMDEContainer .editor-toolbar a:hover,
.EasyMDEContainer .editor-toolbar a.active {
  background-color: #dee2e6 !important;
  border-color: #adb5bd !important;
  color: #007bff !important;
}

.EasyMDEContainer .editor-toolbar i.separator {
  border-left-color: #dee2e6 !important;
  border-right-color: #f8f9fa !important;
}

.EasyMDEContainer .CodeMirror-gutters {
  background-color: #e9ecef !important;
  border-color: #dee2e6 !important;
}

.EasyMDEContainer .CodeMirror-linenumber {
  color: #6c757d !important;
}

.EasyMDEContainer .CodeMirror-cursor {
  border-left-color: #495057 !important;
}

.EasyMDEContainer .CodeMirror-selected {
  background-color: #dee2e6 !important;
}

.EasyMDEContainer .editor-preview,
.EasyMDEContainer .editor-preview-side {
  background-color: #f8f9fa !important;
  color: #495057 !important;
  border-color: #dee2e6 !important;
}

.EasyMDEContainer .editor-statusbar {
  background-color: #e9ecef !important;
  color: #6c757d !important;
  border-color: #dee2e6 !important;
}

/* Fix fullscreen mode positioning and prevent page jerking */
.EasyMDEContainer .CodeMirror-fullscreen {
  box-sizing: border-box !important;
}

.EasyMDEContainer .editor-preview-side {
  background-color: #f8f9fa !important;
  color: #495057 !important;
  border-color: #dee2e6 !important;
  position: fixed !important;
  top: 50px !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 50% !important;
  z-index: 9998 !important;
  overflow-y: auto !important;
}

.EasyMDEContainer .CodeMirror-sided {
  width: 50% !important;
  z-index: 9998 !important;
}

/* Prevent body scroll when in fullscreen mode */
body.editor-fullscreen-active {
  overflow: hidden !important;
}

/* Fix for toolbar gradients in fullscreen */
.EasyMDEContainer .editor-toolbar.fullscreen::before,
.EasyMDEContainer .editor-toolbar.fullscreen::after {
  background: linear-gradient(
    to right,
    #f8f9fa 0%,
    transparent 100%
  ) !important;
}

.EasyMDEContainer .editor-toolbar.fullscreen::after {
  background: linear-gradient(to left, #f8f9fa 0%, transparent 100%) !important;
}

/* Fix for documentation language switcher button hover effects */
[aria-label="Language Switcher"] .btn-outline-primary:hover,
[aria-label="Language Switcher"] .btn-outline-primary:focus {
  transform: none !important;
  border-radius: 0.375rem !important; /* Use standard Bootstrap button radius */
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important; /* Standard focus shadow */
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  color: #fff !important;
}

[aria-label="Language Switcher"] .btn-outline-primary {
  border-radius: 0.375rem !important; /* Ensure consistent radius */
}

/* Ensure proper button group styling for language switcher */
[aria-label="Language Switcher"].btn-group .btn:not(:last-child) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

[aria-label="Language Switcher"].btn-group .btn:not(:first-child) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  margin-left: -1px;
}

/* LOA Card Hover Effects */
.hover-card {
  transition: all 0.3s ease;
  border: 1px solid #495057 !important;
}

.hover-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2) !important;
  border-color: #007bff !important;
}

.hover-card:hover .card-body {
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.05) 0%,
    rgba(0, 123, 255, 0.02) 100%
  );
}

/* Responsive adjustments for LOA cards */
@media (max-width: 768px) {
  .hover-card {
    margin-bottom: 1rem;
  }

  .hover-card .d-flex.gap-1 {
    flex-direction: column;
  }

  .hover-card .d-flex.gap-1 .btn {
    margin-bottom: 0.25rem;
  }
}

/* LOA Calendar Styles */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #495057;
  border: 1px solid #495057;
  border-radius: 8px;
  overflow: hidden;
}

.calendar-header {
  display: contents;
}

.calendar-day-header {
  background: #f8f9fa;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.9rem;
  border-bottom: 1px solid #495057;
}

.calendar-body {
  display: contents;
}

.calendar-day {
  background: #ffffff;
  min-height: 120px;
  padding: 8px;
  position: relative;
  border: 1px solid #495057;
  transition: background-color 0.2s ease;
}

.calendar-day:hover {
  background: #f8f9fa;
}

.calendar-day.today {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid #007bff;
}

.calendar-day.other-month {
  background: #f8f9fa;
  color: #6c757d;
}

.calendar-day-number {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #495057;
}

.calendar-day.other-month .calendar-day-number {
  color: #6c757d;
}

.loa-item {
  background: #dc3545;
  color: white;
  padding: 2px 6px;
  margin-bottom: 2px;
  border-radius: 3px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loa-item:hover {
  opacity: 0.8;
  text-decoration: none;
  color: white;
}

.loa-item.upcoming {
  background: #ffc107;
  color: #212529;
}

.loa-item.past {
  background: #6c757d;
  color: white;
}

.week-view {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
}

.week-day {
  border: 1px solid #495057;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  min-height: 200px;
}

.week-day-header {
  font-weight: 600;
  margin-bottom: 10px;
  color: #495057;
}

.legend-color {
  border-radius: 4px;
  border: 1px solid #495057;
}

/* Calendar responsive adjustments */
@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
  }

  .calendar-day {
    min-height: 80px;
    padding: 4px;
  }

  .calendar-day-header {
    padding: 8px 4px;
    font-size: 0.8rem;
  }

  .loa-item {
    font-size: 0.7rem;
    padding: 1px 4px;
  }
}

/* Steam-inspired styling for Users and Companies pages - LIGHT MODE */

/* Steam Users Page Styling */
.steam-users-wrapper {
  background: transparent;
  min-height: 100vh;
  padding: 2rem 0;
  color: #495057;
}

.steam-users-header {
  background: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(222, 226, 230, 0.6);
  border-radius: 8px;
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.steam-users-header h1 {
  color: #007bff;
  font-family: var(--font-header);
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.steam-search-form {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid rgba(222, 226, 230, 0.6);
  backdrop-filter: blur(15px);
}

.steam-search-form .form-control {
  background: rgba(222, 226, 230, 0.6);
  border: 1px solid rgba(222, 226, 230, 0.6);
  color: #212529;
  border-radius: 6px;
}

.steam-search-form .form-control:focus {
  background: rgba(222, 226, 230, 0.8);
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  color: #212529;
}

.steam-search-form .form-control::placeholder {
  color: #6c757d;
}

.steam-user-card {
  margin-bottom: 1.5rem;
}

.steam-user-card .card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(222, 226, 230, 0.6);
  border-radius: 8px;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.steam-user-card .card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.steam-user-card .card-body {
  padding: 1.25rem;
  text-align: left;
}

.steam-user-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.steam-user-avatar {
  width: 45px !important;
  height: 45px !important;
  border-radius: 50% !important;
  border: 2px solid #dee2e6;
  object-fit: cover;
  flex-shrink: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 45px !important;
}

.steam-user-avatar:hover {
  border-color: #007bff;
  transform: scale(1.05);
}

.steam-user-info {
  flex-grow: 1;
}

.steam-user-name {
  color: #007bff;
  font-family: var(--font-header);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  text-decoration: none;
  display: block;
}

.steam-user-name:hover {
  color: #0056b3;
  text-decoration: none;
}

.steam-user-role {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.steam-user-company {
  font-size: 0.8rem;
  margin-bottom: 0;
  line-height: 1.3;
}

.steam-user-tag {
  background: #007bff;
  color: #ffffff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 0.4rem;
  display: inline-block;
}

/* Steam Company Cards */
.steam-company-card {
  margin-bottom: 1.5rem;
}

.steam-company-card .card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(222, 226, 230, 0.6);
  border-radius: 8px;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.steam-company-card .card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.steam-company-card .card-body {
  padding: 1.25rem;
  text-align: left;
}

.steam-company-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.steam-company-avatar {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: rgba(222, 226, 230, 0.4);
  border: 2px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.steam-company-avatar:hover {
  border-color: #007bff;
  background: rgba(222, 226, 230, 0.6);
}

.steam-company-info {
  flex-grow: 1;
}

.steam-company-name {
  color: #007bff;
  font-family: var(--font-header);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  text-decoration: none;
  display: block;
}

.steam-company-name:hover {
  color: #0056b3;
  text-decoration: none;
}

.steam-company-members {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.steam-company-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.steam-company-owner {
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Steam Companies Page Styling */
.steam-companies-wrapper {
  background: transparent;
  min-height: 100vh;
  padding: 2rem 0;
  color: #495057;
}

.steam-companies-header {
  background: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(222, 226, 230, 0.6);
  border-radius: 8px;
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.steam-companies-header h1 {
  color: #007bff;
  font-family: var(--font-header);
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.steam-search-form {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid rgba(222, 226, 230, 0.6);
  backdrop-filter: blur(15px);
}

.steam-search-form .form-control {
  background: rgba(222, 226, 230, 0.6);
  border: 1px solid rgba(222, 226, 230, 0.6);
  color: #212529;
  border-radius: 6px;
}

.steam-search-form .form-control:focus {
  background: rgba(222, 226, 230, 0.8);
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  color: #212529;
}

.steam-search-form .form-control::placeholder {
  color: #6c757d;
}

.steam-search-result {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  color: #212529;
}

.steam-search-result a {
  color: #007bff;
  text-decoration: none;
}

.steam-search-result a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Steam Section (like dashboard) */
.steam-section {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(222, 226, 230, 0.6);
  border-radius: 8px;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.steam-section:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.steam-section-header {
  background: rgba(248, 249, 250, 0.9);
  color: #007bff;
  font-weight: 600;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(222, 226, 230, 0.6);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.steam-section-header h5 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.steam-section-body {
  padding: 20px;
}

/* Steam Companies Table */
.steam-companies-table {
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
}

.steam-companies-table .table {
  background: transparent;
  color: #212529;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.steam-companies-table .table thead th {
  background: rgba(248, 249, 250, 0.9);
  border-color: rgba(222, 226, 230, 0.6);
  color: #007bff;
  font-family: var(--font-header);
  font-weight: 600;
  padding: 1rem 0.75rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(222, 226, 230, 0.6);
  position: sticky;
  top: 0;
  z-index: 10;
}

.steam-companies-table .table tbody td {
  border-color: rgba(222, 226, 230, 0.3);
  padding: 1rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(222, 226, 230, 0.2);
}

.steam-company-row {
  transition: all 0.2s ease;
}

.steam-company-row:hover {
  background: rgba(0, 123, 255, 0.05);
  transform: translateX(2px);
}

.steam-company-id {
  background: #007bff;
  color: #ffffff;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.steam-company-name-cell {
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.steam-company-name {
  color: #212529;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.steam-company-desc {
  color: #6c757d;
  font-size: 0.85rem;
  line-height: 1.3;
}

.steam-member-count {
  color: #007bff;
  font-weight: 600;
  font-size: 1rem;
}

.steam-owner-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.steam-owner-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.steam-btn {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.steam-btn:hover {
  background: rgba(0, 123, 255, 0.2);
  color: #212529;
  text-decoration: none;
  transform: translateY(-1px);
}

.steam-btn-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.steam-btn-primary {
  background: #007bff;
  border-color: #007bff;
  color: #ffffff;
}

.steam-btn-primary:hover {
  background: rgba(0, 123, 255, 0.9);
  border-color: rgba(0, 123, 255, 0.9);
  color: #ffffff;
}

/* Steam Empty State */
.steam-empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.steam-empty-state i {
  color: #6c757d;
  margin-bottom: 1rem;
}

.steam-empty-state h4 {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.steam-empty-state p {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

/* Steam Pagination */
.steam-pagination {
  margin-top: 1.5rem;
}

.steam-pagination .pagination {
  justify-content: center;
}

.steam-pagination .page-link {
  background: rgba(222, 226, 230, 0.4);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #212529;
  margin: 0 2px;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.steam-pagination .page-link:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #212529;
}

.steam-pagination .page-item.active .page-link {
  background: #007bff;
  border-color: #007bff;
  color: #ffffff;
  font-weight: 600;
}

.steam-pagination .page-item.disabled .page-link {
  background: rgba(222, 226, 230, 0.2);
  color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .steam-companies-table .table thead th,
  .steam-companies-table .table tbody td {
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
  }

  .steam-company-name {
    font-size: 1rem;
  }

  .steam-section-body {
    padding: 15px;
  }
}

.steam-pagination {
  margin-top: 1.5rem;
}

.steam-pagination .pagination {
  justify-content: center;
}

.steam-pagination .page-link {
  background: rgba(222, 226, 230, 0.4);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #212529;
  margin: 0 2px;
  border-radius: 6px;
}

.steam-pagination .page-link:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #212529;
}

.steam-pagination .page-item.active .page-link {
  background: #007bff;
  border-color: #007bff;
  color: #ffffff;
}

.steam-search-result {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  color: #212529;
}

.steam-search-result a {
  color: #007bff;
  text-decoration: none;
}

.steam-search-result a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.steam-alert {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #212529;
  border-radius: 8px;
}

/* Footer styling */
footer.footer {
  background: var(--footer-bg);
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0 1rem;
}

footer.footer a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer.footer a:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}

/* Link styling */
a,
.dropdown-item {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
.dropdown-item:hover {
  color: var(--main-accent-hover);
  text-decoration: underline;
}

/* Text utilities with proper contrast */
.text-muted {
  color: var(--text-muted) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-primary {
  color: var(--text-primary) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-info {
  color: var(--info) !important;
}

/* Perfect Theme Switcher - Light Theme */
.theme-switch-wrapper {
  position: relative;
  display: inline-block;
}

.theme-toggle-btn {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
}

.switch-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #a0aec0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.switch-thumb {
  position: absolute;
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.switch-icon {
  font-size: 11px;
  transition: all 0.3s ease;
  position: absolute;
}

.moon-icon {
  color: #4a5568;
  opacity: 1;
  transform: scale(1);
}

.sun-icon {
  color: #d69e2e;
  opacity: 0;
  transform: scale(0.8);
}

.theme-toggle-btn.active .switch-track {
  background: linear-gradient(135deg, #3182ce 0%, #4299e1 100%);
  border-color: #3182ce;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(49, 130, 206, 0.25);
}

.theme-toggle-btn.active .switch-thumb {
  transform: translateX(26px);
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn.active .moon-icon {
  opacity: 0;
  transform: scale(0.8);
}

.theme-toggle-btn.active .sun-icon {
  opacity: 1;
  transform: scale(1);
}

.switch-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 16px;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(49, 130, 206, 0.15),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.theme-toggle-btn.active .switch-glow {
  opacity: 1;
}

/* Hover effects */
.theme-toggle-btn:hover .switch-track {
  transform: scale(1.02);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.12);
}

.theme-toggle-btn:hover.active .switch-track {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1),
    0 4px 10px rgba(49, 130, 206, 0.35);
}

/* Active/pressed effect */
.theme-toggle-btn:active .switch-track {
  transform: scale(0.98);
}
