body {
  font-family: sans-serif;
  background-color: #f4f4f9;
  color: #333;
  margin: 0;
  padding: 2rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
  color: #2c3e50;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
  margin-top: 0;
}

/* Table Styles */
table#movies {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

table#movies th, table#movies td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table#movies thead th {
  background-color: #2ecc71;
  color: white;
  font-weight: bold;
}

table#movies tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

table#movies tbody tr:hover {
  background-color: #ecf0f1;
}


table#movies thead th a {
  color: white;
}


table#movies th.sorted-asc a, table#movies th.sorted-desc a {
  color: yellow; 
}

table#movies td.sorted {
  background-color: linen; 
}

a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  background-color: #2ecc71;
  color: white;
  padding: 10px 15px;
  border-radius: 4px;
  margin-top: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.btn:hover {
  background-color: #27ae60;
  text-decoration: none;
}

.movie-details p {
  line-height: 1.6;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.movie-details strong {
  color: #2c3e50;
  margin-right: 0.5rem;
}

.actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.btn-danger {
  background-color: #e74c3c;
}

.btn-danger:hover {
  background-color: #c0392b;
}

/* Form Styles */
.movie-form .form-group {
  margin-bottom: 1.5rem;
}

.movie-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #2c3e50;
}

.movie-form input[type="text"],
.movie-form textarea,
.movie-form input[type="date"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; 
}

.movie-form .actions {
  align-items: center;
}
