/* style.css - Updated Modern UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Popup Styles */
body {
  font-family: 'Inter', sans-serif;
  padding: 20px;
  width: 320px;
  background-color: #f9fafb;
  color: #111827;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

h3::before {
  content: "📊";
  font-size: 20px;
}

.toggle-container {
  background-color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-wrapper span {
  font-weight: 500;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.toggle-switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
  background-color: #4f46e5;
}

input:checked+.slider:before {
  transform: translateX(22px);
}

#messageBox {
  background-color: #f0fdfa;
  color: #0f766e;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#messageBox::before {
  content: "🔄";
}

.button-group {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  background-color: white;
  color: #111827;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

button:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

/* Content Script Attendance Box Styles */
.rit-attendance-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  padding: 0;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.attendance-header {
  padding: 16px 20px;
  background: #4f46e5;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.attendance-header h3 {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  color: white;
}

.attendance-content {
  padding: 20px;
}

.attendance-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card {
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.stat-card p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  margin: 6px 0 0;
  color: #111827;
}

.subject-name {
  font-weight: 500;
  margin-bottom: 20px;
  color: #374151;
  font-size: 15px;
}

.attendance-percent {
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 16px;
}

.attendance-percent p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.percent-value {
  font-size: 32px;
  font-weight: 700;
  margin: 6px 0 0;
}

.percent-good {
  color: #059669;
}

.percent-bad {
  color: #dc2626;
}

.attendance-warning {
  background: #fef2f2;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.warning-icon {
  font-size: 24px;
  color: #dc2626;
}

.warning-text {
  color: #991b1b;
  font-size: 14px;
  margin: 0;
}

.warning-count {
  font-size: 18px;
  font-weight: 600;
}