/* WantedSansVariable 폰트를 Google Fonts CDN에서 불러옵니다. */
@import url('https://fonts.googleapis.com/css2?family=Wanted+Sans+Variable:wght@400;500;700&display=swap');

/* Tailwind CSS directives */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* CSS Custom Properties (변수) */
:root {
  --bg-primary: #17171c;
  --bg-secondary: #201f27;
  --bg-hover: #33323a;
  --text-primary: #E0E0E0;
  --text-secondary: #A0A0A0;
  --color-blue: #007BFF;
  --border-color: #201f27;
}

/* 추가적인 전역 스타일 및 유틸리티 클래스 */
body {
  font-family: 'Wanted Sans Variable', 'sans-serif';
  color: var(--text-primary);
  background-color: var(--bg-primary);
  /* Firefox를 위한 스크롤바 숨기기 */
  scrollbar-width: none;
}

/* Chrome, Safari 등을 위한 스크롤바 숨기기 */
body::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Tailwind base styles for HTML elements */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}

/* Tailwind utilities and custom CSS based on the provided HTML */

/* Background colors */
.bg-\[--bg-primary\] { background-color: var(--bg-primary); }
.bg-\[--bg-secondary\] { background-color: var(--bg-secondary); }
.bg-\[--bg-hover\] { background-color: var(--bg-hover); }
.bg-white { background-color: #fff; }
.bg-gray-800 { background-color: #2d3748; }
.bg-gray-700 { background-color: #4a5568; }
.bg-black { background-color: #000; }
.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-opacity-75 { background-color: rgba(0, 0, 0, 0.75); }
.bg-transparent { background-color: transparent; }
.bg-\[\#17171b\] { background-color: #17171b; }

/* Text colors */
.text-white { color: #fff; }
.text-gray-400 { color: #a0aec0; }
.text-gray-500 { color: #718096; }
.text-\[--text-primary\] { color: var(--text-primary); }
.text-\[--text-secondary\] { color: var(--text-secondary); }
.text-red-500 { color: #f56565; }

/* Font styles */
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Spacing and layout */
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-24 { padding-top: 6rem; }
.pt-28 { padding-top: 7rem; }
.pb-1 { padding-bottom: 0.25rem; }
.ml-auto { margin-left: auto; }
.mt-auto { margin-top: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mr-2 { margin-right: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-right: calc(0.5rem * 0); margin-left: calc(0.5rem * 1); }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-right: calc(1rem * 0); margin-left: calc(1rem * 1); }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: calc(0.25rem * 1); margin-bottom: calc(0.25rem * 0); }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: calc(1rem * 1); margin-bottom: calc(1rem * 0); }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: calc(1.5rem * 1); margin-bottom: calc(1.5rem * 0); }
.gap-4 { gap: 1rem; }

/* Flexbox and Grid */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-around { justify-content: space-around; }
.flex-shrink-0 { flex-shrink: 0; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }

/* Borders and dividers */
.border { border-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-white { border-color: #fff; }
.border-transparent { border-color: transparent; }
.border-gray-700 { border-color: #4a5568; }
.border-t { border-top-width: 1px; }
.rounded-md { border-radius: 0.375rem; }
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-tl-3xl { border-top-left-radius: 1.5rem; }
.rounded-tr-3xl { border-top-right-radius: 1.5rem; }
.rounded-bl-3xl { border-bottom-left-radius: 1.5rem; }
.rounded-br-3xl { border-bottom-right-radius: 1.5rem; }

/* Sizing */
.w-full { width: 100%; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-24 { height: 6rem; }
.h-64 { height: 16rem; }
.min-h-\[10rem\] { min-height: 10rem; }
.min-h-\[35rem\] { min-height: 35rem; }
.w-auto { width: auto; }
.max-w-screen-md { max-width: 768px; }

/* Position and z-index */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }

/* Effects */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Transitions and Animations */
.transition-all { transition-property: all; }
.transition-colors { transition-property: background-color, border-color, color, fill, stroke; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.hover\:bg-\[--bg-secondary\]:hover { background-color: var(--bg-secondary); }
.hover\:bg-\[--bg-hover\]:hover { background-color: var(--bg-hover); }
.hover\:text-white:hover { color: #fff; }
.hover\:bg-gray-700:hover { background-color: #4a5568; }
.hover\:bg-opacity-75:hover { background-color: rgba(0, 0, 0, 0.75); }

/* Custom CSS for header animation */
.header-scrolled {
  background-color: var(--bg-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Custom CSS for slide panel animation */
.slide-panel {
  transform: translateY(100%);
  visibility: hidden;
  opacity: 0;
}
.slide-panel.is-visible {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

/* Custom CSS for bottom navigation */
.invert-icon {
  filter: brightness(0) invert(1);
}

/* Custom styles for the timetable grid */
.timetable-grid > div {
  padding: 0.75rem;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.timetable-grid > div:nth-child(6n+1) {
  border-left: 1px solid var(--border-color);
}
.timetable-grid > div:nth-child(6n+1):not(:first-child) {
  background-color: var(--bg-primary);
}
.timetable-grid > div:nth-child(-n+6) {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

/* Media queries for responsiveness */
@media (min-width: 640px) {
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .md\:pt-28 { padding-top: 7rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:text-sm { font-size: 0.875rem; }
  .md\:h-10 { height: 2.5rem; }
}
