/* LOADING SCREEN */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, var(--industrial-darker) 0%, var(--industrial-dark) 50%, var(--industrial-darker) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(74, 144, 226, 0.05),
      rgba(74, 144, 226, 0.05) 2px,
      transparent 2px,
      transparent 4px
    );
  background-size: cover;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.3s ease-out,
    visibility 0.3s ease-out;
  opacity: 1;
  visibility: visible;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: #ff5722;
  font-family: "Quantico", sans-serif;
}

.loading-spinner {
  width: 80px;
  height: 80px;
  border: 4px solid #2c2c2c;
  border-top: 4px solid #ff5722;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 8px rgba(255, 87, 34, 0.15);
}

.loading-text {
  font-size: 24px;
  font-weight: bold;
  text-shadow: 1px 1px 2px #000000;
  margin-bottom: 10px;
}

.loading-subtext {
  font-size: 14px;
  color: #e0e0e0;
  opacity: 0.8;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* BACKGROUNDS */

.background-no-repeat {
  background-repeat: no-repeat;
}
.background-repeat {
  background-repeat: repeat;
}
.background-repeat-x {
  background-repeat: repeat-x;
}
.background-repeat-y {
  background-repeat: repeat-y;
}

.background-pos-tl {
  background-position: top left;
}
.background-pos-tc {
  background-position: top center;
}
.background-pos-tr {
  background-position: top right;
}
.background-pos-cl {
  background-position: center left;
}
.background-pos-c {
  background-position: center;
}
.background-pos-cr {
  background-position: center right;
}
.background-pos-bl {
  background-position: bottom left;
}
.background-pos-bc {
  background-position: bottom center;
}
.background-pos-br {
  background-position: bottom right;
}

.background-size-auto {
  background-size: auto;
}
.background-size-contain {
  background-size: contain;
}
.background-size-cover {
  background-size: cover;
}

/* LAYOUT */
.game-container {
  display: flex;
  flex-direction: row;
  padding-top: 0px;
  padding-bottom: 50px;
  padding-left: 0px;
  padding-right: 0px;
  border-radius: 10px;
  font-family: "Quantico", sans-serif;
}

.side-bar {
  width: 300px;
  padding: 0px 0px;
}

.game-area {
  flex-grow: 1;
  padding: 0px 0px;
}

/* BOOTSTRAP OVERIDES */
.popover {
  max-width: 350px;
  background-color: var(--industrial-darker);
  border: 1px solid rgba(120, 130, 140, 0.15);
  border-radius: 6px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 4px rgba(120, 130, 140, 0.1);
}

.popover-content > .list-group {
  margin-bottom: 0px;
}

.popover-content > .list-group > .list-group-item:hover {
  background-color: var(--industrial-dark);
  border: 1px solid var(--accent-primary);
}

/* CHARACTER INFORMATION */
.character-information .progress {
  margin-bottom: 3px;
}

/* NAVIGATION MENU */

.navigation-menu {
  padding: 0px;
  margin: 0px;
  font-family: "Electrolize", cursive;
}

.navigation-menu > li {
  list-style: none;
}

.navigation-menu > li > a {
  background:
    linear-gradient(180deg, var(--industrial-medium) 0%, var(--industrial-dark) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(74, 144, 226, 0.05),
      rgba(74, 144, 226, 0.05) 2px,
      transparent 2px,
      transparent 4px
    );
  display: block;
  padding: 0px 5px;
  line-height: 26px;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  font-size: 110%;
  color: var(--accent-warning);
  border: 1px solid rgba(120, 130, 140, 0.15);
  border-radius: 4px;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px var(--shadow);
}

.navigation-menu > li > ul {
  padding-left: 0px;
}

.navigation-menu > li > ul > li {
  list-style: none;
}

.navigation-menu > li > ul > li > a {
  display: block;
  padding: 1px 6px;
  border-bottom: 1px solid rgba(120, 130, 140, 0.15);
  line-height: 21px;
  color: var(--text-primary);
  background-color: var(--industrial-medium);
  transition: all 0.3s ease;
}
.navigation-menu > li > ul > li > a:hover {
  background-color: var(--industrial-dark);
  color: var(--accent-warning);
  text-shadow: 1px 1px 2px var(--shadow);
}
.navigation-menu > li > ul > li > a > .pull-right {
  line-height: 21px;
}

.navigation-menu > li > ul > li:nth-last-child(1) > a {
  border-bottom: none;
}

/* TIMERS */
[data-timer] {
  background:
    linear-gradient(135deg, var(--industrial-medium) 0%, var(--industrial-dark) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(120, 130, 140, 0.05),
      rgba(120, 130, 140, 0.05) 2px,
      transparent 2px,
      transparent 4px
    );
  border: 1px solid rgba(120, 130, 140, 0.15);
  color: #d4d4d4;
  padding: 2px 4px;
  border-radius: 3px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  font-family: "Electrolize", cursive;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* CRIME HOLDER - unified */
.crime-holder {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--industrial-medium) 0%, var(--industrial-dark) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(120, 130, 140, 0.02),
      rgba(120, 130, 140, 0.02) 2px,
      transparent 2px,
      transparent 4px
    );
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 0 4px rgba(0, 0, 0, 0.3),
    0 1px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(120, 130, 140, 0.15);
  font-family: "Electrolize", cursive;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  box-sizing: border-box;

  /* remove aspect-ratio */
  min-height: 150px; /* fallback so tiny crimes still look good */
}

