:root {
  --primary-color: #10b981;
  --primary-hover-color: #059669;
  --primary-light: #34d399;
  --special-color: #ef4444;
  --submission-bg: #fff7ed;
  --submission-color: #ea580c;
  --text-color: #1f2937;
  --text-light-color: #6b7280;
  --border-color: #e5e7eb;
  --background-color: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, #f3f4f6 100%);
  --card-background-color: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 185, 129, 0.08), 0 2px 4px rgba(16, 185, 129, 0.04);
  --shadow-lg: 0 10px 25px rgba(16, 185, 129, 0.12), 0 4px 10px rgba(16, 185, 129, 0.06);
  --shadow-hover: 0 20px 40px rgba(16, 185, 129, 0.15), 0 8px 16px rgba(16, 185, 129, 0.08);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;

  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-back: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
  --duration-slow: 0.35s;
  --duration-slower: 0.5s;
}

body.dark-mode {
  --primary-color: #d4af37;
  --primary-hover-color: #b8951e;
  --primary-light: #f0d76a;
  --text-color: #f9fafb;
  --text-light-color: #9ca3af;
  --border-color: #374151;
  --background-color: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #050505 100%);
  --card-background-color: #1a1a1a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.7), 0 4px 10px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.8), 0 8px 16px rgba(0, 0, 0, 0.7);
  --submission-bg: linear-gradient(135deg, #2a1f0a 0%, #4a3a1a 50%, #2a1f0a 100%);
  --submission-color: #d4af37;
}

body.dark-mode .header {
  background: rgba(20, 20, 20, 0.95);
  border-bottom-color: rgba(212, 175, 55, 0.3);
}

body.dark-mode .subject-column {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border-color: rgba(212, 175, 55, 0.25);
}

body.dark-mode .subject-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #151515 50%, #0d0d0d 100%);
  border-bottom-color: rgba(212, 175, 55, 0.2);
}

body.dark-mode .homework-item {
  border-color: transparent;
}

body.dark-mode .homework-item:hover {
  background-color: rgba(212, 175, 55, 0.08);
}

body.dark-mode .homework-item:not(.needs-submission) {
  border-color: rgba(212, 175, 55, 0.08);
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.92) 0%, rgba(13, 13, 13, 0.98) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

body.dark-mode .modal, 
body.dark-mode .editor-modal {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border-color: rgba(212, 175, 55, 0.3);
}

body.dark-mode .modal-input, 
body.dark-mode .editor-textarea {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  border-color: rgba(212, 175, 55, 0.25);
  color: var(--text-color);
}

body.dark-mode .modal-input:focus, 
body.dark-mode .editor-textarea:focus {
  background: #1a1a1a;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.15), 0 4px 16px rgba(212, 175, 55, 0.12);
}

body.dark-mode .quick-insert-bar {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  border-color: rgba(212, 175, 55, 0.25);
}

body.dark-mode .button.quick-btn,
body.dark-mode .button.date-nav {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f9fafb;
  text-shadow: none;
  animation: none;
}

body.dark-mode .button.quick-btn::before,
body.dark-mode .button.date-nav::before {
  display: none;
}

body.dark-mode .button.quick-btn:hover,
body.dark-mode .button.date-nav:hover:not(:disabled) {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  color: #f9fafb;
}

body.dark-mode .button.quick-btn .quick-tag {
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .button.quick-btn:hover .quick-tag {
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .footer {
  border-top-color: rgba(212, 175, 55, 0.2);
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.6) 100%);
}

body.dark-mode .global-loader {
  background-color: rgba(10, 10, 10, 0.9);
}

body.dark-mode .spinner {
  border-color: rgba(212, 175, 55, 0.2);
  border-top-color: var(--primary-color);
}

body.dark-mode .toggle-switch {
  background: #333;
}

body.dark-mode .settings-modal {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border-color: rgba(212, 175, 55, 0.3);
}

body.dark-mode .theme-option:hover {
  border-color: var(--primary-color);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.2);
}

body.dark-mode .theme-option.active {
  border-color: var(--primary-color);
  background: rgba(212, 175, 55, 0.12);
}

body.dark-mode .subject-column:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

