/* General */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

header {
  text-align: center;
  padding: 20px 0;
  background-color: #343a40;
  color: #fff;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

/* Table styling */
table {
  width: 90%;
  margin: 30px auto;
  border-collapse: collapse;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

thead {
  background-color: #007bff;
  color: #fff;
}

tbody tr:hover {
  background-color: #f1f1f1;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

/* Row backgrounds */
tr.read {
  background-image: linear-gradient(90deg, #d4edda, #c3e6cb);
}

tr.to-read {
  background-image: linear-gradient(90deg, #fff3cd, #ffeeba);
}

tr.in-progress {
  background-image: linear-gradient(90deg, #d1ecf1, #bee5eb);
}

/* Status styling */
span.status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
  min-width: 80px;
}

tr.read span.status {
  border: 1px solid #28a745;
  background-image: linear-gradient(90deg, #e0f2e9, #d4edda);
  color: #155724;
}

tr.to-read span.status {
  border: 1px solid #ffc107;
  background-image: linear-gradient(90deg, #fff9e5, #fff3cd);
  color: #856404;
}

tr.in-progress span.status {
  border: 1px solid #17a2b8;
  background-image: linear-gradient(90deg, #d6f0f6, #bee5eb);
  color: #0c5460;
}

/* Rate stars */
span.rate {
  display: inline-block;
  height: 20px;
  min-width: 60px;
  padding: 2px;
}

span.rate > span {
  border: 1px solid #ccc;
  border-radius: 50%;
  margin: 2px;
  height: 15px;
  width: 15px;
  background-color: #e0e0e0;
  display: inline-block;
  transition: all 0.3s ease;
}

span[class~="one"] > span:nth-child(1),
span[class~="two"] > span:nth-child(1),
span[class~="two"] > span:nth-child(2),
span[class~="three"] > span:nth-child(1),
span[class~="three"] > span:nth-child(2),
span[class~="three"] > span:nth-child(3),
span[class~="three"] span {
  background-image: linear-gradient(90deg, #ffcc00, #ff9900);
}

/* Hover effect for stars */
span.rate > span:hover {
  background-image: linear-gradient(90deg, #ffdd33, #ffb733);
  cursor: pointer;
}
