:root {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #333;
  background-color: #f5f5f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #4a6fa5;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #3a5a8a;
}

body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

button {
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  background-color: #4a6fa5;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover {
  background-color: #3a5a8a;
  transform: translateY(-1px);
}

button:focus,
button:focus-visible {
  outline: 2px solid #4a6fa5;
  outline-offset: 2px;
}

input:focus {
  outline: 2px solid #4a6fa5;
  outline-offset: 2px;
}

.loader-1 {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  animation: rotate 1s linear infinite;
}
.loader-1::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 5px solid #1a1a1a;
  animation: prixClipFix 2s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes prixClipFix {
  0% {
    clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
  }
  25% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
  }
  50% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
  }
  75% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
  }
}
.splash-scr {
  height: 100dvh;
  width: 100dvw;
  display: flex;
  justify-content: center;
  align-items: center;
}
.roll-ver-area {
  display: flex;
  gap: 0.5rem;
}

.roll-ver-area input {
  flex: 1;
}
table.tab-group,
td,
th {
  border: 1px solid #dedede;
}

table.tab-group {
  border-collapse: collapse;
}

table.tab-group td {
  padding: 8px;
}
.prev-fdioj {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

button.btn-ghost {
  padding: 0;
  background: transparent;
  color: #4a6fa5;
  font-weight: bold;
}
#root {
  width: 100%;
  min-height: 100vh;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input,
button {
  font-size: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.judge-container {
  min-height: 100vh;
  background-color: #f5f5f5;
}

.judge-header {
  background-color: #4a6fa5;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.judge-header h1 {
  margin: 0;
  color: white;
}

.logout-button {
  background-color: transparent;
  border: 1px solid white;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.logout-button:hover {
  background-color: white;
  color: #4a6fa5;
}

.judge-content {
  display: flex;
  padding: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: start;
}

.scoring-form-container {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 300px;
  width: 100%;
}

.previous-scores {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 300px;
  max-height: 80vh;
  overflow-y: auto;
  width: 100%;
}

.filter-controls {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.filter-controls label {
  margin-right: 0.5rem;
  font-weight: 500;
}

.filter-dropdown {
  flex: 1;
  max-width: 200px;
}

h2 {
  color: #333;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

input,
.select-dropdown {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.select-dropdown,
.form-input {
  background-color: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem top 50%;
  background-size: 0.65rem auto;
}

input[type="number"] {
  width: 100px;
}

.total-score {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0;
  color: #4a6fa5;
}

.submit-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #4a6fa5;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #3a5a8a;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.scores-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.score-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  background-color: #f9f9f9;
}

.score-card h3 {
  margin-top: 0;
  margin-bottom: 5px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.student-id {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
  display: block;
}

.contest-type {
  display: inline-block;
  background-color: #3498db;
  color: white;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.score-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.score-item {
  display: flex;
  flex-direction: column;
}

.category {
  font-weight: 500;
  color: #555;
}

.score {
  font-size: 1.2rem;
  color: #4a6fa5;
}

.timestamp {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0;
  text-align: right;
}

@media (max-width: 768px) {
  .judge-content {
    flex-direction: column;
  }
}
.admin-container {
  min-height: 100vh;
  background-color: #f5f5f5;
}

.admin-header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.admin-header h1 {
  margin: 0;
  color: white;
}

.admin-filters {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.admin-filters label {
  margin-right: 0.75rem;
  font-weight: 500;
}

.admin-filters select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  min-width: 200px;
}

.logout-button {
  background-color: transparent;
  border: 1px solid white;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.logout-button:hover {
  background-color: white;
  color: #2c3e50;
}

.reset-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #e74c3c;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.reset-button svg {
  width: 16px;
  height: 16px;
}

.reset-button:hover {
  background-color: #c0392b;
}

.reset-button.confirm {
  background-color: #c0392b;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(192, 57, 43, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(192, 57, 43, 0);
  }
}

.admin-content {
  display: flex;
  padding: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.students-list-container {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 1;
  max-width: 100%;
}

.students-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.students-header h2 {
  margin: 0;
}

.download-buttons {
  display: flex;
  gap: 0.5rem;
}

.download-all-button {
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.download-all-button:hover {
  background-color: #1a2530;
}

.download-all-button.csv {
  background-color: #34495e;
}

.download-all-button.csv:hover {
  background-color: #2c3e50;
}

.students-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.student-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.student-item:hover {
  border-color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.student-item.selected {
  border-color: #2c3e50;
  background-color: #eef2f7;
}

.student-info h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #333;
}

.student-info p {
  margin: 0.25rem 0;
  color: #555;
}

.download-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.9rem;
}

.download-button:hover {
  background-color: #2980b9;
}

.download-button.csv {
  background-color: #2980b9;
}

.download-button.csv:hover {
  background-color: #1c6ea4;
}

.student-details {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 2;
  min-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
}

.student-details h2 {
  color: #2c3e50;
  margin-top: 0;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.score-summary {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.summary-item {
  display: flex;
  flex-direction: column;
}

.summary-item .label {
  font-size: 0.9rem;
  color: #777;
}

.summary-item .value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.evaluations-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.evaluation-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  background-color: #f9f9f9;
}

.evaluation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.evaluation-header h4 {
  margin: 0;
  color: #333;
}

.evaluation-header .total-score {
  font-weight: 600;
  color: #2c3e50;
}

.evaluation-contest {
  display: inline-block;
  background-color: #2ecc71;
  color: white;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.score-grid-item {
  display: flex;
  flex-direction: column;
  background-color: #eef2f7;
  padding: 0.75rem;
  border-radius: 4px;
}

.score-grid-item .category {
  font-size: 0.9rem;
  color: #555;
}

.score-grid-item .score {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
}

.evaluation-footer {
  text-align: right;
}

.evaluation-footer .timestamp {
  font-size: 0.8rem;
  color: #777;
}

.student-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.student-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
}

.student-name {
  margin: 0;
  font-size: 1.4rem;
  color: #2c3e50;
}

.student-average {
  font-size: 1.2rem;
  font-weight: 500;
  color: #27ae60;
}

.category-averages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.category-average-item {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.75rem;
  background-color: #e8f4fd;
  border-radius: 4px;
  border-left: 3px solid #3498db;
}

.category-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.category-score {
  font-size: 1rem;
  font-weight: 600;
  color: #3498db;
}

.students-panel {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin-bottom: 2rem;
}

.students-panel h2 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.students-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.student-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #27ae60;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.student-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.student-card.selected {
  border-left-color: #e74c3c;
  background-color: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.student-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.student-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.2rem;
}

.student-id {
  font-size: 14px;
  color: #666;
  margin-top: 2px;
  display: block;
}

.student-id-detail {
  font-size: 16px;
  color: #666;
  font-weight: normal;
}

.evaluation-count {
  font-size: 0.85rem;
  color: #7f8c8d;
  background-color: #ecf0f1;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
}

.student-average {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background-color: #eef2f7;
  border-radius: 6px;
}

.average-label {
  font-size: 0.9rem;
  color: #7f8c8d;
}

.average-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: #27ae60;
}

.student-categories {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.student-category-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.category-name {
  font-size: 0.85rem;
  color: #7f8c8d;
}

.category-bar-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-bar {
  height: 8px;
  background-color: #3498db;
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

.category-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  min-width: 24px;
  text-align: right;
}

@media (max-width: 992px) {
  .admin-content {
    flex-direction: column;
  }

  .students-grid {
    grid-template-columns: 1fr;
  }
}
.all_scores_tab_container {
  width: 100%;
  overflow-x: auto;
}

table.tab-all-scores {
  width: 100%;
  border-collapse: collapse;
}

table.tab-all-scores td,
th {
  padding: 11px;
  text-align: center;
}
table.tab-all-scores tr:nth-child(2n) {
  background: #eee;
}

table.tab-all-scores tr {
  border: 1px solid #dfdfdf;
}

table.tab-all-scores thead tr {
  background: #eeeeee;
}
.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

img.login-logo {
  height: 9rem;
}
@media only screen and (max-width: 530px) {
  .login-form-container {
    height: 100dvh;
    width: 100%;
  }
}
.login-header {
  margin-top: 2rem;
}

img.panel-logo {
  height: 5rem;
}

.panel-header {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 18px 2rem;
}

.ph-title {
  font-size: 17pt;
  font-weight: bold;
}

.ph-sub-title {
  font-size: 11pt;
}

header.judge-header h1 {
  font-size: 14pt;
  font-weight: normal;
}
header.admin-header h1 {
  font-size: 14pt;
  font-weight: normal;
}
header.admin-header h1 {
  font-size: 14pt;
  font-weight: normal;
}

table.tab-all-scores tbody tr:hover {
  background-color: #d4d4d4;
}

table.tab-all-scores tbody tr {
  transition: 0.12s background-color;
  cursor: pointer;
}
button.cancel-button {
  background: #d7d7d7;
  margin-top: 0.5rem;
  width: 100%;
  color: #000;
}
.eval-stat {
  display: flex;
  justify-content: end;
  padding-bottom: 1rem;
  font-size: 12pt;
  opacity: 0.8;
}
