:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-strong: #eef2ff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-soft: #dbeafe;
  --shadow: 0 20px 70px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 0;
  color: var(--text);
}

p,
span,
label,
input,
button,
a {
  font-family: 'Inter', system-ui, sans-serif;
}

main {
  flex: 1;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}

.top-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.menu-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--text);
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.6rem;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.button-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 12px 22px rgba(29, 78, 216, 0.22);
}

.button-secondary {
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #2563eb;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.08);
}

.button-secondary:hover {
  background: #f8fbff;
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.12);
}

.button-link {
  background: transparent;
  color: var(--primary);
  padding: 0.9rem 0;
  border: none;
  box-shadow: none;
}

.section {
  padding: 4rem 0;
}

.section-gray {
  background: #f8fafc;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  min-height: 80vh;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.05;
  margin: 1rem 0 1.25rem;
}

.hero-copy p {
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.8;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary);
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-card,
.card-panel,
.dashboard-card,
.form-card,
.auth-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2rem;
}

.hero-card .tag {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.hero-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
}

.feature-list {
  display: grid;
  gap: 1.25rem;
}

.feature-list strong {
  display: block;
  margin-bottom: 0.35rem;
}

.section-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: white;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}

.step-number {
  width: fit-content;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-card h3 {
  margin: 0 0 0.75rem;
}

.step-card p {
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  margin-top: auto;
  background: #f3f4f6;
  color: #1f2937;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 3.5rem 0 2rem;
}

.site-footer .container {
  max-width: 1200px;
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
}

.footer-logo {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 0.15rem;
}

.footer-brand-name {
  font-size: clamp(1.8rem, 2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #111827;
}

.footer-tagline {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4b5563;
  font-weight: 500;
}

.footer-build {
  margin: 0.4rem 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
}

.tech-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0.5rem 0 1.25rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #1f2937;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.social-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.social-icon:hover {
  transform: translateY(-2px);
  background: #dfe3ea;
  color: #111827;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.94rem;
  color: #374151;
}

.footer-contact a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-copyright {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
  color: #4b5563;
  font-size: 0.88rem;
}

.site-footer.minimal-footer {
  padding: 1.25rem 0 0.8rem;
  border-top: 0;
}

.site-footer.minimal-footer .footer-copyright {
  padding-top: 0.5rem;
  border-top: 0;
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .site-footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-brand-name {
    font-size: 1.5rem;
  }

  .footer-tagline,
  .footer-build,
  .footer-contact {
    font-size: 0.88rem;
  }

  .tech-socials {
    gap: 0.7rem;
  }
}

.auth-page {
  padding: 4rem 0;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.auth-card {
  padding: 2.25rem;
}

.auth-copy h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.auth-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.form-card {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 0;
}

label {
  display: grid;
  gap: 0.65rem;
  color: var(--text);
  font-size: 0.95rem;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: white;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-footer {
  margin: 1rem 0 0;
  color: var(--muted);
}

.auth-footer a {
  color: var(--primary);
}

.card-panel {
  padding: 2rem;
}

.illustration-icon {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 1.25rem;
  background: var(--primary-soft);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.auth-illustration h2 {
  margin: 0 0 1rem;
}

.auth-illustration p {
  color: var(--muted);
  line-height: 1.8;
}

.form-row {
  display: flex;
  align-items: center;
}

.justify-end {
  justify-content: flex-end;
}

.link-small {
  color: var(--primary);
  font-size: 0.95rem;
}

.dashboard-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: var(--surface);
}

.sidebar {
  background: white;
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.sidebar-brand {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.75rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.dashboard-main {
  padding: 2rem;
  flex: 1;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sidebar-toggle {
  display: none;
  border: none;
  background: var(--surface);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.dashboard-content {
  display: grid;
  gap: 1.5rem;
}

.dashboard-card {
  padding: 2rem;
}

.dashboard-card h2 {
  margin-top: 0;
}

.timetable-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.timetable-table th {
  background: linear-gradient(180deg, #2563EB 0%, #4F8EF7 100%);
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  box-shadow: inset 0 -6px 10px rgba(255,255,255,0.15);
}

.timetable-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.timetable-table tr:nth-child(even) td {
  background: #f9fafb;
}

.timetable-table td:first-child {
  font-weight: 600;
  background: #eff6ff;
}

* {
  transition: all 0.2s ease;
}

.card-panel {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-toggle-btn {
  display: none;
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  min-height: 44px;
}

@media (max-width: 960px) {
  .hero-grid,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    gap: 0.75rem;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: flex;
  }

  .top-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 1rem;
  }

  .top-nav.open {
    display: flex;
  }

  .site-header {
    position: relative;
    background: white;
    border-bottom: 1px solid var(--border);
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 20;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    padding: 1.5rem;
  }

  .sidebar-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .sidebar {
    display: none;
    width: 100%;
  }

  .sidebar.open {
    display: block;
  }

  .sidebar-toggle-btn {
    display: inline-block;
  }

  .timetable-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .timetable-table {
    font-size: 12px;
  }

  .timetable-table th,
  .timetable-table td {
    padding: 6px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100%, calc(100% - 1.5rem));
  }

  .hero-copy h1,
  .auth-copy h1 {
    font-size: 2.25rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .footer-inner {
    align-items: center;
  }
}
.break-cell {
  background: #F3F4F6 !important;
  color: #9CA3AF;
  font-style: italic;
}
.button-danger {
  background: #FFFFFF;
  color: #DC2626;
  border: 1px solid #DC2626;
}
.button-danger:hover {
  background: #DC2626;
  color: white;
}

#classesContainer {
  display: grid;
  gap: 20px;
  margin: 1.5rem 0;
}

#classesContainer > .card-panel {
  position: relative;
  padding: 20px;
  border: 1px solid #E5E7EB;
  border-left: 4px solid #2563EB;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

#classesContainer .classHeader {
  padding-right: 40px;
}

#classesContainer .classHeader input.className {
  font-size: 1.1rem;
  font-weight: 700;
}

#classesContainer .subjectsHeading {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #E5E7EB;
  color: #6B7280;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

#classesContainer .subjectsContainer {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

#classesContainer .subject-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #F9FAFB;
  animation: fadeIn 0.3s ease both;
}

#classesContainer .subject-row input {
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
}

#classesContainer .subject-row .periodsField {
  min-width: 0;
  gap: 3px;
  color: #6B7280;
  font-size: 0.72rem;
}

#classesContainer .subject-row .periodsField input {
  font-size: 0.9rem;
}

