/* Steam-inspired design system variables */
:root {
  --main-bg: #23242b;
  /* Steam dark background */
  --navbar-border: #31374a;
  /* Steam border color */
  --discord-accent: #5865f2;
  /* Discord blue */
  --primary-accent: #7ecfff;
  /* Steam blue accent */
  --text-light: #c9aa71;
  --text-subtle: #e3e6f3;
  /* Light gray text */
  --text-muted: #bfc6d8;
  /* Muted text */
  --text-white: #fff;
  /* Pure white */
  --danger: #dc3545;
  /* Red for errors */
  --footer-bg: #0d1117;
  /* Darker footer */
  --card-bg-alt: #181c24;
  /* Card backgrounds */
  --patreon: #ff424d;
  /* Patreon red */
  --status-online: #00c853;
  /* Online green */
  --font-header: "Commissioner", Arial, sans-serif;
  --font-body: Arial, sans-serif;
  --main-accent: #ffb347;
  /* Steam gold/orange */
  --main-accent-hover: #e6a142;
  /* Darker gold on hover */

  /* Additional variables for language selector and other components */
  --card-bg: #181c24;
  /* Same as card-bg-alt for consistency */
  --text-primary: #c9aa71;
  /* Same as text-light */
  --text-secondary: #bfc6d8;
  /* Same as text-muted */
  --border-color: #31374a;
  /* Same as navbar-border */
  --border-light: #404040;
  /* Lighter border */
  --secondary-bg: #1a1d24;
  /* Slightly lighter than card-bg */
  --shadow-medium: rgba(0, 0, 0, 0.3);
  /* Medium shadow */
}

/* 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(255, 179, 71, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 179, 71, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 179, 71, 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: #23242b;
  color: var(--text-light);
  font-family: var(--font-body);
  overflow-x: hidden;
  /* Prevent horizontal scrollbar */
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: var(--font-header);
  color: var(--text-white);
}

.navbar {
  background: var(--main-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(--main-bg) !important;
  background-color: var(--main-bg) !important;
}

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

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

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

.navbar .dropdown-menu {
  background: var(--card-bg-alt);
  border: 1px solid var(--navbar-border);
  box-shadow: 0 4px 24px 0 rgba(49, 55, 74, 0.18);
}

.navbar .dropdown-item {
  color: var(--primary-accent);
  font-family: var(--font-body);
  transition: color 0.2s, background 0.2s;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  color: var(--discord-accent);
  background: var(--main-bg);
}

/* Language selector dropdown styles */
.language-selector {
  position: relative;
  display: inline-block;
}

.language-dropdown-toggle {
  background: var(--card-bg-alt);
  border: 1px solid var(--navbar-border);
  color: var(--primary-accent);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  position: relative;
  min-width: 120px;
  justify-content: space-between;
}

.language-dropdown-toggle:hover,
.language-dropdown-toggle:focus {
  background: var(--main-bg);
  border-color: var(--primary-accent);
  color: var(--discord-accent);
}

.language-dropdown-toggle.show {
  background: var(--main-bg);
  border-color: var(--primary-accent);
}

.language-dropdown-menu {
  background: var(--card-bg-alt);
  border: 1px solid var(--navbar-border);
  border-radius: 6px;
  box-shadow: 0 4px 24px 0 rgba(49, 55, 74, 0.18);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  display: none;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.language-dropdown-menu.show {
  display: block;
}

.language-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--primary-accent);
  text-decoration: none;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--navbar-border);
}

.language-dropdown-item:last-child {
  border-bottom: none;
}

.language-dropdown-item:hover,
.language-dropdown-item:focus {
  background: var(--main-bg);
  color: var(--discord-accent);
  text-decoration: none;
}

.language-dropdown-item.active {
  background: var(--main-bg);
  color: var(--discord-accent);
  font-weight: 600;
}

.language-flag {
  font-size: 16px;
}