/* Top row: Name + Commit */
.crime-holder > p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.crime-holder .action {
  color: var(--accent-warning);
  font-weight: bold;
  text-shadow: 1px 1px 2px var(--shadow);
}

.crime-holder .commit a {
  background: linear-gradient(135deg, var(--industrial-medium) 0%, var(--industrial-dark) 100%);
  border: 1px solid rgba(120, 130, 140, 0.15);
  color: var(--accent-warning);
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-shadow: 1px 1px 2px var(--shadow);
  font-family: "Electrolize", cursive;
}
.crime-holder .commit a:hover {
  background: linear-gradient(135deg, var(--accent-warning) 0%, var(--danger-color) 100%);
  color: var(--text-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(74, 144, 226, 0.4);
}

/* Middle info block (exp, money, loot) */
.crime-info {
  background: rgba(0, 0, 0, 0.5);
  padding: 8px;
  border-radius: 4px;
  margin-top: 8px;
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #e0e0e0;
  font-size: 0.85em;
  text-shadow: 1px 1px 2px #000000;
}

.crime-loot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  width: 100%;
}

.crime-loot-line {
  background: rgba(120, 130, 140, 0.15);
  padding: 4px 6px;
  border-radius: 3px;
  text-align: left;
}

/* Bottom progress bar */
.crime-holder .crime-perc {
  width: 100%;
  height: 6px;
  background-color: #1a1a1a;
  border-radius: 0 0 6px 6px;
  border-top: 1px solid rgba(120, 130, 140, 0.15);
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.5);
}

.crime-holder .crime-perc .perc {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
  box-shadow: 0 0 3px rgba(76, 175, 80, 0.2);
  transition: width 0.3s ease-in-out;
}

.crime-holder.locked {
  opacity: 0.5;
  pointer-events: none;
}

/* COMPACT TOP BAR STYLES */
.compact-top-bar {
  background: linear-gradient(135deg, var(--industrial-medium) 0%, var(--industrial-dark) 100%);
  border: 1px solid rgba(120, 130, 140, 0.15);
  border-radius: 8px;
  margin-top: 15px;
  box-shadow: 0 2px 8px var(--shadow);
}