#classesContainer .removeClassBtn,
#classesContainer .removeSubjectBtn {
  display: inline-grid;
  place-items: center;
  flex: none;
  padding: 0;
  color: #6B7280;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

#classesContainer .removeClassBtn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #F3F4F6;
  font-size: 1.25rem;
}

#classesContainer .removeClassBtn:hover {
  color: #DC2626;
  background: #FEE2E2;
}

#classesContainer .removeSubjectBtn {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
}

#classesContainer .removeSubjectBtn:hover {
  color: #DC2626;
}

#classesContainer .addSubjectBtn {
  width: auto;
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  border-color: #D1D5DB;
  color: #4B5563;
  box-shadow: none;
  font-size: 0.85rem;
}

#classesContainer .addSubjectBtn:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
  box-shadow: none;
}

@media (max-width: 600px) {
  #classesContainer > .card-panel {
    padding: 18px;
  }

  #classesContainer .subject-row {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 8px;
  }

  #classesContainer .subject-row input {
    grid-column: 1;
  }

  #classesContainer .subject-row .removeSubjectBtn {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  #classesContainer .addSubjectBtn {
    width: auto;
  }
}
/* Class box and subject rows */
.class-box {
  position: relative;
  border-left: 4px solid #2563EB;
  padding-top: 24px;
  margin-bottom: 20px;
}
.subjects-label {
  margin: 16px 0 8px;
  padding-top: 12px;
  border-top: 1px solid #E5E7EB;
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.subject-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #F9FAFB;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  animation: fadeIn 0.3s ease;
}
.subject-row input {
  flex: 1;
  min-width: 0;
}
.removeClassBtn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #F3F4F6;
  color: #6B7280;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.removeClassBtn:hover {
  background: #FEE2E2;
  color: #DC2626;
}
.removeSubjectBtn {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #9CA3AF;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.removeSubjectBtn:hover {
  color: #DC2626;
}
@media (max-width: 600px) {
  .subject-row {
    flex-direction: column;
    align-items: stretch;
  }
  .removeSubjectBtn {
    align-self: flex-end;
  }
}
/* Phone-style on/off switch */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
}
.switch-row strong {
  display: block;
}
.setting-hint {
  margin: 2px 0 0;
  font-size: 13px;
  color: #6B7280;
}
.toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #D1D5DB;
  cursor: pointer;
  transition: background 0.2s ease;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.toggle-switch[aria-checked="true"] {
  background: #2563EB;
}
.toggle-switch[aria-checked="true"]::after {
  transform: translateX(22px);
}
.timing-summary {
  margin: 12px 0;
  padding: 10px 12px;
  background: #EFF6FF;
  border-radius: 8px;
  font-size: 14px;
  color: #1E3A8A;
}

