:root {
  --primary-color: #6366F1;        /* Indigo 500 */
  --accent-color: #F59E0B;         /* Amber 500 */
  --bg-dark: #121212;              /* Background Black */
  --bg-card: #1E1E1E;              /* Card Black */
  --text-light: #F3F4F6;           /* Light Text */
  --text-muted: #9CA3AF;           /* Muted Text */
  --navbar-bg: #1F2937;            /* Deep Gray */
  --radius: 16px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* === Base === */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  margin: 0;
}

/* === Navbar === */

.bg-navbar {
  background-color: #18181B;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.text-accent {
  color: var(--accent-color) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: var(--text-light) !important;
  transition: color 0.3s, background-color 0.3s;
  border-radius: 0.375rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--accent-color) !important;
  background-color: rgba(255, 255, 255, 0.08);
}

/* === Buttons === */
.btn-accent {
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: none;
}

.btn-accent:hover {
  background-color: #d97706;
}

/* === Movie Card === */
.movie-card {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.card-img-container {
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #2c2c2c;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card-img-container:hover img {
  transform: scale(1.05);
}

.card-title {
  font-size: 1.25rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.icon-bar {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.material-icons {
  font-size: 20px;
  color: var(--primary-color);
  transition: transform 0.2s, color 0.2s;
  cursor: pointer;
}

.material-icons:hover {
  transform: scale(1.2);
  color: var(--accent-color);
}

/* === Modal === */
.modal-content {
  background-color: var(--bg-card);
  color: var(--text-light);
  border-radius: var(--radius);
}

.modal-header-colored {
  background-color: var(--primary-color);
  color: white;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.modal-body {
  padding: 1.5rem;
}

#modalImage {
  border-radius: var(--radius);
  max-height: 300px;
  object-fit: cover;
  width: 100%;
}

/* === Responsive === */
@media (max-width: 768px) {
  .btn {
    font-size: 14px;
    padding: 8px 12px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .modal-body {
    font-size: 14px;
  }
}

/* === Form Styles === */
form .form-group label {
  font-weight: 500;
  color: var(--text-light);
}

.form-control {
  background-color: var(--bg-card);
  border: 1px solid #444;
  color: var(--text-light);
  border-radius: 8px;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25); /* indigo focus ring */
  background-color: var(--bg-card);
  color: var(--text-light);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%239CA3AF' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem 1.25rem;
  padding-right: 2.5rem;
}

textarea.form-control {
  resize: vertical;
}

/* === Modal Header Override === */
.modal-header {
  background-color: var(--navbar-bg);
  color: var(--text-light);
  border-bottom: 1px solid #333;
}

/* === Button Enhancements (reusable) === */
.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 500;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Override Bootstrap invalid feedback to blend with dark theme */
.invalid-feedback,
.invalid-feedback.d-block {
  color: #f87171; /* Tailwind red-400 */
}