body.dark-mode .button:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.3);
}

body.dark-mode .button.date-nav:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.25);
}

.settings-btn {
  background: transparent;
  color: #9ca3af;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out-back), 
              color var(--duration-normal) var(--ease-smooth),
              background var(--duration-normal) var(--ease-smooth);
  padding: 0;
  flex-shrink: 0;
  margin-left: 4px;
}

body.dark-mode .settings-btn {
  color: #9ca3af;
}

.settings-btn:hover {
  color: #6b7280;
  background: rgba(0, 0, 0, 0.05);
  transform: rotate(45deg) scale(1.1);
}

body.dark-mode .settings-btn:hover {
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.05);
}

.settings-btn .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.settings-modal {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  padding: 36px;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 500px;
  animation: modalSlideIn var(--duration-slow) var(--ease-out-back);
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  will-change: transform, opacity;
  margin: auto 0;
}

body.dark-mode .settings-modal {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-color: rgba(75, 85, 99, 0.8);
}

.settings-modal h2 {
  margin-top: 0;
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-color);
}

.settings-item {
  margin-bottom: 28px;
  display: block;
}

.settings-item label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-color);
}

.theme-options {
  display: flex;
  gap: 12px;
}

.theme-option {
  flex: 1;
  background: var(--card-background-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out-back),
              border-color var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  will-change: transform;
}

.theme-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.15);
}

.theme-option.active {
  border-color: var(--primary-color);
  background: rgba(16, 185, 129, 0.1);
}

.theme-option .theme-icon {
  width: 32px;
  height: 32px;
  color: var(--text-color);
}

.theme-option span {
  font-weight: 500;
  color: var(--text-color);
}

.font-size-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.font-size-display {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  min-width: 60px;
  text-align: center;
}

.font-size-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border-color);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.font-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.font-size-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* 确保设置模态中的各项布局正确 */
.settings-item.theme-setting {
  display: block;
}

.settings-item.font-size-setting {
  display: block;
}

.settings-item.toggle-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(52, 211, 153, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

body.dark-mode::before {
  background: 
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(230, 200, 88, 0.05) 0%, transparent 50%);
}

[v-cloak] {
  display: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--shadow-sm);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1.5px solid rgba(226, 232, 240, 0.8);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.5px;
  position: relative;
  transition: transform var(--duration-normal) var(--ease-out-back);
  cursor: default;
  animation: logoPopIn var(--duration-slower) var(--ease-out-back);
}

body.dark-mode .logo {
  background: linear-gradient(135deg, #b8951e 0%, #d4af37 25%, #f0d76a 50%, #d4af37 75%, #c9a227 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoPopIn var(--duration-slower) var(--ease-out-back), goldShine 5s ease-in-out infinite;
}

.logo:hover {
  transform: scale(1.05);
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 2px;
  opacity: 0.3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out-quint),
              opacity var(--duration-normal) var(--ease-smooth);
}

.logo:hover::after {
  opacity: 0.8;
  transform: scaleX(1);
}

@keyframes logoPopIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--shadow-sm);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1.5px solid rgba(226, 232, 240, 0.8);
  animation: headerSlideDown var(--duration-slower) var(--ease-out-quart);
}

@keyframes headerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out-back),
              box-shadow var(--duration-normal) var(--ease-smooth),
              background var(--duration-normal) var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  will-change: transform;
}

body.dark-mode .button:not(.secondary) {
  background: linear-gradient(135deg, #b8951e 0%, #d4af37 25%, #f0d76a 45%, #d4af37 70%, #c9a227 100%);
  background-size: 200% 200%;
  color: #1a1a1a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: goldShine 4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

body.dark-mode .button:not(.secondary)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25) 30%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.25) 70%,
    transparent
  );
  transform: skewX(-25deg);
  animation: buttonShine 6s ease-in-out infinite;
}

