* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563EB;
  --primary-dark: #1E40AF;
  --success-color: #10B981;
  --error-color: #EF4444;
  --warning-color: #F59E0B;
  --info-color: #3B82F6;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --border-radius: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
}

.app-title {
  display: block;
  line-height: 24px;
}

.app-logo {
  max-height: 50px;
  width: auto;
  /* object-fit: contain; */
  display: block;
}


.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background-color: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-title a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

/* 로고 스타일 */
.logo-link {
  display: inline-block;
  line-height: 0;
}


.industry-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.industry-SCHOOL {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.industry-GENERAL {
  background-color: #D1FAE5;
  color: #065F46;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  transition: all 0.2s;
}

.nav-link:hover {
  background-color: var(--gray-100);
  color: var(--primary-color) !important;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  margin-right: 1rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* 로그아웃 버튼 커스텀 */
.btn-logout {
  color: var(--error-color);
  border: 1px solid var(--error-color);
  background-color: transparent;
  padding: 0.4rem 0.8rem;
  font-size: 0.813rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background-color: var(--error-color);
  color: white !important;
  box-shadow: var(--shadow-sm);
}

/* 햄버거 메뉴 버튼 */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 1rem;
  z-index: 10;
}

.hamburger-menu span {
  width: 30px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: 1px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* 모바일 네비게이션 오버레이 */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

.main-content {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.app-footer {
  background-color: white;
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline {
  background-color: white;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  background-color: var(--gray-50);
}

.btn-danger {
  background-color: var(--error-color);
  color: white;
  border-color: var(--error-color);
}

.btn-danger:hover {
  background-color: #DC2626;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.813rem;
}

.btn-block {
  width: 100%;
  text-align: center;
}

.messages-container {
  position: fixed;
  bottom: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 600px;
  
}

.alert {
  padding: 12px 30px; border-radius: 30px; color: white; font-weight: 700; box-shadow: 0 10px 25px rgba(0,0,0,0.2); animation: slideIn 0.5s ease-out; transition: opacity 0.6s ease;
}

.alert-success {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-error {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.alert-info {
  background-color: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.page-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
}

.page-subtitle {
  color: var(--gray-600);
  margin-top: 0.25rem;
}

.dashboard-container,
.page-container {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.stat-card h3 {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.dashboard-section {
  margin-top: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schedule-item {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
}

.schedule-time {
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
}

.schedule-details {
  flex: 1;
}

.schedule-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.schedule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.meta-item {
  display: inline-block;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.813rem;
  font-weight: 500;
  color: white;
}

.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background-color: var(--gray-50);
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 2px solid var(--gray-200);
  font-size: 0.875rem;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.data-table tbody tr:hover {
  background-color: var(--gray-50);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
}

.empty-state p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.form-container {
  max-width: 800px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="time"],
.form-group input[type="color"],
.form-group select,
.form-group textarea,
.form-control {
  padding: 0.625rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-section-title {
  font-weight: 600;
  color: var(--gray-900);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
  margin-top: 0.5rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.form-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0.5rem 0;
}

.color-box {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid var(--gray-300);
  vertical-align: middle;
}

.minimal-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  flex-direction: column;
}

.minimal-content {
  width: 100%;
  max-width: 500px;
  padding: 2rem;
}

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.auth-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 450px;
}

.auth-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--gray-900);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}



/* ✅ 공통 알림 메시지 (토스트 스타일) */
.alert-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: auto;
  min-width: 300px;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert {
  padding: 12px 24px;
  border-radius: 50px; /* 둥근 캡슐형 스타일 */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  font-weight: 600;
  text-align: center;
  animation: slideDown 0.4s ease-out; /* 붕 떠오르는 애니메이션 */
}

.alert-success { background: #1cc88a; color: white; border: none; }
.alert-error { background: #e74a3b; color: white; border: none; }

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


/* 탭 전용 스타일 */
.tab-item {
  padding: 0.6rem 1.2rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.tab-item.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}
.tab-item:hover { color: var(--primary-color); }

.btn-standard { min-width: 100px; height: 40px; font-weight: 600; }
.btn-standard-sm { min-width: 70px; height: 32px; font-size: 0.813rem; padding: 0 0.5rem; }
.modal-popup { display:none; position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); z-index:1000; width:450px; box-shadow: var(--shadow-lg); border-top: 5px solid var(--primary-color); padding: 2rem; background: white; border-radius: 8px; }
#resModalOverlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:999; }
.modal-footer-btns { display:flex; gap:0.75rem; justify-content: space-between; margin-top: 1.5rem; }
.badge { padding: 4px 8px; font-size: 0.75rem; font-weight: 700; color: #fff; border-radius: 4px; }

.modal-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index: 999; }
.badge-type { background-color: var(--gray-100); color: var(--gray-700); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }

/* 목표 시간 입력 강조 스타일 */
#targetHoursField input {
  border: 1px solid var(--primary-color);
  background-color: #f0f7ff;
}

#modalOverlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:999; }

#modalOverlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:999; }


/* 💡 24시간 콤팩트 시간 축 스타일 */
.fc-timegrid-slot-label-cushion {
  font-size: 0.65rem !important;
  font-weight: 400 !important;
  color: #ccc !important;
  padding-right: 6px !important;
}
.fc-timegrid-slot {
  height: 2.25rem !important; /* 💡 시간당 높이 축소 */
  border-bottom: 1px solid #f8f9fa !important;
}

/* 💡 월간 뷰 "+N개" 및 날짜 스타일 */
.fc-daygrid-more-link {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  color: #888 !important;
  margin-top: 2px !important;
  padding-left: 4px !important;
  text-decoration: none !important;
}
.fc-daygrid-day-number {
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  color: #666 !important;
  padding: 8px !important;
  text-decoration: none !important;
}

/* 팝오버(애플 스타일 팝업) */
.fc-popover {
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
  border: none !important;
}
.fc-popover-header {
  background: #fff !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #eee !important;
  border-radius: 12px 12px 0 0 !important;
}

/* 그리드 선 및 헤더 최적화 */
.fc-theme-standard .fc-scrollgrid { border: none !important; }
.fc-theme-standard td, .fc-theme-standard th { border-color: #f1f3f5 !important; }
.fc-col-header-cell { border-bottom: 1px solid #eee !important; padding: 10px 0 !important; }
.fc-col-header-cell-cushion { font-size: 0.8rem !important; font-weight: 600 !important; color: #444 !important; text-decoration: none !important; }
.fc-toolbar-title { font-size: 1.2rem !important; font-weight: 800; color: #333; }
/* ====================================
   🚀 반응형 디자인 (Mobile-First)
   ==================================== */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
  .hamburger-menu {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 80px 0 20px 0;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .main-nav.active {
    left: 0;
  }

  .main-nav .nav-link {
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
    text-align: left;
  }

  .main-nav .nav-link:hover {
    background-color: var(--primary-color);
    color: white !important;
  }

  .header-container {
    padding: 0 1rem;
  }

  .main-content {
    padding: 1rem;
  }

  .dashboard-container {
    padding: 1rem !important;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .user-name {
    display: none;
  }

  .industry-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .data-table {
    font-size: 0.85rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem !important;
  }

  /* 모달 크기 조정 */
  .modal-popup {
    width: 90% !important;
    max-width: 600px !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* FullCalendar 반응형 */
  .fc-toolbar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .fc-button {
    font-size: 0.85rem !important;
    padding: 0.4rem 0.8rem !important;
  }

  .fc-toolbar-title {
    font-size: 1rem !important;
  }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
  .app-title {
    font-size: 1rem;
  }

  .app-logo {
    height: 32px;
  }

  .industry-badge {
    display: none;
  }

  .btn-logout {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .main-content {
    padding: 0.75rem;
  }

  .dashboard-container {
    margin-bottom: 1rem !important;
    padding: 0.75rem !important;
  }

  .page-header h2 {
    font-size: 1.25rem;
  }

  .page-subtitle {
    font-size: 0.85rem;
  }

  /* 버튼 스택 */
  .header-right {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-standard {
    width: 100%;
    padding: 0.75rem !important;
  }

  /* 폼 반응형 */
  .form-row {
    flex-direction: column !important;
  }

  .form-group {
    width: 100% !important;
  }

  /* 통계 카드 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .stat-card {
    padding: 1rem !important;
  }

  .stat-value {
    font-size: 1.5rem !important;
  }

  .stat-label {
    font-size: 0.8rem !important;
  }

  /* 테이블 스크롤 */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 600px;
    font-size: 0.8rem;
  }

  /* 모달 푸터 버튼 */
  .modal-footer-btns {
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-footer-btns .btn {
    width: 100%;
  }

  /* 필터 영역 */
  #filterArea {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #filterArea > div {
    width: 100% !important;
  }

  /* FullCalendar 모바일 최적화 */
  .fc-header-toolbar {
    padding: 0.5rem !important;
  }

  .fc-view-harness {
    min-height: 400px !important;
  }

  /* 일정 표시 최적화 */
  .fc-event-title {
    font-size: 0.75rem !important;
  }

  .fc-daygrid-event {
    padding: 2px 4px !important;
  }

  /* 시간 표시 줄이기 */
  .fc-timegrid-slot-label {
    font-size: 0.7rem !important;
  }

  .fc-timegrid-event {
    font-size: 0.75rem !important;
  }
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
  .app-logo {
    height: 28px;
  }

  .main-content {
    padding: 0.5rem;
  }

  .dashboard-container {
    padding: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  .page-header h2 {
    font-size: 1.1rem;
  }

  .header-container {
    padding: 0 0.5rem;
  }

  /* 통계 카드 1열로 */
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  /* 폼 요소 */
  .form-control,
  .form-select {
    font-size: 16px !important; /* iOS 자동 줌 방지 */
  }

  /* 버튼 크기 */
  .btn {
    font-size: 0.85rem !important;
    padding: 0.6rem 1rem !important;
  }

  /* 모달 */
  .modal-popup {
    width: 95% !important;
    margin: 1rem auto;
  }

  .section-header h3 {
    font-size: 1.1rem;
  }

  /* 테이블 축소 */
  .data-table {
    font-size: 0.75rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.35rem !important;
  }

  /* FullCalendar 매우 작은 화면 */
  .fc-toolbar-title {
    font-size: 0.9rem !important;
  }

  .fc-button {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.6rem !important;
  }

  .fc-daygrid-day-number {
    font-size: 0.8rem !important;
  }

  /* 배지 크기 */
  .badge {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.5rem !important;
  }

  /* 알림 메시지 */
  .alert {
    font-size: 0.85rem;
    padding: 0.75rem;
  }
}

/* 가로 모드 최적화 (높이 600px 이하) */
@media (max-height: 600px) and (orientation: landscape) {
  .app-header {
    padding: 0.5rem 0;
  }

  .main-content {
    padding-top: 0.5rem;
  }

  .modal-popup {
    max-height: 85vh;
  }

  .fc-view-harness {
    min-height: 300px !important;
  }
}

/* 터치 디바이스 최적화 */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-link,
  .form-control,
  .form-select {
    min-height: 44px; /* iOS 권장 터치 타겟 크기 */
  }

  .data-table td button {
    min-width: 60px;
    min-height: 36px;
  }
}

/* 다크모드 대응 (선택사항) */
@media (prefers-color-scheme: dark) {
  /* 추후 다크모드 지원 시 사용 */
}

/* 프린트 최적화 */
@media print {
  .app-header,
  .hamburger-menu,
  .mobile-nav-overlay,
  .btn,
  .alert,
  .modal-popup {
    display: none !important;
  }

  .main-content {
    padding: 0;
  }

  .dashboard-container {
    page-break-inside: avoid;
  }
}