.language-chevron {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.language-dropdown-toggle.show .language-chevron {
  transform: rotate(180deg);
}

/* 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: var(--primary-accent);
  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-alt);
  color: var(--text-light);
  border: none;
  border-radius: 12px;
}

.btn-primary,
a.btn-primary,
.btn-primary:focus {
  background: #ffb347;
  border: none;
  color: var(--main-bg);
}

.btn-primary:hover {
  background: #ff9900;
  color: var(--text-white);
}

.btn-primary {
  background: var(--main-accent) !important;
  color: #232936 !important;
  font-family: "Commissioner", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 2rem;
  letter-spacing: 1px;
  border: 1px solid #e09e36;
  min-width: 120px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--main-accent-hover) !important;
  color: #232936 !important;
}

.btn-danger,
.btn-danger:focus,
.btn-danger:active,
.btn-danger:hover {
  background: #e74c3c !important;
  color: #fff !important;
  border: 2px solid #e74c3c !important;
  border-radius: 10px !important;
  font-weight: 700;
  min-width: 120px;
  padding: 10px 24px !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-danger:hover,
.btn-danger:focus {
  background: #c0392b !important;
  border-color: #c0392b !important;
  color: #fff !important;
}

footer.footer {
  background: var(--footer-bg);
  color: var(--text-muted);
  border-top: 1px solid var(--navbar-border);
}

a,
.dropdown-item {
  color: var(--primary-accent);
  text-decoration: none;
}

a:hover,
.dropdown-item:hover {
  color: var(--discord-accent);
}

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

::-webkit-scrollbar {
  background: var(--main-bg);
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--navbar-border);
  border-radius: 5px;
}

/* Status icon */
.status-online {
  color: var(--status-online);
}

.btn-patreon {
  background: var(--patreon);
  color: var(--text-white);
}

.btn-steam-login {
  background: #ffb347 !important;
  color: #232936 !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px 0 rgba(255, 179, 71, 0.08);
  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: #ff9900 !important;
  color: #232936 !important;
  box-shadow: 0 4px 16px 0 rgba(255, 153, 0, 0.18);
  transform: translateY(-2px) scale(1.03);
}

.btn-steam-login img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

/* Responsive timeline adjustments */
input,
textarea,
select {
  background: var(--card-bg-alt);
  color: var(--text-light);
  border: 1px solid var(--navbar-border);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-accent);
  outline: none;
}

hr {
  border-color: var(--navbar-border);
}

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: #ffb347;
  border-color: #ffb347;
}

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

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

.date {
  font-size: 12px;
  color: gray;
}

.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: white;
  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: white;
}

.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: var(--main-accent);
  color: #232936;
  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: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bus-stop-card {
  border: none;
  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 var(--main-accent);
}

.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(255, 255, 255, 0.05);
  padding: 6px 0;
  position: relative;
}

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

.bg-dark {
  background-color: #1f1f1f !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: var(--main-accent) !important;
  color: #232936 !important;
  font-family: "Commissioner", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 2rem;
  letter-spacing: 1px;
  border: 1px solid #e09e36;
  min-width: 120px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--main-accent-hover) !important;
  color: #232936 !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: #181c24;
  border-radius: 2.2rem;
  box-shadow: 0 8px 32px 0 rgba(35, 41, 54, 0.18), 0 2px 8px 0 #0002;
  border: 0;
}

.card-body {
  padding: 2.5rem;
}

/* Form Styles */
.form-label {
  color: #bfc6d8;
  font-family: "Commissioner", Arial, sans-serif;
}