@keyframes goldShine {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes buttonShine {
  0%, 5% {
    left: -100%;
  }
  25%, 100% {
    left: 150%;
  }
}

body.dark-mode .button:not(.secondary):hover {
  background: linear-gradient(135deg, #a8861a 0%, #b8951e 25%, #d4af37 45%, #c9a227 70%, #b8951e 100%);
  background-size: 200% 200%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.4);
}

body.dark-mode .button.secondary {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #f9fafb;
  text-shadow: none;
  animation: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .button.secondary::before {
  display: none;
}

body.dark-mode .button.secondary:hover {
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

body:not(.dark-mode) .button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  transform: translate(-50%, -50%);
  transition: width var(--duration-slow) var(--ease-out-quint),
              height var(--duration-slow) var(--ease-out-quint);
}

body:not(.dark-mode) .button:active::before {
  width: 200px;
  height: 200px;
}

.button:hover {
  background: linear-gradient(135deg, var(--primary-hover-color) 0%, #047857 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.2);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out-quart);
}

.button:hover .icon {
  transform: scale(1.15);
}

.btn-text {
  white-space: nowrap;
}

.button.secondary {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  border: none;
}

.button.secondary:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.button:disabled::before {
  display: none;
}

.main-content {
  padding: 32px 0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
  animation: toolbarFadeIn var(--duration-slower) var(--ease-out-quart) 0.1s both;
}

@keyframes toolbarFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.date-selector {
  display: flex;
  align-items: center;
  gap: 16px;
}

.current-date {
  font-size: 20px;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
  color: var(--text-color);
  transition: transform var(--duration-normal) var(--ease-out-back),
              color var(--duration-normal) var(--ease-smooth);
}

.current-date:hover {
  transform: scale(1.05);
}

.button.date-nav {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  color: #64748b;
  border: 2px solid #e2e8f0;
  padding: 12px;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.button.date-nav .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.button.date-nav:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.12);
  box-shadow: var(--shadow-md), 0 0 20px rgba(16, 185, 129, 0.2);
}

.button.date-nav:hover .icon {
  transform: scale(1.15);
}

.button.date-nav .icon {
  transition: transform var(--duration-normal) var(--ease-out-back);
}

.button.date-nav:disabled {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #cbd5e1;
  border-color: #f1f5f9;
}

.today-info {
  color: var(--text-light-color);
  margin: 0;
  font-size: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  animation: contentGridFadeIn var(--duration-slower) var(--ease-out-quart) 0.2s both;
}

@keyframes contentGridFadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subject-column {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid #f1f5f9;
  overflow: hidden;
  transition: transform var(--duration-slow) var(--ease-out-back),
              box-shadow var(--duration-slow) var(--ease-smooth),
              border-color var(--duration-slow) var(--ease-smooth);
  display: flex;
  flex-direction: column;
  min-height: 340px;
  position: relative;
  will-change: transform;
}

.subject-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-color));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity var(--duration-normal) var(--ease-smooth),
              transform var(--duration-slower) var(--ease-out-quint);
}

.subject-column:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: var(--shadow-hover), 0 0 40px rgba(16, 185, 129, 0.1);
  border-color: #e5e7eb;
}

.subject-column:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.subject-header {
  padding: 20px 26px;
  border-bottom: 1.5px solid #f8fafc;
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #f8fafc 100%);
  flex-shrink: 0;
  position: relative;
}

.subject-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 26px;
  right: 26px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.15;
}

.subject-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.3px;
}

.homework-list {
  list-style: none;
  padding: 14px 26px 28px;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.homework-item {
  padding: 13px 14px;
  border: 1px solid transparent;
  font-size: var(--homework-font-size, 15px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: background-color var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-out-quart),
              border-radius var(--duration-normal) var(--ease-smooth),
              padding var(--duration-normal) var(--ease-smooth),
              margin var(--duration-normal) var(--ease-smooth);
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  animation: slideInUp var(--duration-slower) var(--ease-out-back) forwards;
  will-change: transform, opacity;
}

.homework-item:not(.needs-submission) {
  margin: 4px 0;
  border-color: rgba(226, 232, 240, 0.75);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.homework-item:nth-child(1) { animation-delay: 0s; }
.homework-item:nth-child(2) { animation-delay: 0.06s; }
.homework-item:nth-child(3) { animation-delay: 0.12s; }
.homework-item:nth-child(4) { animation-delay: 0.18s; }
.homework-item:nth-child(5) { animation-delay: 0.24s; }
.homework-item:nth-child(6) { animation-delay: 0.3s; }
.homework-item:nth-child(7) { animation-delay: 0.36s; }
.homework-item:nth-child(8) { animation-delay: 0.42s; }
.homework-item:nth-child(9) { animation-delay: 0.48s; }
.homework-item:nth-child(10) { animation-delay: 0.54s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.homework-item:hover {
  background-color: #f8fafc;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
  transform: translateX(4px);
}

.homework-item:last-child {
  border-bottom: none;
}

.homework-text {
  flex-grow: 1;
  white-space: pre-wrap;
}

.homework-item.needs-submission {
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96) 0%, rgba(255, 237, 213, 0.98) 100%);
  border-radius: 14px;
  margin: 8px -14px;
  padding: 14px 18px;
  border-bottom-color: transparent;
  border: 1px solid rgba(234, 88, 12, 0.14);
  border-left: 4px solid var(--submission-color);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.08);
}

