/* ================================================
   GLOBAL RESET & BASE THEME
================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  /* font-family: 'Inter', system-ui, sans-serif;
   */
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background: #0f1115;
  color: #f4f4f4;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ================================================
   NAVBAR
================================================= */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c1f26;
  padding: 12px 20px;
  border-bottom: 1px solid #2c2f36;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand a {
  color: #f4f4f4;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-bar input {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  outline: none;
  background: #2b2f36;
  color: #f4f4f4;
  width: 180px;
  transition: width 0.3s ease;
}
.search-bar input:focus {
  width: 250px;
  background: #353941;
}

.search-bar button {
  background: #0b69ff;
  border: none;
  color: #fff;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.search-bar button:hover { background: #0957d0; }

.top-links a {
  margin-left: 15px;
  color: #f4f4f4;
  text-decoration: none;
  transition: color 0.2s;
}
.top-links a:hover { color: #0b69ff; }

.hero {
  background: linear-gradient(to bottom right, #14161c, #1b1f27);
  text-align: center;
  padding: 60px 20px;
  border-bottom: 1px solid #2b2f36;
}
.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.hero h2 span {
  color: #0b69ff;
}
.hero p {
  max-width: 600px;
  margin: 0 auto 20px auto;
  color: #c7c7c7;
}
.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: #0b69ff;
  color: #fff;
}
.btn-primary:hover {
  background: #0957d0;
}

/* ================================================
   MOVIE GRID
================================================= */
.movies {
  padding: 40px 20px;
}
.movies h3 {
  margin-bottom: 16px;
  font-weight: 600;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  /* text-align: center; */
}
.movie-card {
  background: #1c1f26;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.poster {
  width: 100%;
  height: 220px;
  border-radius: 6px;
  object-fit: cover;
}
.poster-large {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}
.movie-card h4 {
  margin-top: 10px;
  color: #f4f4f4;
  font-size: 1rem;
}
.rating {
  color: #ffc107;
  margin-top: 4px;
}
.no-movies {
  color: #aaa;
  text-align: center;
  grid-column: 1 / -1;
}

/* ================================================
   FOOTER
================================================= */
.footer {
  background: #14161c;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #2b2f36;
}
.footer p {
  color: #888;
  font-size: 0.9rem;
}
.footer .subtext {
  color: #666;
  font-size: 0.8rem;
}

/* ================================================
   RESPONSIVE
================================================= */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-bar input {
    width: 100%;
  }
  .top-links {
    width: 100%;
    text-align: center;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* ================================================
   FORMS
================================================= */
.styled-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
  background: #1c1f26;
  padding: 20px;
  border-radius: 10px;
}
.styled-form input,
.styled-form textarea,
.styled-form select {
  background: #2b2f36;
  color: #f4f4f4;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px 10px;
  outline: none;
}
.styled-form input:focus,
.styled-form textarea:focus,
.styled-form select:focus {
  border-color: #0b69ff;
  background: #323640;
}

/* ================================================
   SECTIONS (Tickets, Details, etc.)
================================================= */
.ticket,
.contact-page,
.movie-detail,
.search-results {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.message-box {
  background: #1c1f26;
  padding: 15px;
  border-radius: 8px;
  margin: 10px 0 20px;
  color: #ddd;
}

/* Reviews & Search Results */
.review-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}
.review-card {
  background: #1c1f26;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 10px;
}
.review-rating {
  color: #ffc107;
  margin-top: 4px;
}
.results-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}
.results-list li {
  background: #1c1f26;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 6px;
}
.results-list a {
  color: #0b69ff;
  text-decoration: none;
  font-weight: 600;
}
.results-list a:hover { text-decoration: underline; }

/* Utility */
.muted { color: #888; }
.no-results {
  text-align: center;
  color: #aaa;
}

/* ================================================
   ADMIN PANEL STYLES
================================================= */
.admin-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}

.admin-container h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #0b69ff;
  border-bottom: 1px solid #2c2f36;
  padding-bottom: 8px;
}

/* Admin Actions */
.admin-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.admin-actions .btn {
  padding: 8px 14px;
  font-size: 0.9rem;
}

/* Admin Dashboard Cards */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.card {
  background: #1c1f26;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.card h3 {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 10px;
}
.card p {
  /* font-size: 1.4rem; */
  color: #fff;
  /* font-weight: 700; */
}

/* Admin Tables */
.admin-table, .review-table {
  width: 100%;
  border-collapse: collapse;
  background: #1c1f26;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.admin-table th,
.admin-table td,
.review-table th,
.review-table td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid #2b2f36;
}
.admin-table th, .review-table th {
  background: #0b69ff;
  color: #fff;
  font-weight: 600;
}
.admin-table tr:hover td,
.review-table tr:hover td {
  background: #252933;
}

/* Table Action Buttons */
.table-btn {
  display: inline-block;
  padding: 5px 10px;
  font-size: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  margin-right: 5px;
  transition: all 0.2s ease;
}
.btn-edit {
  background: #ffc107;
  color: #111;
}
.btn-edit:hover {
  background: #e6aa06;
}
.btn-delete {
  background: #e74c3c;
  color: #fff;
}
.btn-delete:hover {
  background: #c0392b;
}

/* Add/Edit Movie Form */
.admin-form {
  background: #1c1f26;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.admin-form label {
  font-weight: 600;
  color: #ddd;
}
.admin-form input,
.admin-form textarea,
.admin-form select {
  background: #2b2f36;
  color: #f4f4f4;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px 10px;
}
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  border-color: #0b69ff;
  background: #323640;
}

/* Alerts / Notifications */
.alert {
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
}
.alert-success {
  background: #1f3d2d;
  color: #00d97e;
}
.alert-error {
  background: #3d1f1f;
  color: #ff6b6b;
}

/* Admin Links */
.admin-link {
  color: #0b69ff;
  text-decoration: none;
}
.admin-link:hover {
  text-decoration: underline;
}
