/* style.css - Apple-esque minimal styling with mobile responsiveness */
body {
  background-color: #3b22a4;
  font-family: "Afacad Flux", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "slnt" 0;
  margin: 0;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #373737;
  font-size: 1.2em;
}

.container {
  background: #f1f1f1;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 900px;
  margin: auto;
}

.logout {
  color: #007aff;
  text-decoration: none;
  padding: 10px;
  background: #fff;
  border-radius: 5px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: #ffffff;
  border-radius: 12px;
  color: #000;
}

table, th, td {
  border: none;
}

td {
  border-bottom: 1px solid #d1d1d1;
}

th, td {
  padding: 0.75rem;
  text-align: left;
}

th {
  background-color: #f0f0f5;
}

h1, h2, h3 {
  text-align: center;
  font-weight: 500;
  color: #373737;
  margin-bottom: 1.5rem;
  line-height: 35px;
  font-family: "Afacad Flux", serif;
}

form {
  margin-top: 1rem;
}

label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-size: 1.2rem;
  color: #373737;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

button {
  background-color: #24ba4b;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background-color: #1b8b45;
}

a {
  color: #007aff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.alert {
  background-color: #e2f0d9;
  border: 1px solid #c6e2b3;
  color: #2f6627;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  text-align: center;
}

/* Spinner styles */
.spinner-container {
  text-align: center;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #007aff;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Disable button while submitting */
button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.star-rating {
  display: inline-block;
  direction: rtl;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  display: inline-block;
  padding: 0 0.1rem;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f5b301;
}

.star-rating input[type="radio"]:checked ~ label {
  color: #f5b301;
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
    width: 100%;
  }
  h1 {
    font-size: 1.5rem;
  }
  button {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}