.homework-item.needs-submission::after {
  content: "需提交";
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(234, 88, 12, 0.18);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.08);
}

body.dark-mode .homework-item.needs-submission {
  background: linear-gradient(135deg, rgba(42, 31, 10, 0.92) 0%, rgba(74, 58, 26, 0.98) 100%);
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-left: 4px solid var(--submission-color);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

body.dark-mode .homework-item.needs-submission::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

body.dark-mode .homework-item.needs-submission::after {
  color: var(--submission-color);
  background: rgba(212, 175, 55, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  box-shadow: none;
}

.homework-item.is-special .homework-text {
  color: var(--special-color);
  font-weight: 700;
}

.homework-item.is-special::before {
  content: "⚠";
  color: var(--special-color);
  font-size: 18px;
  order: -1;
  margin-right: 8px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.no-homework {
  color: #94a3b8;
  text-align: center;
  margin: auto;
  font-size: 14px;
  font-weight: 500;
}

.global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3.5px solid #e2e8f0;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.icon.spin {
  animation: spin 1s linear infinite;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 0;
  overflow-y: auto;
  z-index: 200;
}

.modal, .editor-modal {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  padding: 36px;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  animation: modalSlideIn var(--duration-slow) var(--ease-out-back);
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  will-change: transform, opacity;
  margin: auto 0;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal h3, .editor-modal h2 {
  margin-top: 0;
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-color);
}

.modal-input, .editor-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 24px;
  transition: border-color var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-out-quart),
              background var(--duration-normal) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-out-quart);
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
}

.modal-input:focus, .editor-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.15), 0 4px 16px rgba(16, 185, 129, 0.12);
  background: #ffffff;
  transform: translateY(-1px);
}

.modal-actions, .editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.error-message {
  color: #dc2626;
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(239, 68, 68, 0.08) 100%);
  border-radius: 8px;
  border-left: 3px solid #dc2626;
}

.editor-modal {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden;
}

.editor-modal h2 {
  flex-shrink: 0;
}

.editor-scroll-content {
  overflow-y: auto;
  overflow-x: hidden;
  flex-grow: 1;
  margin-right: -8px;
  padding-right: 8px;
}

.editor-scroll-content::-webkit-scrollbar {
  width: 6px;
}

.editor-scroll-content::-webkit-scrollbar-track {
  background: transparent;
}

.editor-scroll-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

body.dark-mode .editor-scroll-content::-webkit-scrollbar-thumb {
  background: #4b5563;
}

.editor-scroll-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

body.dark-mode .editor-scroll-content::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

.editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.editor-tabs,
.editor-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editor-tab,
.editor-mode-btn {
  border: 1.5px solid #dbe4ee;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #475569;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.editor-mode-switch {
  gap: 1px;
  padding: 1px;
  border-radius: 6px;
  background: #dbe4ee;
  flex-wrap: nowrap;
}

.editor-mode-btn {
  border: none;
  border-radius: 5px;
  background: #f8fafc;
  color: #64748b;
  box-shadow: none;
}

.editor-tab:hover,
.editor-mode-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.35);
}

.editor-tab.active,
.editor-mode-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.22);
}