.currency-item {
  color: var(--text-primary);
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.currency-item.mr-3 {
  margin-right: 15px;
}

/* PROGRESS BAR ENHANCEMENTS */
.progress-sm {
  height: 15px;
}

.progress-xs {
  height: 8px;
}

/* STAT ITEM IMPROVED STYLING */
.stat-item {
  padding: 2px 0;
}

.stat-item small {
  font-weight: normal;
}

/* IMPROVED PANEL BODY SPACING */
.apoc-panel .panel-body {
  padding: 0px;
}

/* VEHICLE MINI STATS */
.vehicle-stats-mini .stat-item {
  margin-bottom: 3px !important;
  font-size: 11px;
}

/* APOC QUICK ACTIONS */
.apoc-quick-actions .btn {
  font-size: 11px;
  padding: 4px 8px;
}

/* BADGE FLEX CONTAINER - Levels, Skills, Scavenge, Vehicle Stats */
.user-levels-compact,
.user-skills-compact,
.user-scavenge-compact,
.vehicle-stats-detailed {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

/* FEATURES GRID - Side-by-side layout for features panel */
.features-grid {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* BADGE ITEMS - Individual flex badges */
.level-item,
.skill-item,
.scavenge-item,
.luckydip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background: linear-gradient(135deg, var(--industrial-medium) 0%, var(--industrial-dark) 100%);
  border: 1px solid rgba(120, 130, 140, 0.15);
  border-radius: 6px;
  text-align: center;
  flex: 1 1 calc(16.666% - 8px); /* 6 badges per row on large screens */
  min-width: 120px;
  max-width: 180px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.level-item:hover,
.skill-item:hover,
.scavenge-item:hover,
.luckydip-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-color: rgba(120, 130, 140, 0.4);
}

/* Badge content styling */
.level-item small,
.skill-item small {
  font-size: 10px;
  margin-bottom: 2px;
  color: var(--text-primary);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.level-item small:first-child,
.skill-item small:first-child {
  font-weight: bold;
  color: var(--accent-warning);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.level-item small i,
.skill-item small i {
  font-size: 12px;
}

.level-item small.text-muted,
.skill-item small.text-muted {
  color: #e0e0e0 !important;
  font-weight: 500;
}

/* VEHICLE STATS BADGES */
.vehicle-stats-detailed .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background: linear-gradient(135deg, var(--industrial-medium) 0%, var(--industrial-dark) 100%);
  border: 1px solid rgba(120, 130, 140, 0.15);
  border-radius: 6px;
  text-align: center;
  flex: 1 1 calc(16.666% - 8px); /* 6 badges per row on large screens */
  min-width: 120px;
  max-width: 180px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.vehicle-stats-detailed .stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-color: rgba(120, 130, 140, 0.4);
}

.vehicle-stats-detailed .stat-item strong {
  font-size: 9px !important;
  color: var(--accent-warning);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.vehicle-stats-detailed .stat-item strong i {
  font-size: 10px;
  opacity: 0.9;
}

.vehicle-stats-detailed .stat-item small.text-muted {
  font-size: 10px;
  color: #e0e0e0 !important;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Remove existing margin from vehicle stat items */
.vehicle-stats-detailed .stat-item.mb-3 {
  margin-bottom: 0 !important;
}

/* RESPONSIVE BADGE LAYOUTS - Mobile: max 4 badges, Large: max 6 badges */
@media (max-width: 767px) {
  .level-item,
  .skill-item,
  .scavenge-item,
  .luckydip-item,
  .vehicle-stats-detailed .stat-item {
    flex: 1 1 calc(25% - 8px); /* 4 badges per row on mobile */
    min-width: 100px;
    max-width: 140px;
    padding: 6px 4px;
  }

  .level-item small,
  .skill-item small,
  .scavenge-item small,
  .luckydip-item small,
  .vehicle-stats-detailed .stat-item small {
    font-size: 9px;
  }

  .level-item small:first-child,
  .skill-item small:first-child,
  .scavenge-item small:first-child,
  .luckydip-item small:first-child,
  .vehicle-stats-detailed .stat-item strong {
    font-size: 9px;
    margin-bottom: 3px;
  }

  .level-item small i,
  .skill-item small i,
  .scavenge-item small i,
  .luckydip-item small i,
  .vehicle-stats-detailed .stat-item strong i {
    font-size: 11px;
  }
}



/* ===========================================
   REFILLS TOAST NOTIFICATIONS - Workout Style
   =========================================== */

.refills-toast {
    position: fixed;
    top: 15%; /* Middle-down from top */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050; /* Above most content but below modals */
    max-width: 400px;
    min-width: 300px;
    animation: toastSlideIn 0.5s ease, toastFadeIn 0.5s ease;
    pointer-events: auto;
}

.toast-inner {
    background: linear-gradient(135deg, var(--industrial-dark, #1a1a1a) 0%, var(--industrial-darker, #0f0f0f) 100%);
    border: 2px solid var(--accent-primary, #3498db);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.toast-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary, #3498db), var(--accent-green, #28a745), var(--accent-orange, #e74c3c));
}

.toast-icon {
    font-size: 2rem;
    color: var(--accent-primary, #3498db);
    flex-shrink: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.9));
    animation: toastIconPulse 0.8s ease;
}

.toast-content {
    flex: 1;
    color: var(--text-primary, #f0f0f0);
}

.toast-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-gold, #cc9900);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    font-family: "Orbitron", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toast-message,
.toast-details {
    margin: 4px 0;
    font-family: "Quantico", sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    font-size: 0.95rem;
}

.toast-gain {
    color: var(--accent-green, #28a745);
    font-weight: bold;
    font-family: "Orbitron", sans-serif;
    font-size: 1rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary, #cccccc);
    font-size: 1rem;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: -2px;
}

.toast-close:hover {
    background: rgba(231, 76, 60, 0.2);
    color: var(--accent-orange, #e74c3c);
}

/* Error toast styles */
.refills-error-toast .toast-inner {
    border-color: var(--accent-orange, #e74c3c);
}

.refills-error-toast .toast-inner::before {
    background: linear-gradient(90deg, var(--accent-orange, #e74c3c), var(--accent-red, #dc3545), var(--accent-orange-dark, #c0392b));
}

.refills-error-toast .toast-icon {
    color: var(--accent-orange, #e74c3c);
}

/* Warning toast styles */
.refills-warning-toast .toast-inner {
    border-color: var(--accent-yellow, #ff9800);
}

.refills-warning-toast .toast-inner::before {
    background: linear-gradient(90deg, var(--accent-yellow, #ff9800), var(--accent-gold, #cc9900), var(--accent-orange, #f39c12));
}

.refills-warning-toast .toast-icon {
    color: var(--accent-yellow, #ff9800);
}

/* Animations for toast */
@keyframes toastSlideIn {
    from {
        transform: translate(-50%, -70%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes toastFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes toastIconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Auto-hide animation */
.refills-toast.hide {
    animation: toastSlideOut 0.5s ease forwards;
}

@keyframes toastSlideOut {
    from {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -70%);
        opacity: 0;
    }
}

/* ============================================
   TOP NAVIGATION BAR
   ============================================ */

/* Top Navigation Bar - Compact */
.top-nav-bar {
  background:
    linear-gradient(135deg, var(--industrial-medium) 0%, var(--industrial-dark) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(120, 130, 140, 0.03),
      rgba(120, 130, 140, 0.03) 2px,
      transparent 2px,
      transparent 4px
    );
  background-blend-mode: multiply;
  border: none;
  border-bottom: 1px solid rgba(120, 130, 140, 0.15);
  border-radius: 0;
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  min-height: 35px;
}

.top-nav-bar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(120, 130, 140, 0.2) 50%, transparent 100%);
  opacity: 0.1;
}

.top-nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  position: relative;
  z-index: 2;
}

/* Time and Date Section - Ultra Compact */
.time-date-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.current-time {
  color: #FAF9F6;
  font-size: 12px;
  font-weight: bold;
  font-family: "Electrolize", monospace;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin-bottom: 1px;
  line-height: 1;
}

.current-date {
  color: #cccccc;
  font-size: 10px;
  font-family: "Electrolize", monospace;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  line-height: 1;
}

/* Top Navigation Buttons - Compact */
.top-nav-buttons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  border: 1px solid rgba(120, 130, 140, 0.15);
  border-radius: 4px;
  color: #FAF9F6;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.3),
    0 0 4px rgba(120, 130, 140, 0.15);
  border-color: rgba(120, 130, 140, 0.4);
}

.nav-button i {
  font-size: 14px;
  z-index: 2;
  position: relative;
}

.nav-button .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff5722;
  color: #FAF9F6;
  border: 2px solid #1a1a1a;
  font-size: 9px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  z-index: 3;
}

/* Notification Button */
.notification-btn {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  border-color: rgba(255, 193, 7, 0.3);
}

.notification-btn:hover {
  background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
  border-color: #ffc107;
  color: #1a1a1a;
}

/* Mail Button */
.mail-btn {
  background: linear-gradient(90deg, var(--accent-orange-dark), var(--accent-dark-2));
  border-color: var(--accent-orange-dark);
  color: var(--text-primary);
}

.mail-btn:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-orange-dark) 100%);
  border-color: var(--accent-orange);
  color: var(--text-primary);
}

/* Settings Button */
.settings-btn {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  border-color: rgba(156, 39, 176, 0.3);
  color: #9c27b0;
}

.settings-btn:hover {
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
  border-color: #9c27b0;
  color: #FAF9F6;
}

/* Logout Button */
.logout-btn {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  border-color: rgba(244, 67, 54, 0.3);
  color: #f44336;
}

.logout-btn:hover {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  border-color: #f44336;
  color: #FAF9F6;
}

/* Professional Dashboard Panel - Cohesive and Inlaid */
.dashboard-header-wrapper {
  background: transparent;
  padding: 0;
  margin: 0;
}

/* Remove horizontal padding from container-fluid inside dashboard wrapper */
.dashboard-header-wrapper .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.professional-dashboard-panel {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(107, 31, 9, 0.08) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 16px;
    border: 2px solid rgba(107, 31, 9, 0.2);
    backdrop-filter: blur(10px);
    background-blend-mode: multiply;
    margin-bottom: 5px;
    box-shadow:
        inset 0 0 8px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
}

.professional-dashboard-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(120, 130, 140, 0.2) 50%, transparent 100%);
  opacity: 0.1;
}

.dashboard-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.dashboard-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-divider {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, transparent 0%, rgba(120, 130, 140, 0.15) 20%, rgba(120, 130, 140, 0.15) 80%, transparent 100%);
  flex-shrink: 0;
}

/* Player Identity Section - Compact */
.player-section {
  flex: 1;
  min-width: 180px;
  max-width: 250px;
}

.player-info-compact {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-avatar-compact {
  flex-shrink: 0;
}

.player-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(120, 130, 140, 0.15);
  display: block;
}

.player-identity {
  flex: 1;
  min-width: 0;
}

.player-name {
  font-size: 12px;
  font-weight: bold;
  color: #FAF9F6;
  margin: 0 0 1px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-details {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Make exp bar inline with level text */
.player-details .exp-compact {
  margin-left: 6px;
}

.rank {
  font-size: 11px;
  color: #ff5722;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.level {
  font-size: 11px;
  color: #e0e0e0;
  font-weight: 500;
  flex-shrink: 0;
}

.exp-compact {
  flex-shrink: 0;
}

.exp-bar-compact {
  width: 60px;
  height: 4px;
  background: rgba(120, 130, 140, 0.15);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Currency Section - Compact */
.currency-section {
  flex-shrink: 0;
}

/* Currency Icon Color Coding */
.currency-rustbacks .fa-coins {
  color: var(--accent-warning); /* Golden/bronze color for Rustbacks */
}

.currency-tabs .fa-star {
  color: var(--accent-primary); /* Blue color for Tabs */
}

.currency-gems .fa-gem {
  color: var(--accent-danger); /* Red color for Gems */
}

.currency-item {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
}

.currency-icon {
  font-size: 10px;
  opacity: 0.8;
  color: #cccccc;
  flex-shrink: 0;
}

.currency-icon.fa-coins {
  color: #ffc107;
}

.currency-icon.fa-star {
  color: #00bcd4;
}

.currency-icon.fa-gem {
  color: #4caf50;
}

.currency-amount {
  font-size: 11px;
  font-weight: bold;
  color: #FAF9F6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  font-family: "Electrolize", monospace;
  line-height: 1;
}

/* Stats Section - Compact */
.stats-section {
  flex-shrink: 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
}

.stat-icon {
  font-size: 10px;
  opacity: 0.8;
  color: #cccccc;
  flex-shrink: 0;
}

/* Stat icon colors - targeted by FontAwesome icon class */
.stat-icon .fa-heart {
  color: #f44336;
}

.stat-icon .fa-bolt {
  color: #2196f3;
}

.stat-icon .fa-moon {
  color: #9c27b0;
}

.stat-icon .fa-exclamation-triangle {
  color: #ff9800;
}

.stat-value {
  font-size: 11px;
  font-weight: bold;
  color: #FAF9F6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  font-family: "Electrolize", monospace;
  line-height: 1;
}

@media (max-width: 1200px) {
    .stat-value {
        font-size: 12px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .professional-dashboard-panel {
    padding: 4px;
  }

  .dashboard-content {
    gap: 6px;
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-section {
    gap: 4px;
    flex-wrap: wrap;
  }

  .section-divider {
    display: none;
  }

  .player-section {
    order: 1;
    min-width: unset;
    max-width: unset;
  }

  .currency-section {
    order: 2;
  }

  .stats-section {
    order: 3;
  }

  .player-info-compact {
    justify-content: center;
  }

  .exp-bar-compact {
    width: 80px;
  }

  .currency-item,
  .stat-item {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .professional-dashboard-panel {
    padding: 3px;
  }

  .dashboard-content {
    gap: 4px;
  }

  .player-avatar {
    width: 30px;
    height: 30px;
  }

  .player-name {
    font-size: 10px;
  }

  .rank,
  .level {
    font-size: 8px;
  }

  .exp-bar-compact {
    width: 60px;
    height: 3px;
  }

  .currency-amount,
  .stat-value {
    font-size: 9px;
  }

  .currency-icon,
  .stat-icon {
    font-size: 9px;
  }
}

/* ===========================================
   ACTIVE QUESTS STYLING (from Blackmarket Module)
   =========================================== */

.active-quests-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.active-quest-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 2px solid var(--border-dark);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.active-quest-card:hover {
    border-color: var(--border-dark);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.active-quest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-dark-2), var(--accent-dark), var(--accent-dark-2));
    border-radius: 8px 8px 0 0;
}

.quest-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.quest-info {
    flex: 1;
}

.quest-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border: 2px solid #888888;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.quest-info h5 {
    margin: 0 0 10px 0;
    color: #f0f0f0;
    font-family: "Audiowide", cursive;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.quest-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.quest-turn-in-info {
    margin-bottom: 15px;
}

.turn-in-location {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 4px;
    color: var(--accent-primary, #3498db);
    font-family: "Quantico", sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.turn-in-location i {
    color: var(--accent-primary, #3498db);
    font-size: 0.9rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #27ae60);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

.progress-text {
    font-size: 0.85rem;
    color: #cccccc;
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.quest-objectives {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.objective-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: "Quantico", sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    transition: all 0.25s ease;
}

.objective-item.completed {
    background: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
}

.objective-item.pending {
    border-left: 3px solid #e74c3c;
}

.objective-item.completed i {
    color: #28a745;
}

.objective-item.pending i {
    color: #e74c3c;
}

.objective-item span {
    flex: 1;
    color: #f0f0f0;
}

.objective-progress {
    color: #3498db;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Quest Modal Responsive */
@media (max-width: 768px) {
    .active-quest-card {
        padding: 12px;
        margin: 10px;
    }

    .quest-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .quest-info h5 {
        font-size: 1.2rem;
    }
}

/* ===========================================
   MOBILE SLIDE PANEL
   =========================================== */

.mobile-slide-panel {
    position: fixed;
    top: 0;
    right: -50%; /* Start hidden off-screen - smaller on desktop */
    width: 75%;
    height: 100%;
    background-color: var(--industrial-darker);
    border-left: 1px solid rgba(120, 130, 140, 0.15);
    z-index: 1050; /* Above most content */
    transition: right 0.2s ease-in-out;
    display: none;
}

@media (max-width: 767px) {
    .mobile-slide-panel {
        right: -75%; /* Start hidden off-screen - larger on mobile */
        width: 75%;
    }
}

.mobile-slide-panel.show {
    right: 0;
}

.mobile-panel-content {
    overflow-y: auto;
    height: 100%;
    color: var(--text-primary);
}

/* Clock Tooltip Styling */
.clock-tooltip {
    padding: 8px;
    min-width: 150px;
    text-align: center;
}

.clock-tooltip .clock-time,
.clock-tooltip .clock-date {
    margin-bottom: 2px;
    font-family: "Electrolize", monospace;
    font-size: 12px;
}

.clock-tooltip .clock-time {
    color: #FAF9F6;
    font-weight: bold;
}

.clock-tooltip .clock-date {
    color: #cccccc;
}

/* ===========================================
   MOBILE INVENTORY STYLES
   =========================================== */

.mobile-inventory-container {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}

.mobile-inventory-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px 8px;
    min-width: 120px;
    flex: 1 1 calc(12.5% - 2px); /* Default 6 columns on large screens */
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.mobile-inventory-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary, #ff6b35);
}

.inventory-item-icon {
    color: var(--text-primary, #e0e0e0);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    text-align: center;
}

.inventory-item-info {
    flex: 1;
    min-width: 0;
}

.inventory-item-name {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary, #e0e0e0);
    margin-bottom: 2px;
}

.inventory-item-info small.text-info {
    font-size: 10px;
    color: var(--accent-primary, #17a2b8);
    font-weight: 600;
}

.mobile-inventory-footer {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-inventory-footer small {
    font-size: 9px;
    color: var(--text-muted, #888);
    font-style: italic;
}

/* Category-specific icon colors */
.mobile-inventory-item[data-category="Weapons"] .inventory-item-icon {
    color: #dc3545;
}

.mobile-inventory-item[data-category="Consumables"] .inventory-item-icon {
    color: #28a745;
}

.mobile-inventory-item[data-category="Materials"] .inventory-item-icon {
    color: #ffc107;
}

/* Responsive inventory grid - More columns on larger screens */
@media (max-width: 1200px) {
    .mobile-inventory-item {
        flex: 1 1 calc(33.333% - 5px); /* 3 columns on large screens */
    }
}

@media (max-width: 992px) {
    .mobile-inventory-item {
        flex: 1 1 calc(50% - 4px); /* 2 columns on medium screens */
    }
}

@media (max-width: 767px) {
    .mobile-inventory-container {
        gap: 6px;
        padding: 6px 0;
    }

    .mobile-inventory-item {
        padding: 4px 6px;
        min-width: 100px;
    }
}

@media (max-width: 576px) {
    .mobile-inventory-item {
        flex: 1 1 100%; /* 1 column on small screens */
        min-width: 100px;
    }

    .mobile-inventory-container {
        max-height: 250px;
        gap: 4px;
    }

    .inventory-item-name {
        font-size: 10px;
    }

.inventory-item-icon {
    font-size: 12px;
}
}

/* ===========================================
   QUEST COMPLETION GREEN FLASH EFFECT
   =========================================== */

.quest-completion-flash {
    animation: questCompletionFlash 1.5s ease-in-out infinite;
}

@keyframes questCompletionFlash {
    0%, 100% {
        box-shadow: 0 0 5px rgba(40, 167, 69, 0.3), 0 0 10px rgba(40, 167, 69, 0.2);
        border-color: rgba(40, 167, 69, 0.5);
        background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    }
    50% {
        box-shadow: 0 0 15px rgba(40, 167, 69, 0.8), 0 0 25px rgba(40, 167, 69, 0.6), 0 0 35px rgba(40, 167, 69, 0.4);
        border-color: rgba(40, 167, 69, 1);
        background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    }
}
