/* General Page */
body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

/* Branding Header */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.brand-logo {
  height: 48px;
  width: auto;
}

.brand-title {
  font-size: 26px;
  font-weight: bold;
  color: #2c3e50;
  font-family: 'Segoe UI', sans-serif;
}

/* Container Box */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1 {
  text-align: center;
  color: #333333;
  margin-bottom: 20px;
}

/* Input Field */
input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  margin-bottom: 20px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  box-sizing: border-box;
}

/* Button */
button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Card Style */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  margin: 30px auto;
  max-width: 700px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.5s ease-in-out;
}

/* Card Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.card h3,
.card h4 {
  margin-top: 0;
  color: #222;
  text-align: left;
}

.card p {
  text-align: left;
  color: #333;
  margin: 8px 0;
}

/* Student Photo */
.card img {
  max-width: 130px;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Assignment Status Badges */
.assignment-status {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.assignment-status span {
  background: #eaeaea;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
}

/* Links */
.card a {
  display: inline-block;
  margin-top: 10px;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.card a:hover {
  text-decoration: underline;
}

/* Chart */
.chart-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.chart-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 120px;
  text-align: center;
}

.chart-item p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #333;
}

canvas {
  max-width: 100%;
  height: auto !important;
}

/* Spinner */
.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

.hidden {
  display: none;
}

/* Toast */
.toast {
  visibility: hidden;
  min-width: 220px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 14px;
  position: fixed;
  z-index: 999;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

/* CAPTCHA STYLES */
.captcha-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.captcha-preview {
  background-color: #f0f0f0;
  padding: 10px 20px;
  font-family: "Courier New", monospace; /* Monospace makes it look like code */
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 6px;
  color: #333;
  border: 1px dashed #ccc;
  border-radius: 6px;
  user-select: none; /* Prevents copying the text */
  text-decoration: line-through; /* Adds a line through to confuse bots */
  min-width: 120px;
  text-align: center;
}

.refresh-btn {
  width: auto;
  padding: 8px 12px;
  background-color: #6c757d;
  font-size: 18px;
  border-radius: 6px;
}

.refresh-btn:hover {
  background-color: #5a6268;
}

#captcha-input {
  text-align: center;
  letter-spacing: 2px;
}