/* Settings page */
.settings-main {
  min-width: 0;
}

.settings-main > h1 {
  width: min(720px, 100%);
  margin: 0 auto 24px;
  font-size: clamp(1.8rem, 3vw, 2.25rem);
}

.settings-stack {
  display: grid;
  width: min(720px, 100%);
  gap: 24px;
  margin: 0 auto;
}

.settings-card.card-panel {
  width: 100%;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.settings-card > h2 {
  margin: 0 0 20px;
  font-size: 1.05rem;
  font-weight: 600;
}

.account-info p {
  margin: 0;
  padding: 12px 0;
  color: #4b5563;
  border-bottom: 1px solid #f1f5f9;
}

.account-info p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.account-info strong {
  color: #374151;
  font-weight: 600;
}

.settings-field {
  display: block;
  min-width: 0;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
}

.settings-field > span {
  display: block;
  margin-bottom: 6px;
}

.settings-field input,
.settings-field select {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  color: #111827;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-field input:focus,
.settings-field select:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.settings-card .button {
  width: auto;
  min-height: 44px;
  margin-top: 20px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 700;
}

.settings-save-message {
  margin: 8px 0 0;
  color: #15803d;
  font-size: 0.875rem;
}

.settings-save-message:empty {
  display: none;
}

.timing-fields,
.break-options-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.switch-row {
  grid-column: 1 / -1;
  min-height: 64px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid #eef2f7;
}

.switch-row strong {
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 700;
}

.setting-hint {
  line-height: 1.45;
}

.toggle-switch {
  width: 52px;
  height: 30px;
  min-height: 30px;
  min-width: 52px;
}

.toggle-switch[aria-checked="false"] {
  background: #D1D5DB;
}

.toggle-switch[aria-checked="false"]::after {
  transform: translateX(0);
}

.toggle-switch[aria-checked="true"] {
  background: #2563EB;
}

.toggle-switch[aria-checked="true"]::after {
  transform: translateX(22px);
}

.toggle-switch:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 3px;
}

#breakOptions {
  margin-top: 18px;
  padding: 18px;
  border-left: 3px solid #2563eb;
  border-radius: 8px;
  background: #EFF6FF;
  animation: settingsBreakOptionsIn 0.25s ease both;
}

.break-options-fields > .settings-field:last-child {
  grid-column: 1 / -1;
}

@keyframes settingsBreakOptionsIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-card .timing-summary {
  margin: 18px 0 0;
  line-height: 1.5;
}

.settings-card #saveTimingBtn {
  margin-top: 16px;
}

.settings-logout-row {
  display: flex;
}

.settings-logout-row #logoutBtn2 {
  width: auto;
  margin: 0;
  border: 1px solid #dc2626;
  background: #fff;
  color: #dc2626;
  box-shadow: none;
}

.settings-logout-row #logoutBtn2:hover {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.18);
}

@media (max-width: 600px) {
  .settings-main {
    padding: 24px 16px;
  }

  .settings-card.card-panel {
    padding: 20px;
    border-radius: 14px;
  }

  .timing-fields,
  .break-options-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .break-options-fields > .settings-field:last-child {
    grid-column: auto;
  }

  .settings-card .button,
  .settings-logout-row #logoutBtn2 {
    width: 100%;
  }
}