.form-control {
  background: #23242b;
  color: #f5f6fa;
  border: 1.5px solid #31374a;
  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,
input.form-control-file,
.form-control-file {
  background-color: #232936;
  color: var(--text-light);
  border: 1px solid #31374a;
  border-radius: 10px;
}

.form-control:focus {
  background-color: #2c3444;
  color: var(--text-light);
  border-color: var(--main-accent);
  box-shadow: 0 0 0 0.2rem rgba(255, 179, 71, 0.25);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

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

.invalid-feedback {
  color: #ff6b6b;
}

.form-control.is-invalid {
  border-color: #ff6b6b;
  background-color: rgba(255, 107, 107, 0.1);
}

.form-text.text-muted {
  color: var(--text-muted) !important;
  opacity: 0.8;
}

select.form-select,
select.form-control {
  background-image: linear-gradient(45deg,
      transparent 50%,
      var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 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: #232936;
  color: var(--text-light);
  border-color: #31374a;
}

input[type="file"].form-control:focus,
input[type="file"].form-control-file:focus {
  background-color: #2c3444;
  border-color: var(--main-accent);
}

.modal-content {
  background-color: #232936;
  color: var(--text-light);
  border-radius: 14px;
  border: none;
}

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

.btn-primary {
  background: var(--main-accent);
  color: #232936;
  border: none;
  font-weight: 700;
  border-radius: 10px;
}

.btn-primary:hover {
  background: var(--main-accent-hover);
  color: #232936;
  color: #ff9900 !important;
  border: 2px solid #ffb347 !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: #232936 !important;
  background: var(--main-accent) !important;
  border-color: var(--main-accent-hover) !important;
  box-shadow: 0 6px 20px 0 rgba(255, 179, 71, 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(255, 179, 71, 0.3),
    0 0 0 0.2rem rgba(255, 179, 71, 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(35, 41, 54, 0.1), 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: var(--main-accent) !important;
  border-color: var(--main-accent) !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: var(--main-accent);
  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 #232936;
}

.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: var(--main-accent) !important;
  color: #232936 !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(255, 179, 71, 0.08);
}

.pagination .page-link:hover,
.pagination .page-link:focus,
.pagination .active .page-link {
  background: var(--main-accent-hover) !important;
  color: #232936 !important;
}

.pagination .active .page-link {
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(255, 179, 71, 0.18);
}

/* 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: #fff;
  background: #23242b;
  border-bottom: 2px solid #31374a;
}

.table-dark td {
  font-family: Arial, sans-serif;
  color: #f5f6fa;
  background: #181c24;
  border-top: 1px solid #31374a;
}

.table-dark .text-end {
  text-align: right !important;
}

.table-dark .fw-semibold {
  font-weight: 600;
}

.table-dark .badge.bg-secondary {
  background: #31374a !important;
  color: #fff !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: var(--main-accent) !important;
  color: #232936 !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: var(--patreon) !important;
  color: #fff !important;
}

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

.form-check-input:focus {
  border-color: var(--main-accent) !important;
  box-shadow: 0 0 0 0.15rem rgba(255, 179, 71, 0.25) !important;
}

.form-check-input[type="checkbox"] {
  border-radius: 6px !important;
}

.btn-success {
  background: var(--main-accent) !important;
  color: #232936 !important;
  border: none !important;
  font-weight: 700;
  border-radius: 10px !important;
}

.btn-success:hover {
  background: var(--main-accent-hover) !important;
  color: #232936 !important;
}

.btn-danger {
  background: var(--patreon) !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.15) !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: #363636;
  color: #fff;
  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: #444444;
}

/* 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.07);
  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.07);
  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 var(--main-accent);
  background: rgba(255, 179, 71, 0.07);
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(255, 179, 71, 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: var(--main-accent-hover) !important;
  transform: translateY(-2px) scale(1.02) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !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: #232936 !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: var(--main-bg) !important;
  color: var(--main-text) !important;
  border-color: #31374a !important;
}

.EasyMDEContainer .CodeMirror-fullscreen {
  background-color: var(--main-bg) !important;
  color: var(--main-text) !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: var(--main-bg) !important;
  border-color: #31374a !important;
}

.EasyMDEContainer .editor-toolbar.fullscreen {
  background-color: var(--main-bg) !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 #31374a !important;
}

.EasyMDEContainer .editor-toolbar a {
  color: var(--main-text) !important;
  border-color: transparent !important;
}

.EasyMDEContainer .editor-toolbar a:hover,
.EasyMDEContainer .editor-toolbar a.active {
  background-color: #31374a !important;
  border-color: #4a5568 !important;
  color: var(--main-accent) !important;
}

.EasyMDEContainer .editor-toolbar i.separator {
  border-left-color: #31374a !important;
  border-right-color: var(--main-bg) !important;
}

.EasyMDEContainer .CodeMirror-gutters {
  background-color: #1a1d23 !important;
  border-color: #31374a !important;
}

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

.EasyMDEContainer .CodeMirror-cursor {
  border-left-color: var(--main-text) !important;
}

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

.EasyMDEContainer .editor-preview,
.EasyMDEContainer .editor-preview-side {
  background-color: var(--main-bg) !important;
  color: var(--main-text) !important;
  border-color: #31374a !important;
}

.EasyMDEContainer .editor-statusbar {
  background-color: #1a1d23 !important;
  color: #6b7280 !important;
  border-color: #31374a !important;
}

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

.EasyMDEContainer .editor-preview-side {
  background-color: var(--main-bg) !important;
  color: var(--main-text) !important;
  border-color: #31374a !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,
      var(--main-bg) 0%,
      transparent 100%) !important;
}

.EasyMDEContainer .editor-toolbar.fullscreen::after {
  background: linear-gradient(to left,
      var(--main-bg) 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: #7ecfff !important;
}

.hover-card:hover .card-body {
  background: linear-gradient(135deg,
      rgba(126, 207, 255, 0.05) 0%,
      rgba(126, 207, 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: #232936;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.9rem;
  border-bottom: 1px solid #495057;
}

.calendar-body {
  display: contents;
}

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

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

.calendar-day.today {
  background: rgba(126, 207, 255, 0.1);
  border: 1px solid #7ecfff;
}

.calendar-day.other-month {
  background: #1a202c;
  color: #718096;
}

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

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

.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: #2d3748;
  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: #e2e8f0;
}

.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 */

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

.steam-users-header {
  background: rgba(35, 36, 43, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(49, 55, 74, 0.6);
  border-radius: 8px;
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.steam-users-header h1 {
  color: var(--main-accent);
  font-family: var(--font-header);
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.steam-search-form {
  background: rgba(24, 28, 36, 0.8);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid rgba(49, 55, 74, 0.6);
  backdrop-filter: blur(15px);
}

.steam-search-form .form-control {
  background: rgba(49, 55, 74, 0.6);
  border: 1px solid rgba(49, 55, 74, 0.6);
  color: var(--text-white);
  border-radius: 6px;
}

.steam-search-form .form-control:focus {
  background: rgba(49, 55, 74, 0.8);
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 0.2rem rgba(126, 207, 255, 0.25);
  color: var(--text-white);
}

.steam-search-form .form-control::placeholder {
  color: var(--text-muted);
}

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

.steam-user-card .card {
  background: rgba(24, 28, 36, 0.8);
  border: 1px solid rgba(49, 55, 74, 0.6);
  border-radius: 8px;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.steam-user-card .card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  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 var(--navbar-border);
  object-fit: cover;
  flex-shrink: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 45px !important;
}

.steam-user-avatar:hover {
  border-color: var(--main-accent);
  transform: scale(1.05);
}

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

.steam-user-name {
  color: var(--main-accent);
  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: var(--primary-accent);
  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: var(--main-accent);
  color: #000;
  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(24, 28, 36, 0.8);
  border: 1px solid rgba(49, 55, 74, 0.6);
  border-radius: 8px;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.steam-company-card .card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  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(49, 55, 74, 0.4);
  border: 2px solid var(--navbar-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.steam-company-avatar:hover {
  border-color: var(--main-accent);
  background: rgba(49, 55, 74, 0.6);
}

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

.steam-company-name {
  color: var(--main-accent);
  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: var(--primary-accent);
  text-decoration: none;
}

.steam-company-members {
  font-size: 0.85rem;
  color: var(--text-muted);
  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: #c9aa71;
}

.steam-companies-header {
  background: rgba(35, 36, 43, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(49, 55, 74, 0.6);
  border-radius: 8px;
  margin-bottom: 2rem;
  padding: 1.5rem;
}

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

.steam-search-form {
  background: rgba(24, 28, 36, 0.8);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid rgba(49, 55, 74, 0.6);
  backdrop-filter: blur(15px);
}

.steam-search-form .form-control {
  background: rgba(49, 55, 74, 0.6);
  border: 1px solid rgba(49, 55, 74, 0.6);
  color: var(--text-white);
  border-radius: 6px;
}

.steam-search-form .form-control:focus {
  background: rgba(49, 55, 74, 0.8);
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 0.2rem rgba(126, 207, 255, 0.25);
  color: var(--text-white);
}

.steam-search-form .form-control::placeholder {
  color: var(--text-muted);
}

.steam-search-result {
  background: rgba(126, 207, 255, 0.1);
  border: 1px solid rgba(126, 207, 255, 0.3);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.steam-search-result a {
  color: var(--primary-accent);
  text-decoration: none;
}

.steam-search-result a:hover {
  color: var(--main-accent);
  text-decoration: underline;
}

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

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

.steam-section-header {
  background: rgba(35, 36, 43, 0.9);
  color: var(--main-accent);
  font-weight: 600;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(49, 55, 74, 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: var(--text-white);
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.steam-companies-table .table thead th {
  background: rgba(35, 36, 43, 0.9);
  border-color: rgba(49, 55, 74, 0.6);
  color: var(--main-accent);
  font-family: var(--font-header);
  font-weight: 600;
  padding: 1rem 0.75rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(49, 55, 74, 0.6);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

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

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

.steam-company-id {
  background: var(--main-accent);
  color: #000;
  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: var(--text-white);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.steam-company-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.3;
}

.steam-member-count {
  color: var(--primary-accent);
  font-weight: 600;
  font-size: 1rem;
}

.steam-owner-link {
  color: var(--primary-accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.steam-owner-link:hover {
  color: var(--main-accent);
  text-decoration: underline;
}

.steam-btn {
  background: rgba(126, 207, 255, 0.1);
  border: 1px solid rgba(126, 207, 255, 0.3);
  color: var(--primary-accent);
  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(126, 207, 255, 0.2);
  color: var(--text-white);
  text-decoration: none;
  transform: translateY(-1px);
}

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

.steam-btn-primary {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  color: #000;
  font-weight: 600;
}

.steam-btn-primary:hover {
  background: rgba(126, 207, 255, 0.9);
  border-color: rgba(126, 207, 255, 0.9);
  color: #000;
}

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

.steam-empty-state i {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.steam-empty-state h4 {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.steam-empty-state p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

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

.steam-pagination .page-link {
  background: rgba(49, 55, 74, 0.4);
  border: 1px solid rgba(49, 55, 74, 0.6);
  color: var(--text-white);
  margin: 0 2px;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.steam-pagination .page-link:hover {
  background: rgba(126, 207, 255, 0.2);
  border-color: var(--primary-accent);
  color: var(--text-white);
}

.steam-pagination .page-item.active .page-link {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  color: #000;
  font-weight: 600;
}

.steam-pagination .page-item.disabled .page-link {
  background: rgba(49, 55, 74, 0.2);
  color: var(--text-muted);
}

/* 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(49, 55, 74, 0.4);
  border: 1px solid rgba(126, 207, 255, 0.3);
  color: var(--text-white);
  margin: 0 2px;
  border-radius: 6px;
}

.steam-pagination .page-link:hover {
  background: rgba(126, 207, 255, 0.2);
  border-color: var(--primary-accent);
  color: var(--text-white);
}

.steam-pagination .page-item.active .page-link {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  color: #000;
}

.steam-search-result {
  background: rgba(126, 207, 255, 0.1);
  border: 1px solid rgba(126, 207, 255, 0.3);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.steam-search-result a {
  color: var(--primary-accent);
  text-decoration: none;
}

.steam-search-result a:hover {
  color: var(--main-accent);
  text-decoration: underline;
}

.steam-alert {
  background: rgba(126, 207, 255, 0.1);
  border: 1px solid rgba(126, 207, 255, 0.3);
  color: var(--text-white);
  border-radius: 8px;
}

/* Perfect Theme Switcher - Dark 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;
  border-radius: 14px;
  transition: all 0.3s ease;
}

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

.switch-thumb {
  position: absolute;
  height: 22px;
  width: 22px;
  left: 2px;
  top: 2px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
  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: 10px;
  transition: all 0.3s ease;
  position: absolute;
  color: #4a5568;
}

.moon-icon {
  opacity: 1;
  transform: scale(1);
}

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

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

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

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

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

/* Hover effects */
.theme-toggle-btn:hover .switch-track {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Focus state */
.theme-toggle-btn:focus {
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.3);
}

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

.theme-toggle-btn:active.active .switch-thumb {
  transform: translateX(24px) scale(0.95);
}

/* ========================================
   COMMON PAGE SECTIONS AND CONTAINERS
   ======================================== */

/* Main page container with consistent max-width */
.page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Content section with glassmorphism effect */
.content-section {
  background: rgba(35, 36, 43, 0.6);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Section header styles */
.section-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
}

.section-subtitle {
  color: #adb5bd;
  margin: 0.25rem 0 0 0;
  font-size: 0.9rem;
}

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #adb5bd;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

.empty-state h5 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.empty-state p {
  color: #adb5bd;
  margin: 0;
  font-size: 1rem;
}

/* List items with borders */
.list-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
}

.list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.list-item-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.list-item-content {
  color: #e0e0e0;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.list-item-meta {
  color: #999;
  font-size: 0.85rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.list-item-meta i {
  color: #6c757d;
}

/* Content typography improvements */
.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
  color: #adb5bd;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.content-body ul,
.content-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-body li {
  margin-bottom: 0.5rem;
}

.content-body code {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-body pre {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-body pre code {
  background: none;
  padding: 0;
  border: none;
}

/* Hover lift effect for cards */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Stat numbers display */
.stat-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

/* Rating stars for surveys/reviews */
.rating-stars {
  display: inline-block;
  font-size: 24px;
  direction: rtl;
}

.rating-stars input {
  display: none;
}

.rating-stars label {
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
}

.rating-stars input:checked~label,
.rating-stars label:hover,
.rating-stars label:hover~label {
  color: #ffc107;
}

.rating-stars label:before {
  content: '☆';
}

/* Icon circle for links/features */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 97, 235, 0.08);
  border: 1px solid rgba(52, 97, 235, 0.16);
  color: #9fb7ff;
}

/* Link cards styling */
.link-card {
  background: #23262e;
  border: 1px solid #2c2f36;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(10, 12, 18, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(10, 12, 18, 0.5);
}

.link-title {
  color: #e6e9ef;
  margin-bottom: 0.25rem;
}

.link-desc {
  color: #9aa0a8;
  margin-bottom: 0.6rem;
}

/* Cursor pointer utility with hover effect */
.cursor-pointer {
  cursor: pointer;
}

.cursor-pointer:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease;
}

/* Privacy/TOS/Legal content styling */
.legal-content,
.privacy-content,
.tos-content {
  color: #e2e2e2;
  line-height: 1.6;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6,
.privacy-content h1,
.privacy-content h2,
.privacy-content h3,
.privacy-content h4,
.privacy-content h5,
.privacy-content h6,
.tos-content h1,
.tos-content h2,
.tos-content h3,
.tos-content h4,
.tos-content h5,
.tos-content h6 {
  color: #ffffff;
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 600;
}

.legal-content h1,
.privacy-content h1,
.tos-content h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.legal-content h2,
.privacy-content h2,
.tos-content h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #5865f2;
  padding-bottom: 0.5rem;
}

.legal-content p,
.privacy-content p,
.tos-content p {
  margin-bottom: 1.2em;
  font-size: 1.1rem;
}

.legal-content ul,
.legal-content ol,
.privacy-content ul,
.privacy-content ol,
.tos-content ul,
.tos-content ol {
  margin-bottom: 1.5em;
  padding-left: 2em;
}

.legal-content li,
.privacy-content li,
.tos-content li {
  margin-bottom: 0.5em;
  font-size: 1.1rem;
}

.legal-content strong,
.privacy-content strong,
.tos-content strong {
  color: #ffffff;
  font-weight: 600;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .icon-circle {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: 1rem 0.5rem;
  }

  .content-section {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .list-item {
    padding: 1rem 0;
  }
}