body {
  background: #f8fafc;
  font-family: "Inter", sans-serif;
}
html.dark body {
  background: #0b1120;
}
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
html.dark .card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.sidebar-bg {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
}
html.dark .sidebar-bg {
  background: #172033;
  border-right-color: #334155;
}
.header-bg {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}
html.dark .header-bg {
  background: #172033;
  border-bottom-color: #334155;
}
.text-heading {
  color: #0f172a;
}
html.dark .text-heading {
  color: #f1f5f9;
}
.text-body {
  color: #475569;
}
html.dark .text-body {
  color: #cbd5e1;
}
.text-muted {
  color: #94a3b8;
}
html.dark .text-muted {
  color: #64748b;
}
.divider {
  border-color: #e2e8f0;
}
html.dark .divider {
  border-color: #334155;
}
.input-field {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}
.input-field:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
html.dark .input-field {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
}
.sidebar-link:hover {
  background: #f1f5f9;
  color: #334155;
}
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.1), transparent);
  color: #4f46e5;
  border-right: 3px solid #4f46e5;
}
html.dark .sidebar-link {
  color: #94a3b8;
}
html.dark .sidebar-link:hover {
  background: #0f172a;
  color: #e2e8f0;
}
html.dark .sidebar-link.active {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.2), transparent);
  color: #a5b4fc;
  border-right-color: #818cf8;
}
.icon-btn {
  padding: 0.5rem;
  border-radius: 0.75rem;
  color: #475569;
  transition: all 0.2s;
}
.icon-btn:hover {
  background: #f1f5f9;
}
html.dark .icon-btn {
  color: #cbd5e1;
}
html.dark .icon-btn:hover {
  background: #0f172a;
}
.badge-green {
  background: #dcfce7;
  color: #15803d;
}
html.dark .badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.badge-yellow {
  background: #fef3c7;
  color: #b45309;
}
html.dark .badge-yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.badge-red {
  background: #fee2e2;
  color: #b91c1c;
}
html.dark .badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}
html.dark .badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.badge-indigo {
  background: #e0e7ff;
  color: #4338ca;
}
html.dark .badge-indigo {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}
.badge-purple {
  background: #f3e8ff;
  color: #7e22ce;
}
html.dark .badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
}
.badge-pink {
  background: #fce7f3;
  color: #be185d;
}
html.dark .badge-pink {
  background: rgba(236, 72, 153, 0.15);
  color: #f9a8d4;
}
.premium-card {
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.premium-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
html.dark .premium-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.gradient-text {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.table-head {
  background: #f8fafc;
}
html.dark .table-head {
  background: #0f172a;
}
.sidebar-overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}
.notif-badge {
  animation: pulseGlow 2s infinite;
}
.modal-animate {
  animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.toast-enter {
  animation: toastSlideIn 0.3s ease-out;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 100px;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}
*:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
  border-radius: 4px;
}
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: white !important;
  }
  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}
.view-toggle-btn.active {
  background: #4f46e5;
  color: white;
}
.tab-btn.active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}
html.dark .tab-btn.active {
  color: #a5b4fc;
  border-bottom-color: #818cf8;
}

/* Notice Pinboard */
.pin-note {
  position: relative;
  padding: 20px;
  border-radius: 6px;
  transition: all 0.3s;
  transform: rotate(-1deg);
}
.pin-note:nth-child(even) {
  transform: rotate(1deg);
}
.pin-note:nth-child(3n) {
  transform: rotate(-0.5deg);
}
.pin-note:hover {
  transform: rotate(0) scale(1.03);
  z-index: 10;
}
.pin-note::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow:
    inset -2px -2px 4px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.pin-note::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #b91c1c;
  border-radius: 50%;
  z-index: 3;
}

.note-yellow {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
}
.note-blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 1px solid #3b82f6;
}
.note-pink {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  border: 1px solid #ec4899;
}
.note-green {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border: 1px solid #22c55e;
}
.note-purple {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  border: 1px solid #a855f7;
}
.note-orange {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  border: 1px solid #f97316;
}

html.dark .note-yellow {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.2),
    rgba(245, 158, 11, 0.1)
  );
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
html.dark .note-blue {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(59, 130, 246, 0.1)
  );
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}
html.dark .note-pink {
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.2),
    rgba(236, 72, 153, 0.1)
  );
  border-color: rgba(236, 72, 153, 0.4);
  color: #f9a8d4;
}
html.dark .note-green {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.2),
    rgba(34, 197, 94, 0.1)
  );
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}
html.dark .note-purple {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.2),
    rgba(168, 85, 247, 0.1)
  );
  border-color: rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
}
html.dark .note-orange {
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.2),
    rgba(249, 115, 22, 0.1)
  );
  border-color: rgba(249, 115, 22, 0.4);
  color: #fdba74;
}

.pinboard-bg {
  background-image:
    linear-gradient(
      45deg,
      #f5f3ef 25%,
      transparent 25%,
      transparent 75%,
      #f5f3ef 75%
    ),
    linear-gradient(
      45deg,
      #f5f3ef 25%,
      transparent 25%,
      transparent 75%,
      #f5f3ef 75%
    );
  background-size: 20px 20px;
  background-position:
    0 0,
    10px 10px;
  background-color: #faf7f2;
}
html.dark .pinboard-bg {
  background-image:
    linear-gradient(
      45deg,
      #1e293b 25%,
      transparent 25%,
      transparent 75%,
      #1e293b 75%
    ),
    linear-gradient(
      45deg,
      #1e293b 25%,
      transparent 25%,
      transparent 75%,
      #1e293b 75%
    );
  background-color: #0f172a;
}