.quick-insert-panel {
  position: relative;
  margin-bottom: 24px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.quick-insert-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #60a5fa, var(--primary-color));
  opacity: 0.6;
}

.quick-insert-panel.text-mode::before {
  background: linear-gradient(90deg, var(--primary-color), rgba(59, 130, 246, 0.65), var(--primary-color));
}

.quick-insert-panel.text-mode .quick-btn {
  min-width: 74px;
}

.quick-insert-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
  position: relative;
  flex-wrap: wrap;
}

.quick-insert-bar.is-collapsed {
  justify-content: flex-start;
}

.quick-insert-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.button.quick-btn {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  color: #334155;
  border: 1.5px solid #e2e8f0;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.button.quick-btn:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35), 0 4px 8px rgba(16, 185, 129, 0.15);
}

.button.quick-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.quick-expand-btn {
  margin-left: auto;
}

.quick-expand-icon {
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.quick-expand-icon.open {
  transform: rotate(180deg);
}

.quick-insert-dropdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.button.quick-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid #dbe4ee;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.button.quick-chip:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border-color: transparent;
}

.quick-text {
  white-space: nowrap;
}

.quick-icon {
  width: 16px;
  height: 16px;
}

.editor-panel {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.85) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
}

.editor-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.editor-panel-header h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text-color);
}

.editor-panel-tip {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.editor-subject label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-color);
}

.text-editor-shell {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: stretch;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  font-size: 15px;
  line-height: 1.6;
}

.editor-line-numbers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  padding: 14px 12px 14px 10px;
  background: rgba(248, 250, 252, 0.95);
  border-right: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: inherit;
  line-height: inherit;
  font-variant-numeric: tabular-nums;
  user-select: none;
  overflow: hidden;
}

.editor-line-number {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: calc(1em * 1.6);
}

.editor-textarea {
  height: 200px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}

.editor-textarea-single {
  min-height: 320px;
  margin-bottom: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: inherit;
  line-height: inherit;
  padding: 14px 18px;
}

.visual-editor-wrap {
  min-height: 320px;
}

.visual-editor-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.editor-homework-list {
  padding: 10px 22px 18px;
  overflow: visible;
}

.editor-homework-item {
  opacity: 1;
  transform: none;
  animation: none;
  gap: 12px;
  align-items: flex-start;
}

.editor-homework-item:hover {
  transform: none;
}

.editor-homework-item.needs-submission::after {
  content: none;
}

.editor-item-number {
  width: 2.2em;
  padding-top: 11px;
  color: #64748b;
  font-weight: 700;
  flex-shrink: 0;
  text-align: right;
}

.editor-item-input {
  flex: 1;
  min-height: 44px;
  height: auto;
  resize: none;
  border: 1.5px solid #dbe4ee;
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  line-height: 1.6;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.9);
  transition: all var(--duration-normal) var(--ease-smooth);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.editor-item-input::-webkit-scrollbar {
  display: none;
}

.editor-item-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
  background: #ffffff;
}

.editor-item-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.editor-item-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}

