body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #fafafa;
  margin: 0;
}

h2 {
  margin-bottom: 20px;
  color: #333;
}

input {
  display: block;
  margin: 8px 0;
  padding: 10px;
  width: 220px;
  font-size: 16px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  background: #007bff;
  border: none;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.stars {
  display: flex;
  justify-content: center;
  font-size: 40px;
  margin: 20px 0;
}

.star {
    font-size: 190px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.star.hovered, .star.selected {
  color: gold;
}

.hidden {
  display: none;
}


.dashboard-container {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.filters label {
  font-weight: bold;
}

.filters select, .filters input {
  padding: 6px 10px;
  font-size: 14px;
}

.stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  min-width: 150px;
}

.stat-card h3 {
  margin: 0;
  font-size: 16px;
  color: #444;
}

.stat-card p {
  font-size: 22px;
  font-weight: bold;
  margin: 8px 0 0;
  color: #222;
}


/* --- Common Reset --- */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #fff 0%, #f4f6f8 100%);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Login Section --- */
#login-section {
  width: 90%;
  max-width: 400px;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#login-section h2 {
  margin-bottom: 20px;
  color: #222;
}

#login-section input {
  width: 100%;
  padding: 14px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

#login-section button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.3s;
}

#login-section button:hover {
  background: #005dc1;
}

/* --- Rating Section --- */
.rating-container {
  width: 100%;
  max-width: 700px;
  text-align: center;
}

.rating-container h2 {
  font-size: 26px;
  color: #222;
  margin-bottom: 40px;
}

/* --- Stars --- */
.stars {
  display: flex;
  justify-content: space-between;
  padding: 0 10%;
  font-size: 90px;
  color: #d1d1d1;
  user-select: none;
}

.star {
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}

.star:hover {
  transform: scale(1.15);
}

.star.hovered, .star.selected {
  color: #ffb400;
}

button#submitBtn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 15px 40px;
  margin-top: 40px;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}

button#submitBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

button#submitBtn:not(:disabled):hover {
  background: #005dc1;
}

#message {
  font-size: 22px;
  color: #28a745;
  margin-top: 30px;
  font-weight: 600;
}

.hidden {
  display: none;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar h2 {
  font-size: 26px;
  margin: 0;
}

#logoutBtn {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

#logoutBtn:hover {
  background: #c0392b;
}

.unauthorized {
  text-align: center;
  padding: 40px;
  font-family: 'Poppins', sans-serif;
}

.unauthorized h3 {
  font-size: 28px;
  color: #c0392b;
}


