/* assets/css/dark-theme.css */

/* === Base === */
body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === Navbar === */
.navbar {
  background: linear-gradient(90deg, #003355, #005577);
  box-shadow: 0 0 15px #00aaff;
  border-bottom: 2px solid #00ffff;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 2px;
  text-shadow: 0 0 6px #00aaff;
  color: #00ffff !important;
}

.nav-link,
.btn-outline-light {
  color: #00aaff !important;
  font-weight: 600;
}

.nav-link.active {
  background-color: #00aaff !important;
  color: #000 !important;
  border-radius: 8px 8px 0 0;
}

/* === Buttons === */
.btn-primary {
  background: linear-gradient(90deg, #00ffea, #00aaff);
  border: none;
  color: #000;
  border-radius: 8px;
  box-shadow: 0 0 6px #00aaff;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00dfff, 0 0 30px #00aaff;
}

/* Navbar buttons */
.navbar .btn-outline-light {
  border-color: #00aaff;
  color: #00aaff;
  font-weight: 600;
  box-shadow: 0 0 6px #00aaff;
}

.navbar .btn-outline-light:hover {
  background-color: #00aaff;
  color: #000;
  box-shadow: 0 0 15px #00ffff;
}

/* === Forms === */
.form-control,
.form-select,
textarea {
  background-color: #3e3e63;
  border: 1.5px solid #444466;
  color: #ccc;
  border-radius: 6px;
  box-shadow: 0 0 5px #003355 inset;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: #00aaff;
  box-shadow: 0 0 12px #00aaff, inset 0 0 8px #00aaff;
  transform: scale(1.02);
  outline: none;
}

.form-control:hover,
.form-select:hover,
textarea:hover {
  box-shadow: 0 0 10px #00aaff;
  border-color: #00aaff;
}

/* === Tables === */
.table-wrapper tbody tr:hover {
    box-shadow: inset 0 0 12px rgba(0, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}


table.table {
  width: 100%;
  border-collapse: collapse;
  background-color: #121629 !important;
  color: #cfd8dc !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px #00ffff, inset 0 0 10px #00ffff33;
}

table.table thead th {
  background-color: #0a0f1f;
  color: #0ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 14px;
  border-bottom: 2px solid #00ffff;
}

table.table tbody tr {
  background-color: #1a1f3f;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #273366;
}

table.table tbody tr:last-child {
  border-bottom: none;
}

table.table tbody tr:hover {
  background-color: #273366;
  box-shadow: 0 0 15px #00ffffbb inset;
  color: #e0ffff;
}

table.table td {
  padding: 14px;
  vertical-align: middle;
  border: none;
}

/* Buttons inside tables */
table.table .btn {
  transition: all 0.3s ease;
  box-shadow: 0 0 5px #00ffff88;
}

table.table .btn:hover {
  box-shadow: 0 0 12px #00ffffcc;
  transform: scale(1.05);
  color: #00ffff;
  background-color: transparent;
  border-color: #00ffff;
}

/* === Footer === */
footer {
  background-color: #1a1a2e;
  color: #00aaff;
  text-align: center;
  padding: 8px 0;
  font-weight: 600;
  box-shadow: inset 0 0 5px #003355;
  letter-spacing: 1.5px;
  margin-top: 40px;
}

footer .copyright-text {
  color: #a0a0b0;
  font-size: 0.85rem;
  font-weight: 400;
  margin-top: 3px;
}

/* === Results Page / Alert === */
#results {
  color: #e0f7fa;
}

#results .card-title {
  color: #a5f3fc;
  text-shadow: 0 0 6px #00ffff88;
}

#results .alert {
  color: #d0f0ff;
  background-color: #222c3b;
  border-color: #00ffffaa;
}


/* Dark card for TMDb search results */
#results .card {
  background-color: #1e1e2f; /* dark background */
  border: 1px solid #003355;
  border-radius: 12px;
  box-shadow: 0 0 10px #00aaff; /* neon glow */
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* Hover effect on the result cards */
#results .card:hover {
  box-shadow: 0 0 20px #00ffff, 0 0 40px #00aaff;
  transform: translateY(-3px);
}

/* === Bright Placeholder Text for Dark Background === */

::placeholder {
  color: #b0e0ff; /* light cyan-ish blue for good contrast */
  opacity: 1;     /* Ensure it's fully visible */
}

/* Specific targeting for compatibility */
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #b0e0ff;
  opacity: 1;
}

input:focus::placeholder,
textarea:focus::placeholder,
select:focus::placeholder {
  color: #c8f4ff; /* Slightly lighter on focus */
}

/* === Force Dark Table Body Styles === */

.table tbody tr,
.table tbody td {
  background-color: #1a1f3f !important;  /* Dark blue-gray */
  color: #cfd8dc !important;             /* Light text */
}

/* Optional: fix even vs odd row styles if needed */
.table tbody tr:nth-child(even) {
  background-color: #161b33 !important;
}

#poster-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 180px;
  height: auto;
  max-height: 280px;
  border-radius: 8px;
  box-shadow: 0 0 15px #00ffff;
  border: 2px solid #00aaff;
  z-index: 9999;
  display: none;
  pointer-events: none;
  background-color: #000;
}

body {
  overflow: visible !important;
}

tbody tr:hover {
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.6);
}

.table-responsive {
    overflow: visible !important;
}
table {
    overflow: visible !important;
}
.tmdb-title-link::after {
    position: fixed !important;
    z-index: 9999 !important;
    top: auto !important; /* We'll control position via JS */
    left: auto !important;
    display: none;
}
.tmdb-title-link:hover::after {
    display: block;
}

#ticket-chat {
    background-color: #111;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff44;
    border-radius: 10px;
}

#ticket-chat .message-box {
    background-color: #222;
    border: 1px solid #00ffff88;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px #00ffff55;
    color: #ffffff;
}

#ticket-chat .message-box strong {
    color: #9d4646;
}

#ticket-chat .message-box small {
    color: #a5a4a4;
}

#ticket-chat .message-box {
    background-color: #222;
    border: 1px solid #00ffff88;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px #00ffff55;
    color: #ffffff;
}

#ticket-chat .message-box .user-name {
    color: #a55555; /* neon cyan for normal users */
}

#ticket-chat .message-box .admin-name {
    color: gold;   /* gold for admin */
    text-shadow: 0 0 6px gold, 0 0 12px gold; /* optional neon glow */
}

/* Neon badge styles */
.badge-neon-blue {
    background-color: #0d6efd;
    color: #fff;
    text-shadow: 0 0 8px #0d6efd, 0 0 16px #0d6efd88;
}
.badge-neon-cyan {
    background-color: #17a2b8;
    color: #000;
    text-shadow: 0 0 8px #17a2b8, 0 0 16px #17a2b888;
}
.badge-neon-yellow {
    background-color: #ffc107;
    color: #000;
    text-shadow: 0 0 8px #ffc107, 0 0 16px #ffc10788;
}
.badge-neon-red {
    background-color: #dc3545;
    color: #fff;
    text-shadow: 0 0 8px #dc3545, 0 0 16px #dc354588;
}
.badge-neon-gray {
    background-color: #6c757d;
    color: #fff;
    text-shadow: 0 0 8px #6c757d, 0 0 16px #6c757d88;
}