.editor-item-delete {
  border: none;
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.editor-item-delete:hover {
  background: rgba(239, 68, 68, 0.16);
  transform: translateY(-1px);
}

.visual-editor-empty {
  min-height: 320px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #64748b;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.7) 0%, rgba(255, 255, 255, 0.95) 100%);
}

body.dark-mode .editor-tab,
body.dark-mode .editor-mode-btn,
body.dark-mode .button.quick-chip {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  color: #cbd5e1;
  border-color: rgba(71, 85, 105, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

body.dark-mode .editor-mode-switch {
  background: rgba(71, 85, 105, 0.95);
}

body.dark-mode .editor-mode-btn {
  background: #1e293b;
  color: #cbd5e1;
}

body.dark-mode .quick-insert-panel {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  border-color: rgba(212, 175, 55, 0.25);
}

body.dark-mode .quick-insert-panel::before {
  background: linear-gradient(90deg, var(--primary-color), #e6c858, var(--primary-color));
}

body.dark-mode .editor-tab.active,
body.dark-mode .editor-mode-btn.active,
body.dark-mode .button.quick-chip:hover {
  color: #1a1a1a;
}

body.dark-mode .editor-panel {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-color: rgba(71, 85, 105, 0.75);
}

body.dark-mode .editor-panel-tip,
body.dark-mode .visual-editor-empty {
  color: #94a3b8;
}

body.dark-mode .text-editor-shell {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.98) 100%);
  border-color: rgba(71, 85, 105, 0.75);
}

body.dark-mode .editor-line-numbers {
  background: rgba(15, 23, 42, 0.92);
  border-right-color: rgba(71, 85, 105, 0.75);
  color: #64748b;
}

body.dark-mode .quick-insert-dropdown {
  border-top-color: rgba(71, 85, 105, 0.8);
}

body.dark-mode .visual-editor-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-color: rgba(71, 85, 105, 0.75);
}

body.dark-mode .editor-item-input {
  background: rgba(15, 23, 42, 0.88);
  color: #e5e7eb;
  border-color: rgba(71, 85, 105, 0.85);
}

body.dark-mode .editor-item-input:focus {
  background: rgba(15, 23, 42, 1);
}

body.dark-mode .editor-item-check {
  color: #cbd5e1;
}

body.dark-mode .editor-item-delete {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

body.dark-mode .editor-item-delete:hover {
  background: rgba(239, 68, 68, 0.28);
}

body.dark-mode .visual-editor-empty {
  border-color: rgba(71, 85, 105, 0.8);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.82) 0%, rgba(15, 23, 42, 0.96) 100%);
}

.footer {
  text-align: center;
  padding: 40px 0;
  color: #94a3b8;
  font-size: 14px;
  margin-top: 48px;
  border-top: 1.5px solid #f1f5f9;
  background: linear-gradient(180deg, transparent 0%, rgba(248, 250, 252, 0.5) 100%);
}

.footer p {
  margin: 6px 0;
}

.footer-authors {
  font-weight: 500;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .date-selector {
    justify-content: space-between;
  }

  .button.date-nav {
    background: transparent;
    border: none;
    border-radius: 0;
    width: auto;
    height: auto;
    padding: 8px;
    box-shadow: none;
  }

  .button.date-nav:hover:not(:disabled) {
    background: transparent;
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
  }

  .button.date-nav:disabled {
    background: transparent;
  }

  .editor-toolbar,
  .editor-panel-header,
  .editor-homework-item {
    flex-direction: column;
    align-items: stretch;
  }

  .text-editor-shell {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .quick-expand-btn {
    margin-left: 0;
  }

  .editor-item-check {
    padding-top: 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 移动端隐藏编辑和设置按钮 */
  .header-actions .button.icon-btn:first-child,
  .settings-btn {
    display: none !important;
  }

  /* 移动端刷新和导出按钮样式 */
  .header-actions {
    justify-content: flex-end;
    gap: 8px;
  }

  .header-actions .button.icon-btn {
    background: transparent;
    border: none;
    border-radius: 0;
    width: auto;
    height: auto;
    padding: 8px;
    box-shadow: none;
    flex: 0 0 auto;
    color: var(--primary-color);
  }

  .header-actions .button.icon-btn .btn-text {
    display: none;
  }

  .header-actions .button.icon-btn:hover:not(:disabled) {
    background: transparent;
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
  }

  .header-actions .button.icon-btn:disabled {
    background: transparent;
  }

  .current-date {
    min-width: auto;
    font-size: 18px;
  }
}

.scale-container {
  transition: transform var(--duration-slower) var(--ease-out-back);
  transform-origin: top center;
  will-change: transform;
  width: 100%;
  overflow: visible;
}

.toggle-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-label label {
  margin-bottom: 0;
}

.toggle-desc {
  font-size: 13px;
  color: var(--text-light-color);
  font-weight: 400;
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: #e5e7eb;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-smooth);
  flex-shrink: 0;
}

.toggle-switch.active {
  background: var(--primary-color);
}

.toggle-knob {
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform var(--duration-normal) var(--ease-out-back);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch.active .toggle-knob {
  transform: translateX(24px);
}



.gitlab-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-smooth);
}

.gitlab-link:hover {
  color: var(--primary-color);
}

.gitlab-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
