  /* [1] 기본 설정 */
  @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

  :root {
    /* CheckED 스타일 파스텔 테마 */
    --primary-color: #8B5CF6;   /* 메인: 부드러운 보라색 */
    --primary-rgb: 139, 92, 246; /* RGB 수치 */
    --primary-hover: #7C3AED;   /* 호버: 진한 보라색 */
    --secondary-color: #A78BFA; /* 서브: 연한 보라색 */
    --accent-color: #EC4899;    /* 강조: 핑크색 */
    
    --bg-gradient: linear-gradient(135deg, #E0C3FC 0%, #8EC5FC 100%); /* 배경 그라디언트 */
    --glass-bg: rgba(255, 255, 255, 0.85); /* 카드 배경 (반투명) */
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    --text-main: #1F2937;
    --text-sub: #6B7280;
    --radius-card: 24px;       /* 둥근 모서리 */
    --radius-input: 12px;
  }

  * { box-sizing: border-box; }
  
  body { 
    margin: 0 auto; 
    padding: 20px; 
    font-family: 'Noto Sans KR', sans-serif; 
    background: var(--bg-gradient); 
    background-attachment: fixed; 
    background-size: cover;
    color: var(--text-main); 
    width: 98%; 
    min-height: 100vh; 
    line-height: 1.6;
    overflow-x: hidden; 
  }
  
  /* 스크롤바 커스텀 (테마 색상 자동 연동: 전체 페이지 및 각 메뉴/컨테이너) */
  html, body, * {
    scrollbar-color: color-mix(in srgb, var(--primary-color, #8B5CF6) 35%, transparent) transparent;
  }
  ::-webkit-scrollbar { width: 8px; height: 8px; } 
  ::-webkit-scrollbar-track { background: transparent; } 
  ::-webkit-scrollbar-thumb { 
    background: color-mix(in srgb, var(--primary-color, #8B5CF6) 35%, transparent); 
    border-radius: 10px; 
  }
  ::-webkit-scrollbar-thumb:hover { 
    background: color-mix(in srgb, var(--primary-color, #8B5CF6) 65%, transparent); 
  }

  /* [2] 헤더 스타일 */
  header { 
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--glass-shadow);
    padding: 15px 30px; 
    margin-bottom: 10px;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    position: relative;
  }
  
  .header-left {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    gap: 20px; 
  }

  .header-logo { 
    height: 60px; 
    width: auto; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); 
    object-fit: contain;
  }
  
  .header-text-group { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    justify-content: center;
  }
  
  header h1 { 
    margin: 0; 
    font-size: 1.8rem; 
    background: linear-gradient(to right, #6D28D9, #DB2777); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800; 
    letter-spacing: -0.5px;
    line-height: 1.2;
  }
  
  #today-date-display { 
    margin: 0;
    font-size: 0.95rem; 
    color: var(--text-sub); 
    font-weight: 500; 
  }
  
  /* [3] 탭 메뉴 */
  .tabs { 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-bottom: 10px; 
    background: transparent;
    padding: 0;
  }
  
  .tab-btn { 
    background: rgba(255, 255, 255, 0.4); 
    border: 1px solid rgba(255,255,255,0.6); 
    color: var(--text-sub); 
    padding: 10px 24px; 
    font-size: 1rem; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    border-radius: 50px; 
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .tab-btn:hover { 
    background: rgba(255, 255, 255, 0.9); 
    transform: translateY(-2px);
    color: var(--primary-color);
  }
  
  .tab-btn.active { 
    background: var(--primary-color); 
    color: #ffffff; 
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  }
  
  .admin-tab-btn { background: rgba(0,0,0,0.05); }

  /* [4] 메인 레이아웃 */
  main { 
    padding: 10px 5px; 
    padding-bottom: 40px;
    height: calc(100vh - 180px); 
    overflow-y: auto;
  }
  
  .tab-content { display: none; animation: slideUp 0.4s ease-out; }
  .tab-content.active { display: block; }

  @keyframes slideUp { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
  }
  
  /* 그리드 시스템 */
  .top-row, .bottom-row, .extra-row { display: flex; gap: 24px; width: 100%; align-items: stretch; margin-bottom: 24px; }
  .top-item-left { flex: 2.5; } .top-item-right { flex: 7.5; }
  .bottom-item-val-50 { flex: 5; } .bottom-item-val-23 { flex: 2.3; } .bottom-item-val-27 { flex: 2.7; }
  .extra-item-70 { flex: 7; } .extra-item-30 { flex: 3; }
  
  /* [5] 카드 스타일 */
  .card { 
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--radius-card);
    padding: 24px; 
    box-shadow: var(--glass-shadow); 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.3s ease;
  }
  
  .card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(31, 38, 135, 0.1); }

  .card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
  }
  
  .card h2 { 
    margin: 0; 
    font-size: 1.25rem; 
    color: var(--text-main); 
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    padding: 0;
  }
  
  .card h2::before {
    content: ''; display: block; width: 6px; height: 20px;
    background: var(--primary-color); border-radius: 10px; margin-right: 5px;
  }

  .op-box { 
    background: rgba(255, 255, 255, 0.6); 
    border-radius: 16px; 
    padding: 20px; 
    border: 1px solid rgba(255,255,255,0.8);
    font-size: 0.95rem;
    flex: 1; 
  }

  /* [6] 주간 일정 */
  .weekly-grid { display: flex; gap: 15px; overflow-x: auto; padding: 5px; scroll-behavior: smooth; }
  
  .day-card { 
    min-width: 140px; flex: 1; 
    background: rgba(255,255,255,0.7); 
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 16px; 
    padding: 15px; 
    display: flex; flex-direction: column; 
    transition: 0.2s; cursor: pointer;
  }
  
  .day-card:hover { background: white; transform: scale(1.02); box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-color: var(--primary-color); }
  .day-card.today { 
    background: color-mix(in srgb, var(--primary-color, #8B5CF6) 8%, #FFFFFF) !important; 
    border: 2px solid var(--primary-color, #8B5CF6) !important; 
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color, #8B5CF6) 20%, transparent);
  }
  
  .day-date { font-weight: 700; margin-bottom: 8px; color: var(--text-sub); font-size: 0.9rem; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom:5px; }
  .holiday-text { color: #EF4444 !important; }
  .day-event { color: var(--primary-color); font-weight: 600; background: color-mix(in srgb, var(--primary-color, #8B5CF6) 12%, transparent); padding: 2px 6px; border-radius: 6px; display:inline-block; margin-bottom:4px; font-size: 0.85rem;}
  .day-activity { font-size: 0.85rem; color: #444; margin-top: 5px; }

  /* [7] 테이블 공통 및 각 메뉴별 표 제목 줄 (테마 색상 자동 연동) */
  .styled-table { 
    width: 100%; border-collapse: separate; border-spacing: 0; 
    background: rgba(255,255,255,0.5); border-radius: 16px; overflow: hidden; 
  }
  
  .styled-table th,
  #substitute-table th,
  #time-table th,
  #monthly-table th,
  #student-status-table th,
  #edu-site-table th,
  #tab-submit .styled-table th,
  #result-table th,
  #submit-admin-table th,
  #submit-result-table th { 
    background: color-mix(in srgb, var(--primary-color, #8B5CF6) 12%, rgba(255, 255, 255, 0.9)) !important; 
    color: var(--primary-color, #8B5CF6) !important; 
    padding: 12px 10px; 
    font-weight: 700; 
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color, #8B5CF6) 20%, transparent) !important;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  }
  
  .styled-table td { 
    padding: 10px; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    color: var(--text-main); font-size: 0.9rem; vertical-align: middle;
  }
  
  .styled-table tr:hover td { background: rgba(255,255,255,0.8); }

  /* [8] 링크 리스트 스타일 수정 (높이 및 간격 축소) */
  .dashboard-link-item { 
    /* padding: 위아래 7px, 좌우 10px (기존 12px에서 축소 -> 높이 줄어듦) */
    padding: 7px 10px; 
    
    /* margin-bottom: 4px (기존 8px에서 축소 -> 사이 간격 줄어듦) */
    margin-bottom: 4px; 
    
    background: white; 
    border-radius: 12px; 
    border: 1px solid rgba(0,0,0,0.05); 
    transition: all 0.2s ease; 
  }

  .dashboard-link-item:hover { 
    background: color-mix(in srgb, var(--primary-color, #8B5CF6) 12%, #FFFFFF) !important; 
    border-color: color-mix(in srgb, var(--primary-color, #8B5CF6) 30%, transparent) !important;
    transform: translateX(3px); 
  }

  .dashboard-link-content { 
    text-decoration: none; 
    color: var(--text-main); 
    font-weight: 500; 
    display: flex; 
    align-items: center; 
    font-size: 0.9rem; /* 글자 크기도 살짝 조절하여 균형 맞춤 */
  }

  /* 아이콘 크기 및 테마 연동 */
  .link-icon { 
    margin-right: 8px; 
    color: var(--primary-color, #8B5CF6); 
    background: color-mix(in srgb, var(--primary-color, #8B5CF6) 12%, transparent); 
    padding: 4px; /* 아이콘 배경 여백 축소 */
    border-radius: 50%; 
    font-size: 1rem; /* 아이콘 크기 축소 */
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  /* [9] 버튼 & 입력 */
  .add-btn,
  .material-icons.add-btn,
  .card-header .add-btn,
  .dept-card .add-btn { 
    color: var(--primary-color) !important; 
    font-size: 2rem; 
    transition: 0.2s; 
    cursor: pointer;
  }
  .add-btn:hover,
  .material-icons.add-btn:hover,
  .card-header .add-btn:hover,
  .dept-card .add-btn:hover { 
    color: var(--primary-hover, var(--primary-color)) !important; 
    transform: scale(1.15); 
  }
  
  .btn-confirm, .btn-cancel, .btn-danger, .sub-tab-btn {
    border: none; padding: 10px 20px; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: 0.2s;
  }
  
  .btn-confirm { background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); color: white; }
  .btn-confirm:hover { box-shadow: 0 6px 15px rgba(139, 92, 246, 0.3); transform: translateY(-1px); }
  .btn-cancel { background: white; color: var(--text-sub); border: 1px solid #ddd; }
  .btn-danger { background: #EF4444; color: white; }
  
  .sub-tab-btn { background: white; border: 1px solid #ddd; color: var(--text-sub); margin: 0 5px; }
  .sub-tab-btn.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

  input[type="text"], input[type="password"], input[type="date"], select, textarea {
    width: 100%; padding: 12px 15px; 
    border: 1px solid #E5E7EB; border-radius: var(--radius-input);
    background: #F9FAFB; color: var(--text-main);
    font-family: inherit; font-size: 0.95rem; transition: 0.2s;
  }
  input:focus, textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1); background: white; }

  /* [10] 모달 스타일 (수정됨) */
  .hidden { display: none !important; }

  #modal-overlay,
  #custom-alert-overlay, 
  #custom-confirm-overlay, 
  #op-edit-modal, 
  #other-edit-modal, 
  #approval-edit-modal, 
  #timetable-edit-modal, 
  #student-edit-modal, 
  #site-manage-modal, 
  #site-input-modal,
  #daily-edit-modal, 
  #general-input-modal, 
  #substitute-manage-modal, 
  #substitute-input-modal, 
  #link-manage-modal, 
  #link-input-modal,
  #dept-link-modal, 
  #dept-input-modal,
  #monthly-edit-modal,
  #link-insert-modal,
  #vacation-modal,
  #school-dept-input-modal,
  #holiday-input-modal, 
  #event-input-modal, 
  #user-input-modal,
  #day-detail-modal {
      position: fixed; 
      top: 0; 
      left: 0; 
      width: 100vw; 
      height: 100vh;
      background: rgba(0,0,0,0.4); 
      display: flex; 
      justify-content: center; 
      align-items: center; 
      backdrop-filter: blur(5px);
      z-index: 10000;
  }

  /* 2차 모달 z-index 상향 */
  #site-input-modal, #substitute-input-modal, #link-input-modal, #dept-input-modal, #link-insert-modal, 
  #holiday-input-modal, #event-input-modal, #user-input-modal, #school-dept-input-modal, #day-detail-modal {
      z-index: 12000;
  }
  
  /* 알림창 최상위 */
  #custom-alert-overlay, #custom-confirm-overlay, #toast-container { z-index: 20000 !important; }

  .custom-alert-box, .editor-modal-box, #modal-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-radius: 28px;
    padding: 30px;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
  }
  
  @keyframes popIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

  /* [11] 관리자 화면 */
  .admin-sub-content { display: none; } 
  .admin-sub-content.active { display: block; animation: slideUp 0.3s ease-out; }
  
  .admin-panel { max-width: 600px; margin: 0 auto; text-align: center; } 
  .admin-panel-wide { max-width: 1000px; margin: 0 auto; text-align: center; }
  .admin-row-layout { display: flex; gap: 20px; justify-content: center; align-items: stretch; flex-wrap: wrap; } 
  .admin-row-layout .admin-panel { flex: 1; min-width: 300px; margin: 0; }
  
  /* 학교자료 레이아웃 */
  .school-layout { display: flex; gap: 24px; align-items: flex-start; }
  .school-left-panel { flex: 0 0 450px; }
  .school-right-panel { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .dept-column { display: flex; flex-direction: column; gap: 24px; }

  /* [수정] 토스트 알림 (화면 정중앙 배치) */
#toast-container {
  visibility: hidden; 
  min-width: 300px; 
  background-color: white; 
  color: #333; 
  text-align: center;
  border-radius: 50px; 
  position: fixed; 
  z-index: 20000; 
  
  /* ▼ [핵심 변경] 위치를 80% -> 50%로 변경 */
  top: 50% !important; 
  left: 50% !important; 
  
  /* 정중앙을 맞추기 위한 좌표 이동 */
  transform: translate(-50%, -50%) !important;
  
  box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
  opacity: 0; 
  transition: 0.3s;
  border: 1px solid rgba(0,0,0,0.05);
}

#toast-container.show { 
  visibility: visible; 
  opacity: 1; 
  /* 나타날 때도 중앙 유지 */
  transform: translate(-50%, -50%) !important; 
}
  .toast-content { padding: 15px 25px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: bold; }
  .toast-icon { color: #4CAF50; font-size: 1.5rem; }

  /* 기타 스타일 */
  .modal-close-x { float: right; cursor: pointer; color: var(--text-sub); font-size: 1.5rem; transition: 0.2s; }
  .modal-close-x:hover { color: #EF4444; transform: rotate(90deg); }
  .drag-handle { cursor: grab; color: #aaa; margin-right: 5px; }
  
  /* 사이트 링크 스타일 */
  .site-link-style { display: inline-flex; align-items: center; text-decoration: none !important; color: var(--primary-color); font-weight: bold; transition: 0.2s; }
  .site-link-style:hover { color: var(--accent-color); transform: translateX(3px); }
  .site-link-style.no-link { color: #333; font-weight: normal; cursor: default; } .site-link-style.no-link:hover { color: #333; transform: none; }
  .site-link-style .material-icons { font-size: 1.2rem; margin-right: 8px; }
  
  /* ★달력 스타일 수정됨 (클래스 이름 일치)★ */
  .calendar-wrapper { background: white; border-radius: 24px; padding: 20px; box-shadow: var(--glass-shadow); }
  .cal-header-cell { background: #F3E8FF; color: var(--primary-color); border-radius: 8px; margin-bottom: 5px; padding: 10px; text-align: center; font-weight: bold;}
  
  /* [수정] 클래스 이름을 .cal-grid -> .calendar-grid로 변경 */
  .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
  
  .cal-cell { border-radius: 12px; transition: 0.2s; border: 1px solid #f0f0f0; min-height: 100px; padding: 5px; display: flex; flex-direction: column; background: white; }
  .cal-cell:hover { background: #F9FAFB; border-color: var(--primary-color); }
  .cal-date { border-bottom:1px dashed #eee; display:block; margin-bottom:5px; }

  /* 반응형 (모바일) */
  @media (max-width: 992px) {
    .top-row, .bottom-row, .extra-row, .school-layout, .school-right-panel { flex-direction: column; }
    .top-item-left, .top-item-right, .school-left-panel, .dept-column { width: 100%; flex: auto; }
    header { flex-direction: column; text-align: center; }
    .header-left { flex-direction: column; gap:10px; }
    .tabs { gap: 5px; } .tab-btn { padding: 8px 16px; font-size: 0.9rem; }
  }
/* [재수정] 일과운영 수정 창 스타일 최적화 */

/* 1. 모달 창 너비 축소 (600px) */
#op-edit-modal .editor-modal-box {
    max-width: 600px !important; 
    width: 95% !important;
}

/* 2. 날짜 선택 창 너비 (150px) */
#op-edit-date {
    width: 150px !important;
    display: inline-block;
}

/* 3. 입력창(에디터) 디자인 조정 */
#op-edit-modal .editor-content {
    min-height: 300px !important;  /* 높이 300px 고정 */
    max-height: 60vh !important;   
    
    border: 1px solid #aaa !important; /* 테두리를 진한 회색으로 보이게 설정 */
    border-radius: 4px !important;
    
    margin-top: 5px !important;    /* 위쪽 툴바와 5px 간격 띄우기 */
    background-color: white !important;
    cursor: text !important;       /* 마우스 올리면 커서 모양 확실하게 표시 */
    padding: 10px !important;
}

/* 입력창 클릭 시 파란색 테두리로 강조 (커서 위치 확인 용이) */
#op-edit-modal .editor-content:focus {
    border-color: #1976D2 !important;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2) !important;
    outline: none !important;
}

/* 1. 모달 박스 크기 및 기본 설정 */
/* 1. 모달 박스 크기 (그대로 유지) */
#day-detail-modal-box {
    width: 95% !important;
    max-width: 1000px !important;
    padding: 40px 30px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}

/* 2. 테이블 스타일 (구분선 명확하게) */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-top: 2px solid color-mix(in srgb, var(--primary-color, #8B5CF6) 25%, transparent);
}

.detail-table th {
    /* 상세 모달 테이블 헤더 (테마 색상 자동 연동) */
    background: color-mix(in srgb, var(--primary-color, #8B5CF6) 12%, rgba(255, 255, 255, 0.9)) !important; 
    color: var(--primary-color, #8B5CF6) !important;
    font-weight: bold;
    padding: 15px 10px !important;
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color, #8B5CF6) 20%, transparent) !important;
    text-align: center !important;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.detail-table td {
    padding: 15px 10px !important;
    border-bottom: 1px solid #eee; /* 행 구분선은 연한 회색 유지 */
    vertical-align: middle;
    font-size: 1rem;
    color: #333;
}

/* 3. 컬럼별 정렬 (그대로 유지) */
.detail-activity-cell {
    text-align: left !important;
    line-height: 1.6;
}

.detail-manager-cell {
    text-align: center !important;
    color: #666;
    white-space: nowrap;
}

/* [수정] 주간 일정 내용 스타일 개선 (줄바꿈 반영) */
.day-activity { 
    color: #333; 
    white-space: pre-wrap !important; /* 입력한 줄바꿈(Enter) 그대로 표시 */
    word-break: break-all; 
    line-height: 1.6 !important;      /* 줄 간격을 넓혀서 읽기 편하게 */
    text-align: left !important;      /* 왼쪽 정렬 강제 */
    margin-top: 8px !important;
    font-size: 0.9rem !important;     /* 글자 크기 약간 조정 */
    display: block;
}

/* 박스 내부 정렬 보정 */
.day-content {
    text-align: left !important;
    padding: 0 2px;
}

/* [수정] 각종 링크 관리 창 너비 확대 (자료 관리 창과 동일하게 맞춤) */
#link-manage-modal .editor-modal-box {
    width: 90% !important;        /* 화면의 90%를 차지 */
    max-width: 1200px !important; /* 최대 1200px까지 늘어남 */
}

/* [추가] 결재라인 수정 창 스타일 개선 */

/* 1. 모달 너비 확대 (기존 600px -> 800px로 약 130% 확대) */
#approval-edit-modal .editor-modal-box {
    max-width: 800px !important;
    width: 95% !important;
}

/* 2. 입력창 디자인 (테두리 진하게, 위쪽 간격 5px 추가) */
#approval-editor.editor-content {
    border: 1px solid #999 !important; /* 진한 회색 테두리 */
    margin-top: 5px !important;        /* 툴바와 5px 간격 */
    min-height: 400px !important;      /* 높이도 넉넉하게 확보 */
}

/* [추가] 기타 안내사항 수정 창 스타일 개선 (결재라인과 동일) */

/* 1. 모달 너비 확대 (800px) */
#other-edit-modal .editor-modal-box {
    max-width: 800px !important;
    width: 95% !important;
}

/* 2. 입력창 디자인 (진한 테두리, 간격, 높이 확보) */
#other-editor.editor-content {
    border: 1px solid #999 !important; /* 진한 회색 테두리 */
    margin-top: 5px !important;        /* 툴바와 5px 간격 */
    min-height: 400px !important;      /* 높이 400px 확보 */
}

/* 1. 결재라인/위임전결 입력창 */
#approval-editor.editor-content {
    padding: 10px !important;       /* 안쪽 여백 10px 추가 */
    line-height: 1.5 !important;    /* 줄 간격도 살짝 여유 있게 */
}

/* 2. 기타 안내사항 입력창 */
#other-editor.editor-content {
    padding: 10px !important;       /* 안쪽 여백 10px 추가 */
    line-height: 1.5 !important;    /* 줄 간격도 살짝 여유 있게 */
}

/* [추가] 월중행사 테이블 스타일 개선 */

/* 1. 평일(기본) 행 배경색을 흰색으로 지정 */
/* (토/일/공휴일 등은 별도의 클래스나 인라인 스타일이 적용되어 있다면 그것이 우선 적용됩니다) */
#month-tab-content table tbody tr {
    background-color: white;
}

/* 2. 컬럼별 정렬 설정 */
/* 날짜(1), 요일(2), 행사(3), 담당자(5) -> 중앙 정렬 */
#month-tab-content table td:nth-child(1), 
#month-tab-content table td:nth-child(2), 
#month-tab-content table td:nth-child(3), 
#month-tab-content table td:nth-child(5) {
    text-align: center !important;
}

/* 주요활동(4), 비고(6) -> 왼쪽 정렬 (내용이 길어서 읽기 편하게) */
#month-tab-content table td:nth-child(4),
#month-tab-content table td:nth-child(6) {
    text-align: left !important;
    padding-left: 10px !important; /* 왼쪽 여백 살짝 줌 */
}

/* [수정] 월간 달력 레이아웃 및 텍스트 스타일 개선 */

/* 1. 달력 전체 틀 (가로 7칸 균등 분할 강제) */
#cal-body.calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important; /* 무조건 1:1:1... 비율 */
    width: 100% !important;
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    background: white;
    gap: 0 !important; /* 셀 사이 간격 제거 */
}

/* 2. 요일 헤더 (일, 월, 화...) */
.cal-header-cell {
    background: color-mix(in srgb, var(--primary-color, #7C3AED) 10%, white) !important;
    color: var(--primary-color, #7C3AED) !important;
    font-weight: bold;
    text-align: center;
    padding: 8px 0;
    border-radius: 8px;
    margin-bottom: 5px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* 3. 날짜 칸 디자인 */
.cal-cell {
    background: white;
    min-height: 100px;  /* 칸 최소 높이 */
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;   /* 내용이 넘쳐도 칸 깨짐 방지 */
}

/* 4. [핵심] 주요활동 내용 스타일 */
.cal-activity {
    display: block;
    width: 100%;
    margin-top: 3px;
    
    /* ▼ 줄바꿈 및 글자 크기 설정 */
    white-space: pre-wrap !important; /* 줄바꿈(Enter) 적용 */
    word-break: break-all;            /* 긴 단어 줄바꿈 */
    font-size: 0.75rem !important;    /* 글자 크기 축소 (12px 정도) */
    line-height: 1.3 !important;      /* 줄 간격 좁게 */
    color: #444;
    text-align: left;
}

/* 5. 행사 및 휴업일 스타일 */
.cal-event {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #1976D2; /* 파란색 */
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-holiday {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #D32F2F; /* 빨간색 */
    margin-bottom: 2px;
}

#monthly-edit-modal .editor-modal-box {
    width: 95% !important;        /* 화면 너비의 95%까지 사용 */
    max-width: 1600px !important; /* 최대 1600px까지 늘어남 (기존 대비 대폭 확대) */
}

/* 월중행사 일괄 수정 테이블 및 리사이즈 지원 */
#monthly-bulk-edit-table th {
    position: relative;
    user-select: none;
}
#monthly-bulk-edit-table textarea {
    resize: both !important;
    min-height: 40px;
    min-width: 120px;
}
#monthly-bulk-edit-table textarea:focus {
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
    outline: none;
}

/* [추가] 사이트/계정 테이블 정렬 스타일 */
/* 2번째(ID), 3번째(PW), 4번째(비고) 컬럼을 가운데 정렬 */
#edu-site-table th:nth-child(2), #edu-site-table td:nth-child(2),
#edu-site-table th:nth-child(3), #edu-site-table td:nth-child(3),
#edu-site-table th:nth-child(4), #edu-site-table td:nth-child(4) {
    text-align: center !important;
}

/* 1. 사용자 프로필 카드 너비 조정 (50% -> 40%로 축소) */
#tab-user-info .user-profile-container {
    width: 40% !important;        /* 너비 40% */
    min-width: 350px !important;  /* 너무 작아지지 않게 최소폭 설정 */
    margin: 30px auto !important; /* 화면 중앙 정렬 */
    padding: 40px !important;
    border-radius: 30px !important;
}

/* 2. 보유 권한 목록 컨테이너 (왼쪽 정렬 강제) */
#user-profile-perms {
    text-align: left !important; 
    margin-top: 10px;
}

/* 3. 보유 권한 배지 스타일 (테마 색상 버튼) */
.perm-badge {
    display: inline-block;
    padding: 8px 16px !important;
    margin: 4px !important;
    border-radius: 50px !important;
    background-color: color-mix(in srgb, var(--primary-color, #7C3AED) 12%, white) !important;
    color: var(--primary-color, #7C3AED) !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid color-mix(in srgb, var(--primary-color, #7C3AED) 25%, transparent) !important;
}

/* [추가] 알림창 내부(아이콘, 글자, 버튼) 중앙 정렬 */
.custom-alert-box {
    text-align: center !important;
}

/* [추가] 관리자 설정 서브 탭(버튼) 중앙 정렬 */
.admin-sub-tabs {
    display: flex !important;
    justify-content: center !important; /* 가로 중앙 정렬 */
    gap: 10px !important;               /* 버튼 사이 간격 */
    margin-bottom: 20px !important;     /* 아래쪽 여백 */
    flex-wrap: wrap !important;         /* 화면이 좁으면 줄바꿈 */
}

/* [추가] 로그인 모달 입력창과 버튼 사이 간격 넓히기 */
#modal-box .modal-buttons {
    margin-top: 20px !important;  /* 기존 간격 없음에서 30px로 확대 */
}

/* [추가] 로그인 모달: 아이디와 비밀번호 입력창 사이 간격 */
#input-id {
    margin-bottom: 10px !important; /* 기존보다 20px 띄우기 */
}

/* 보결 테이블 특화 (높이 맞춤 및 중앙 정렬) */
  .substitute-section.card { height: 100%; }
  
  #substitute-table th, 
  #substitute-table td { 
      padding: 8px 5px; 
      height: 40px; 
      text-align: center !important; /* 여기에 중앙 정렬 추가됨 */
  }

  /* 일과시간표 표시용: 줄바꿈 허용 및 중앙 정렬 */
  #time-table td { 
      white-space: pre-wrap; 
      vertical-align: middle !important; /* 세로 중앙 정렬 */
      text-align: center !important;     /* 가로 중앙 정렬 */
  }

  /* 학생 현황 테이블 중앙 정렬 */
  #student-status-table td {
      text-align: center !important;
      vertical-align: middle !important;
  }

  /* [스켈레톤 로딩 애니메이션] */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-row {
    width: 100%;
    height: 100%;
}

.skeleton-box {
    background: #f0f0f0;
    background-image: linear-gradient(
        90deg, 
        #f0f0f0 25%, 
        #f8f8f8 50%, 
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite; /* 반짝이는 속도 */
    border-radius: 4px;
    display: inline-block;
}

/* 텍스트 줄 모양 스켈레톤 */
.skeleton-text {
    height: 16px;
    width: 80%;
    margin-bottom: 6px;
}
.skeleton-text.short { width: 40%; }
.skeleton-text.long { width: 95%; }

/* 테이블 안에서 스켈레톤 위치 잡기 */
.skeleton-cell {
    padding: 15px !important;
    vertical-align: middle;
}

/* [토스트 알림창 디자인] */
#global-toast {
    visibility: hidden; /* 기본적으로 숨김 */
    min-width: 250px;
    background-color: #333; /* 진한 회색 배경 */
    color: #fff;
    text-align: center;
    border-radius: 50px; /* 둥근 모서리 */
    padding: 16px;
    position: fixed;
    z-index: 20000; /* 모달보다 위에 뜨도록 아주 높게 설정 */
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%); /* 정확히 가운데 정렬 */
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s; /* 부드러운 효과 */
}

/* 토스트가 활성화되었을 때 붙는 클래스 */
#global-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* 살짝 위로 올라오며 등장 */
}

/* [추가] 에디터 및 뷰어 줄 간격 최적화 */
.op-box p, .op-box div, 
.editor-content p, .editor-content div {
    margin: 0 !important;        /* 문단 사이 강제 여백 제거 */
    padding: 0 !important;       /* 안쪽 여백 제거 */
    line-height: 1.4 !important; /* 줄 간격을 글자 크기의 1.4배로 설정 (적당함) */
}

/* 텍스트가 그냥 들어갔을 경우를 대비한 상위 박스 설정 */
.op-box, .editor-content {
    line-height: 1.4 !important;
}

/* 리스트(글머리 기호)가 들어갔을 때 들여쓰기 및 간격 조정 */
.op-box ul, .op-box ol,
.editor-content ul, .editor-content ol {
    margin: 5px 0 5px 20px !important; /* 위아래 간격 좁힘 */
    padding: 0 !important;
}
.op-box li, .editor-content li {
    margin-bottom: 2px !important; /* 리스트 항목 사이 간격 좁힘 */
}

/* [추가] 보결 관리 창 너비 확대 (120% 이상 넓게) */
#substitute-manage-modal .editor-modal-box {
    width: 80% !important;         /* 화면 너비의 90% 사용 */
    max-width: 1000px !important;  /* 최대 1200px까지 늘어남 (기존 대비 2배 이상 확대) */
}

/* [추가] 일과 시간표 에디터: 임의 크기 조절 금지 & 디자인 다듬기 */
#timetable-editor-table textarea {
    resize: none !important;      /* 마우스로 크기 조절하는 핸들 제거 */
    overflow: hidden !important;  /* 내용이 넘쳐도 스크롤바 생기지 않게 함 */
    min-height: 40px;             /* 최소 높이 설정 (너무 납작해지지 않도록) */
    padding: 8px 5px;             /* 안쪽 여백 */
    line-height: 1.4;             /* 줄 간격 */
    box-sizing: border-box;       /* 테두리 포함 크기 계산 */
    vertical-align: middle;       /* 셀 중앙 정렬 */
}

/* 팝업창 배경 (평소에는 숨김) */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 15000 !important;
    backdrop-filter: blur(5px);
    
    /* [핵심 수정] 기본은 display: none으로 설정 */
    display: none !important; 
    justify-content: center !important;
    align-items: center !important;
}

/* ★ active 클래스가 붙었을 때만 flex로 보여줌 */
.modal-overlay.active {
    display: flex !important;
}

/* 팝업창 본체 박스 */
.modal-box {
    background: white !important;
    padding: 30px !important;
    border-radius: 20px !important;
    width: 500px !important;
    max-width: 90% !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    animation: popIn 0.3s ease-out;
}

/* 자료 취합 설정 및 관리 모달 박스 넓이 조정 */
#submit-task-modal .editor-modal-box,
#submit-result-modal .editor-modal-box {
    width: 95% !important;        /* 모바일 등 작은 화면에서의 여유 */
    max-width: 1100px !important;  /* 기존 약 900px에서 120% 수준인 1100px로 확대 */
    min-height: 600px;             /* 내용이 적어도 적당한 높이 유지 */
}

/* 결과 테이블이 넓어진 만큼 내부 테이블도 꽉 차게 설정 */
#submit-result-table {
    width: 100% !important;
}

/* 관리자용 상세 설정창 넓이 (필요시 추가) */
#admin-submit-manage-modal .editor-modal-box {
    width: 95% !important;
    max-width: 1200px !important; /* 관리 화면은 데이터가 많으므로 더 넓게 설정 가능 */
}

/* 창이 넓어진 만큼 열(Column) 간격 조정 */
.styled-table th, .styled-table td {
    padding: 12px 15px !important; /* 패딩을 조금 더 주어 시원하게 보이게 함 */
    text-align: center;
}

/* 내용 입력 칸이 있는 경우 왼쪽 정렬 유지 */
.styled-table td.text-left {
    text-align: left;
}

/* 취합 목록 컨테이너를 Grid 레이아웃으로 변경 */
#submit-task-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr); /* 한 줄에 2개씩 동일한 넓이로 배치 */
    gap: 15px; /* 카드 사이의 간격 */
}

/* 화면이 좁은 모바일에서는 다시 한 줄에 1개씩 나오게 조정 */
@media (max-width: 768px) {
    #submit-task-container {
        grid-template-columns: 1fr;
    }
}

/* 개별 카드 높이를 일정하게 맞추고 싶을 때 (선택 사항) */
#submit-task-container > .card {
    height: 100%;
    margin-bottom: 0 !important; /* Grid gap이 있으므로 기존 마진 제거 */
}

/* 카드 내부 여백 및 디자인 미세 조정 */
#submit-task-container .card {
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 16px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* 배경색과 테두리는 자바스크립트에서 동적으로 제어하므로 여기서는 제거합니다. */
}

/* 로딩 스피너를 모든 모달창(z-index: 16000 이상)보다 위로 올리기 */
#loading-overlay, 
.loading-overlay, 
#spinner, 
.spinner,
#loader,
.loader {
    z-index: 99999 !important; 
}

/* =========================================
   📱 스마트폰(모바일) 전용 디자인 (mobile-mode)
   ========================================= */

/* 1. 전체 화면 여백 축소 */
body.mobile-mode {
    padding: 10px;
}

/* 2. 헤더 (학교 마크와 제목 세로 배치) */
body.mobile-mode header {
    padding: 15px;
    flex-direction: column;
    text-align: center;
}
body.mobile-mode .header-left {
    flex-direction: column;
    gap: 10px;
}
body.mobile-mode header h1 {
    font-size: 1.4rem; /* 폰 화면에 맞게 제목 크기 약간 축소 */
}

/* 3. 탭 메뉴 (터치하기 좋게 가로 스크롤로 변경) */
body.mobile-mode .tabs {
    display: flex;
    flex-wrap: nowrap;     /* 줄바꿈 금지 */
    overflow-x: auto;      /* 넘치면 가로로 스크롤되게 */
    justify-content: flex-start;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch; /* 부드러운 스크롤 */
}
body.mobile-mode .tab-btn {
    flex: 0 0 auto;        /* 글자 길이에 맞춰 버튼 크기 고정 */
    padding: 10px 15px;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* 4. 메인 콘텐츠 (무조건 위아래 세로로 쌓기) */
body.mobile-mode .top-row, 
body.mobile-mode .bottom-row, 
body.mobile-mode .extra-row,
body.mobile-mode .school-layout {
    display: flex;
    flex-direction: column !important; /* 가로 배치를 세로 배치로 강제 변경 */
    gap: 15px;
}

body.mobile-mode .top-item-left, 
body.mobile-mode .top-item-right,
body.mobile-mode .bottom-item-val-50, 
body.mobile-mode .bottom-item-val-23, 
body.mobile-mode .bottom-item-val-27,
body.mobile-mode .extra-item-70, 
body.mobile-mode .extra-item-30,
body.mobile-mode .school-left-panel,
body.mobile-mode .school-right-panel {
    width: 100% !important; /* 카드가 화면 가로를 100% 꽉 채우게 */
    flex: none !important;
}

/* 5. 테이블 최적화 (표가 화면 밖으로 넘치면 가로로 밀어서 볼 수 있게) */
body.mobile-mode .styled-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

/* 6. 주간 일정 카드 최적화 */
body.mobile-mode .weekly-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
}
body.mobile-mode .day-card {
    min-width: 160px;
}

/* 7. 각종 모달(팝업창) 꽉 차게 변경 */
body.mobile-mode .custom-alert-box, 
body.mobile-mode .editor-modal-box, 
body.mobile-mode #modal-box {
    width: 95% !important;
    max-width: 100% !important;
    padding: 20px !important;
}

/* 8. 부서 자료 관리 그리드 변경 (1줄에 1개씩) */
body.mobile-mode .school-right-panel {
    grid-template-columns: 1fr !important;
}

/* =========================================
   학교보드 (Padlet Style) 
========================================= */
#padlet-list-container .card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--primary-color);
}
#padlet-list-container .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

/* 모든 테마에서 일관되게 적용되도록 우선순위 강화 */
.padlet-board-wall {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 280px)) !important;
    gap: 15px !important;
    align-items: start !important;
    justify-content: start !important;
}

/* 컬럼 (Column) 뷰 - 가로로 스크롤 가능하게 배치 */
.padlet-board-column {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    align-items: flex-start;
}
.padlet-column-wrapper {
    flex: 0 0 280px; /* 각 컬럼의 너비를 고정 */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
}
.padlet-column-header {
    font-weight: bold;
    font-size: 1.1rem;
    color: #334155;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.padlet-column-content {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    flex: none !important;
    height: auto !important;
    max-height: none !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 !important;
}
.padlet-column-wrapper::-webkit-scrollbar,
.padlet-column-content::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* 게시물(Post) 카드 스타일 */
.padlet-post-card {
    width: 100%;           /* 부모(컬럼) 너비에 맞춤 */
    max-width: 300px;      /* 🔥 최대 너비를 포스트잇 크기로 제한 */
    min-height: 100px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    
    /* JS의 boxShadow='none'을 이겨내고 종이가 바닥에서 뜬 듯한 이중 그림자 강제 적용 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08) !important; 
    
    /* JS의 transition을 이겨내고 튀어오름(transform) 애니메이션 속성 강제 적용 */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-color 0.3s ease !important; 
    
    position: relative !important;
    
    word-break: break-all; /* 긴 문장 줄바꿈 처리 */
}

/* ✨ 3. 마우스 호버(Hover) 시 위로 통통 튀어오르는 효과 추가 */
.padlet-post-card:hover {
    transform: translateY(-8px) scale(1.02) !important; 
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18), 0 4px 8px rgba(0, 0, 0, 0.1) !important; 
    z-index: 10 !important; 
}

.padlet-post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.padlet-post-author {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-color);
}
.padlet-post-date {
    font-size: 0.75rem;
    color: #94A3B8;
}
.padlet-post-title {
    font-weight: bold;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #1E293B;
}
.padlet-post-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    white-space: pre-wrap;
}
.padlet-post-img-preview {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid #E2E8F0;
    display: block;
}
.padlet-post-file-link {
    display: inline-flex;
    align-items: center;
    background: #E0F2FE;
    color: #0284C7;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 10px;
}
.padlet-post-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    border-top: 1px dashed #E2E8F0;
    padding-top: 8px;
}
.padlet-post-actions button {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 5px;
}
.padlet-post-actions button:hover {
    color: var(--primary-color);
}

/* 인라인 포스트잇 카드 스타일 */
.inline-post-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
    transition: box-shadow 0.3s ease !important;
    
    padding: 16px;
    width: 300px; /* 게시판 그리드 크기에 맞게 조절하세요 */
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.3s ease-in-out;
}

.inline-post-card input.post-title, 
.inline-post-card textarea.post-content {
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    width: 100%;
    font-family: inherit;
}

.inline-post-card textarea.post-content {
    resize: none;
    height: 80px;
    font-size: 14px;
}

/* 하단 툴바 (첨부 버튼들) */
.post-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.post-toolbar .material-icons {
    color: #666;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.2s;
}

.post-toolbar .material-icons:hover {
    color: #7C3AED; /* 메인 테마 색상 */
}

.post-toolbar .btn-group {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

/* 투표 영역 스타일 (기본은 숨김) */
.poll-section {
    display: none;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #eee;
}

.poll-section.active {
    display: flex; /* 토글 시 나타남 */
    flex-direction: column;
    gap: 8px;
}

.poll-option-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.poll-option-row input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px;
}

/* =========================================
   [학교보드] 인라인 포스트 카드 및 투표 UI
   ========================================= */

/* 투표 생성 영역 스타일 */
.poll-creation-area {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-creation-area.hidden {
    display: none; /* 토글 시 숨김 처리 */
}

/* 투표 입력 칸 공통 스타일 */
.poll-input {
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 10px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.poll-input:focus {
    border-color: var(--primary-color); /* 테마 보라색 적용 */
    outline: none;
}

/* 투표 질문 칸 강조 */
.poll-input.question {
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
}

/* 옵션 추가 버튼 */
.add-option-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    text-align: left;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 600;
}

.add-option-btn:hover {
    text-decoration: underline;
}

/* 하단 툴바 구성 및 버튼 스타일 */
.post-toolbar .spacer {
    flex-grow: 1; /* 여백을 채워서 취소/확인 버튼을 오른쪽으로 밉니다. */
}

.post-toolbar .icon-btn {
    color: #6B7280;
    cursor: pointer;
    font-size: 22px;
    padding: 6px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.post-toolbar .icon-btn:hover {
    background-color: #F3F4F6;
    color: var(--primary-color);
}

.btn-cancel, .btn-submit {
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

.btn-cancel {
    background-color: transparent;
    color: #4B5563;
}

.btn-cancel:hover {
    background-color: #F3F4F6;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
}

/* js/style.css 에 추가 */

/* 컬럼 헤더 스타일 */
.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px 12px 0 0;
    font-weight: bold;
}

/* ✅ 컬럼별 추가 버튼 스타일 */
.col-add-btn {
    background: rgba(139, 92, 246, 0.1); /* 연한 보라 배경 */
    border: none;
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.col-add-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.col-add-btn .material-icons {
    font-size: 18px;
}

/* ✅ 대표 버튼 (Floating Action Button) 스타일 */
.padlet-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: transform 0.2s, background-color 0.2s;
}

.padlet-fab:hover {
    transform: scale(1.1) rotate(-5deg);
    background-color: var(--primary-hover);
}

.padlet-fab .material-icons {
    font-size: 32px;
}

/* ==========================================================================
   [미제출/미투표 알림 모달 & 네비게이션 뱃지 시스템]
   ========================================================================== */
#pending-tasks-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 16px;
}

#pending-tasks-overlay.show {
    display: flex;
}

#pending-tasks-box {
    background: #ffffff;
    color: #1e293b;
    border-radius: 24px;
    width: min(500px, 100%);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.9);
    overflow: hidden;
    animation: pendingTasksIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pendingTasksIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#pending-tasks-box .pt-head {
    padding: 24px 26px 8px;
    border-bottom: 1px solid #f1f5f9;
}

#pending-tasks-box .pt-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#pending-tasks-box .pt-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

#pending-tasks-box .pt-body {
    padding: 14px 20px 10px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#pending-tasks-box .pt-section-title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #64748b;
    padding: 4px 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

#pending-tasks-box .pt-section-count {
    background: #ede9fe;
    color: #7c3aed;
    font-size: 0.75rem;
    padding: 1px 7px;
    border-radius: 12px;
    font-weight: 700;
}

#pending-tasks-box .pt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

#pending-tasks-box .pt-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

#pending-tasks-box .pt-icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: #ede9fe;
}

#pending-tasks-box .pt-icon.collect {
    background: #e0f2fe;
}

#pending-tasks-box .pt-info {
    flex: 1;
    min-width: 0;
}

#pending-tasks-box .pt-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pending-tasks-box .pt-item-sub {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#pending-tasks-box .pt-action-btn {
    flex: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#pending-tasks-box .pt-action-btn.vote {
    background: #8b5cf6;
    color: #ffffff;
}

#pending-tasks-box .pt-action-btn.vote:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

#pending-tasks-box .pt-action-btn.collect {
    background: #0284c7;
    color: #ffffff;
}

#pending-tasks-box .pt-action-btn.collect:hover {
    background: #0369a1;
    transform: translateY(-1px);
}

#pending-tasks-box .pt-action-btn.confirm {
    background: #64748b;
    color: #ffffff;
}

#pending-tasks-box .pt-action-btn.confirm:hover {
    background: #475569;
    transform: translateY(-1px);
}

#pending-tasks-box .pt-foot {
    padding: 12px 24px 20px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

#pending-tasks-box .pt-close-btn {
    border-radius: 999px;
    padding: 9px 26px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

#pending-tasks-box .pt-close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* 네비게이션 탭 알림 배지 (빨간 동그라미) */
.nav-badge, .nbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    margin-left: 6px;
    padding: 0 5px;
    vertical-align: middle;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==========================================================================
   [통합 테마 시스템: 계절별·스킨별 CSS 변수 오버라이드]
   ========================================================================== */

/* 🌸 봄 테마 */
:root[data-season="spring"], :root[data-theme="spring"], :root[data-theme="style-spring"] {
    --primary-color: #F472B6;
    --primary-hover: #DB2777;
    --secondary-color: #FBCFE8;
    --accent-color: #10B981;
    --bg-gradient: linear-gradient(135deg, #FDF2F8 0%, #E0F2FE 100%);
    --glass-shadow: 0 8px 32px 0 rgba(244, 114, 182, 0.15);
    --text-main: #374151;
}

/* ☀️ 여름 테마 */
:root[data-season="summer"], :root[data-theme="summer"], :root[data-theme="style-summer"] {
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --secondary-color: #DBEAFE;
    --accent-color: #06B6D4;
    --bg-gradient: linear-gradient(135deg, #F0F9FF 0%, #BAE6FD 100%);
    --glass-shadow: 0 8px 32px 0 rgba(37, 99, 235, 0.15);
    --text-main: #1E3A8A;
}

/* 🍁 가을 테마 */
:root[data-season="autumn"], :root[data-theme="autumn"], :root[data-theme="style-fall"] {
    --primary-color: #D97706;
    --primary-hover: #B45309;
    --secondary-color: #FDE68A;
    --accent-color: #BE123C;
    --bg-gradient: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    --glass-shadow: 0 8px 32px 0 rgba(217, 119, 6, 0.15);
    --text-main: #431407;
}

/* ❄️ 겨울 테마 */
:root[data-season="winter"], :root[data-theme="winter"], :root[data-theme*="style-winter"] {
    --primary-color: #3B82F6;
    --primary-hover: #1D4ED8;
    --secondary-color: #E0F2FE;
    --accent-color: #0F766E;
    --bg-gradient: linear-gradient(135deg, #F8FAFC 0%, #DBEAFE 100%);
    --glass-shadow: 0 8px 32px 0 rgba(59, 130, 246, 0.15);
    --text-main: #1E293B;
}

/* 🎄 크리스마스 테마 */
:root[data-season="xmas"], :root[data-theme="xmas"] {
    --primary-color: #DC2626;
    --primary-hover: #B91C1C;
    --secondary-color: #FEE2E2;
    --accent-color: #15803D;
    --bg-gradient: linear-gradient(135deg, #FEF2F2 0%, #F0FDF4 100%);
    --glass-shadow: 0 8px 32px 0 rgba(220, 38, 38, 0.18);
    --text-main: #1C1917;
}

/* 🌅 새해 해돋이 테마 (1월 초) */
:root[data-season="newyear"], :root[data-theme="newyear"] {
    --primary-color: #D97706;
    --primary-hover: #B45309;
    --secondary-color: #FEF3C7;
    --accent-color: #DC2626;
    --bg-gradient: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    --glass-shadow: 0 8px 32px 0 rgba(217, 119, 6, 0.16);
    --text-main: #1C1917;
}

/* 💐 스승의 날 / 감사의 달 테마 (5월 상순) */
:root[data-season="teachers"], :root[data-theme="teachers"] {
    --primary-color: #E11D48;
    --primary-hover: #BE123C;
    --secondary-color: #FFE4E6;
    --accent-color: #059669;
    --bg-gradient: linear-gradient(135deg, #FFF1F2 0%, #FCE7F3 100%);
    --glass-shadow: 0 8px 32px 0 rgba(225, 29, 72, 0.16);
    --text-main: #1E293B;
}

/* 📖 한글날 / 문화의 주간 테마 (10월 초) */
:root[data-season="hangul"], :root[data-theme="hangul"] {
    --primary-color: #2563EB;
    --primary-hover: #1D4ED8;
    --secondary-color: #E0E7FF;
    --accent-color: #DC2626;
    --bg-gradient: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    --glass-shadow: 0 8px 32px 0 rgba(37, 99, 235, 0.15);
    --text-main: #0F172A;
}

/* 🌧️ 비 오는 날 실시간 날씨 테마 */
:root[data-season="rain"], :root[data-theme="rain"] {
    --primary-color: #0284C7;
    --primary-hover: #0369A1;
    --secondary-color: #E0F2FE;
    --accent-color: #0284C7;
    --bg-gradient: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    --glass-shadow: 0 8px 32px 0 rgba(2, 132, 199, 0.16);
    --text-main: #0F172A;
}

/* 🏢 기업용 SaaS 테마 */
:root[data-theme="saas"], :root[data-theme="style-SaaS"] {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --secondary-color: #6366F1;
    --accent-color: #0EA5E9;
    --bg-gradient: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    --glass-bg: #FFFFFF;
    --glass-border: 1px solid #E5E7EB;
    --glass-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 📑 구글 머티리얼 테마 */
:root[data-theme="material"], :root[data-theme="style-mertriel"] {
    --primary-color: #1A73E8;
    --primary-hover: #1557B0;
    --secondary-color: #E8F0FE;
    --accent-color: #188038;
    --bg-gradient: linear-gradient(135deg, #F8F9FA 0%, #E8EAED 100%);
    --glass-bg: #FFFFFF;
    --glass-border: 1px solid #DADCE0;
}

/* ==========================================================================
   [다크 모드 시스템]
   ========================================================================== */
:root[data-theme-dark="true"], :root[data-theme-mode="dark"] {
    --glass-bg: rgba(24, 28, 42, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --text-main: #F1F5F9;
    --text-sub: #94A3B8;
    --bg-gradient: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
}

:root[data-theme-dark="true"] body, :root[data-theme-mode="dark"] body {
    color: #F1F5F9;
    background: var(--bg-gradient);
    background-attachment: fixed;
}

:root[data-theme-dark="true"] .card, :root[data-theme-mode="dark"] .card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme-dark="true"] input, 
:root[data-theme-dark="true"] select, 
:root[data-theme-dark="true"] textarea,
:root[data-theme-mode="dark"] input,
:root[data-theme-mode="dark"] select,
:root[data-theme-mode="dark"] textarea {
    background: #0F172A;
    color: #F8FAFC;
    border-color: #334155;
}

/* 다크 모드 테이블 제목 줄 (테마 색상 어두운 톤 연동) */
:root[data-theme-dark="true"] .styled-table th,
:root[data-theme-mode="dark"] .styled-table th,
:root[data-theme-dark="true"] #substitute-table th,
:root[data-theme-mode="dark"] #substitute-table th,
:root[data-theme-dark="true"] #time-table th,
:root[data-theme-mode="dark"] #time-table th,
:root[data-theme-dark="true"] #monthly-table th,
:root[data-theme-mode="dark"] #monthly-table th,
:root[data-theme-dark="true"] #student-status-table th,
:root[data-theme-mode="dark"] #student-status-table th,
:root[data-theme-dark="true"] #edu-site-table th,
:root[data-theme-mode="dark"] #edu-site-table th,
:root[data-theme-dark="true"] #tab-submit .styled-table th,
:root[data-theme-mode="dark"] #tab-submit .styled-table th,
:root[data-theme-dark="true"] .detail-table th,
:root[data-theme-mode="dark"] .detail-table th {
    background: color-mix(in srgb, var(--primary-color, #8B5CF6) 24%, #1E293B) !important;
    color: color-mix(in srgb, var(--primary-color, #8B5CF6) 75%, #FFFFFF) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color, #8B5CF6) 30%, transparent) !important;
}

:root[data-theme-dark="true"] .styled-table tr:hover td,
:root[data-theme-mode="dark"] .styled-table tr:hover td {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* 다크 모드 오늘 날짜 카드 및 링크 호버 테마 연동 */
:root[data-theme-dark="true"] .day-card.today,
:root[data-theme-mode="dark"] .day-card.today {
    background: color-mix(in srgb, var(--primary-color, #8B5CF6) 18%, #1E293B) !important;
    border: 2px solid var(--primary-color, #8B5CF6) !important;
}

:root[data-theme-dark="true"] .dashboard-link-item,
:root[data-theme-mode="dark"] .dashboard-link-item {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme-dark="true"] .dashboard-link-item:hover,
:root[data-theme-mode="dark"] .dashboard-link-item:hover {
    background: color-mix(in srgb, var(--primary-color, #8B5CF6) 22%, #1E293B) !important;
    border-color: color-mix(in srgb, var(--primary-color, #8B5CF6) 40%, transparent) !important;
}

/* 다크 모드 사이트 비밀번호 마스킹 및 보기/복사 버튼 */
:root[data-theme-dark="true"] .btn-pw-toggle,
:root[data-theme-mode="dark"] .btn-pw-toggle,
:root[data-theme-dark="true"] .btn-pw-copy,
:root[data-theme-mode="dark"] .btn-pw-copy {
    background: #1E293B !important;
    border-color: #334155 !important;
    color: #CBD5E1 !important;
}

:root[data-theme-dark="true"] .site-pw-masked,
:root[data-theme-mode="dark"] .site-pw-masked {
    color: #94A3B8 !important;
}

/* ==========================================================================
   [스킨바 (Skin Bar) UI 스타일]
   ========================================================================== */
.skin-bar-widget {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.skin-bar-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

:root[data-theme-dark="true"] .skin-bar-inner {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* 현재 선택된 스킨 버튼 (화살표 없이 순수 동그라미만 표시) */
.skin-current-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 2px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skin-current-btn:hover {
    transform: scale(1.15);
}

.skin-current-btn .current-chip {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    display: block;
}

/* 왼쪽으로 슬라이딩되어 한 줄로 펼쳐지는 스킨 팔레트 */
.skin-palette-sliding {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(12px) scaleX(0.85);
    transform-origin: right center;
    transition: max-width 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.22s ease, 
                transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
                margin 0.32s ease;
    margin-right: 0;
}

/* 열렸을 때 (슬라이딩 오픈) */
.skin-bar-widget.open .skin-palette-sliding {
    max-width: 320px;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transform: translateX(0) scaleX(1);
    margin-right: 6px;
}

.skin-chip {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.skin-chip:hover {
    transform: scale(1.25);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.skin-chip.active {
    transform: scale(1.2);
    border-color: #FFFFFF;
    box-shadow: 0 0 0 2px var(--primary-color, #7C3AED), 0 3px 8px rgba(0, 0, 0, 0.25);
}

.skin-chip-white.active {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 2px #3B82F6, 0 3px 8px rgba(59, 130, 246, 0.35);
}

.skin-divider {
    width: 1px;
    height: 16px;
    background: rgba(0, 0, 0, 0.12);
    margin: 0 2px;
}

:root[data-theme-dark="true"] .skin-divider {
    background: rgba(255, 255, 255, 0.15);
}

.skin-mode-btn {
    background: none;
    border: none;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
    line-height: 1;
}

.skin-mode-btn:hover {
    transform: rotate(20deg) scale(1.15);
}

@media (max-width: 900px) {
    .skin-bar-widget {
        position: static;
        transform: none;
        margin-top: 10px;
        display: flex;
        justify-content: center;
    }
}

/* ==========================================================================
   [미제출 자료집계 빨간색 글씨 & 점선 테두리 & 파티클 글로우 효과]
   ========================================================================== */
.unsubmitted-title-particle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: #DC2626 !important;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1.5px dashed #EF4444;
    background: rgba(254, 242, 242, 0.4);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15), 0 0 8px rgba(239, 68, 68, 0.25);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    animation: borderParticlePulse 2s infinite ease-in-out;
}

/* 점선 테두리에 은은하게 계속 반복되는 파티클/글로우 효과 */
@keyframes borderParticlePulse {
    0%, 100% {
        border-color: #EF4444;
        box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15), 0 0 6px rgba(239, 68, 68, 0.2);
    }
    50% {
        border-color: #DC2626;
        box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.35), 0 0 12px rgba(239, 68, 68, 0.5);
    }
}

/* 마우스 올렸을 때 버튼이 눈에 띄게 나타나는 효과 */
.unsubmitted-title-particle:hover {
    background: #FEE2E2 !important;
    border-color: #DC2626 !important;
    border-style: solid !important;
    color: #B91C1C !important;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.32), 0 0 0 2px rgba(220, 38, 38, 0.4) !important;
}

:root[data-theme-dark="true"] .unsubmitted-title-particle {
    background: rgba(69, 10, 10, 0.3);
    border-color: #EF4444;
    color: #F87171 !important;
}

:root[data-theme-dark="true"] .unsubmitted-title-particle:hover {
    background: rgba(127, 29, 29, 0.6) !important;
    border-color: #F87171 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45) !important;
}

/* ==========================================================================
   [학교보드 미작성 카드 빨간색 점선 테두리]
   ========================================================================== */
.padlet-post-card.unposted-board {
    border: 2px dashed #EF4444 !important;
    background: rgba(254, 242, 242, 0.75) !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.22), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

:root[data-theme-dark="true"] .padlet-post-card.unposted-board {
    background: rgba(69, 10, 10, 0.4) !important;
    border-color: #EF4444 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.3) !important;
}

/* ==========================================================================
   [고급 마이크로 인터랙션 (Micro-Interactions)]
   ========================================================================== */

/* 버튼 클릭 물결 파동 (Material Ripple) */
.btn, .btn-confirm, .btn-cancel, .tab-btn {
    position: relative;
    overflow: hidden;
}

.micro-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 카드 및 대시보드 아이템 호버 인터랙션 */
.card, .day-card, .dashboard-link-item {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   [계절별 SVG 캐릭터 & 크리스마스 애니메이션 장식]
   ========================================================================== */
.season-decor-container {
    pointer-events: none;
}

.season-char-box {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99985;
    pointer-events: auto;
    cursor: pointer;
    animation: charBounce 3s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes charBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.char-bubble {
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: translateY(-6px);
    background: #FFFFFF;
    color: #1E293B;
    border-radius: 14px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border: 1.5px solid var(--primary-color);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.char-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 28px;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-color);
}

.season-char-box:hover .char-bubble {
    opacity: 1;
    transform: translateY(-12px);
}

/* 여름 수영하는 어린이 튜브 출렁임 애니메이션 */
.swimmer-box {
    animation: swimmerFloat 2.6s ease-in-out infinite !important;
}

@keyframes swimmerFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(1.2deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
    75% { transform: translateY(-4px) rotate(-1.2deg); }
}

:root[data-theme-dark="true"] .char-bubble {
    background: #1E293B;
    color: #F8FAFC;
}

/* 크리스마스 장식 */
.xmas-tree {
    position: fixed;
    left: 15px;
    bottom: 10px;
    z-index: 99985;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
    animation: treeGlow 2s infinite alternate;
}

.tree-star {
    animation: starTwinkle 1s ease-in-out infinite alternate;
    transform-origin: 50px 16px;
}

.tree-bulb {
    animation: bulbTwinkle 1.4s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
    from { opacity: 0.6; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.15); }
}

@keyframes bulbTwinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.xmas-garland {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 18px;
    z-index: 99989;
    pointer-events: none;
    background: radial-gradient(circle at 10px 8px, #EF4444 4px, transparent 5px),
                radial-gradient(circle at 35px 8px, #FACC15 4px, transparent 5px),
                radial-gradient(circle at 60px 8px, #22C55E 4px, transparent 5px),
                radial-gradient(circle at 85px 8px, #3B82F6 4px, transparent 5px);
    background-size: 100px 18px;
    animation: garlandBlink 1.2s infinite alternate;
}

@keyframes garlandBlink {
    from { opacity: 0.6; filter: brightness(0.9); }
    to { opacity: 1; filter: brightness(1.3); }
}

/* ==========================================================================
   ✨ 1. 상단 타이틀 광택 애니메이션 & 로고 부드러운 확대 (Title Shine & Hover Zoom)
   ========================================================================== */
.header-left {
    display: inline-flex !important;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-logo {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease !important;
    transform-origin: center center;
}

.header-left:hover .header-logo {
    transform: scale(1.1) rotate(-3deg);
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.95)) drop-shadow(0 6px 16px rgba(124, 58, 237, 0.45));
}

.header-text-group {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    padding: 2px 8px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-left:hover .header-text-group {
    transform: scale(1.03);
}

#system-name {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* 유리처럼 반짝이는 사선 빛줄기가 타이틀을 스쳐 지나감 */
.header-text-group::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -130%;
    width: 60%;
    height: 200%;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.95) 48%, rgba(180, 235, 255, 0.6) 55%, transparent 75%);
    transform: rotate(25deg);
    pointer-events: none;
    opacity: 0;
}

.header-left:hover .header-text-group::after {
    opacity: 1;
    animation: titleShineBeam 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes titleShineBeam {
    0% { left: -130%; }
    100% { left: 160%; }
}

/* ==========================================================================
   ✨ 2. 샤인(Shine) 빛 효과 (#shineFx) - 클릭 가능한 요소 호버 시 사선 유리 광택
   ========================================================================== */
#shineFx {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 99999;
    opacity: 0;
}

#shineFx.on {
    opacity: 1;
}

#shineFx i {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.9) 46%, rgba(150, 225, 240, 0.45) 54%, transparent 70%);
    transform: translateX(-120%);
}

#shineFx.on i {
    animation: fxs 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fxs {
    to { transform: translateX(120%); }
}

/* ==========================================================================
   ✨ 3. 학교보드(Padlet) 글래스모피즘, 7가지 파스텔 메모지 & 투표 프로그레스 바
   ========================================================================== */
.padlet-column-wrapper {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.padlet-post-card, .inline-post-card {
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-color 0.25s ease !important;
}

.padlet-post-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14), 0 6px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    z-index: 10 !important;
}

/* 7가지 파스텔 메모지 색상 (글래스모피즘 반투명 유리 결합) */
.padlet-post-card.pc-yellow {
    background: rgba(255, 243, 168, 0.85) !important;
    border-color: rgba(254, 224, 71, 0.65) !important;
}
.padlet-post-card.pc-orange {
    background: rgba(255, 225, 189, 0.85) !important;
    border-color: rgba(251, 146, 60, 0.65) !important;
}
.padlet-post-card.pc-pink {
    background: rgba(255, 217, 228, 0.85) !important;
    border-color: rgba(244, 114, 182, 0.65) !important;
}
.padlet-post-card.pc-green {
    background: rgba(216, 243, 210, 0.85) !important;
    border-color: rgba(134, 239, 172, 0.65) !important;
}
.padlet-post-card.pc-blue {
    background: rgba(211, 235, 255, 0.85) !important;
    border-color: rgba(147, 197, 253, 0.65) !important;
}
.padlet-post-card.pc-purple {
    background: rgba(229, 220, 255, 0.85) !important;
    border-color: rgba(196, 181, 253, 0.65) !important;
}
.padlet-post-card.pc-gray {
    background: rgba(230, 233, 238, 0.85) !important;
    border-color: rgba(203, 213, 225, 0.65) !important;
}
.padlet-post-card.pc-white {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

/* 투표(Poll) 위젯 카드 & 백분율 프로그레스 바 */
.padlet-post-poll {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    padding: 14px !important;
    margin-top: 12px !important;
}

.poll-option-row {
    margin-bottom: 12px;
}

.poll-bar-container {
    position: relative;
    width: 100%;
    height: 18px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 9px;
    overflow: hidden;
    margin-top: 5px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.poll-bar-fill {
    height: 100%;
    border-radius: 9px;
    background: linear-gradient(90deg, #8B5CF6, #C084FC);
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.poll-bar-fill.my-pick {
    background: linear-gradient(90deg, #7C3AED, #6366F1) !important;
}

/* ==========================================================================
   ✨ 4. 간편 로그인 모달 (#qlogin / #modal-overlay) - 뽀얀 블러 & 세련된 팝업 카드
   ========================================================================== */
#modal-overlay, #qlogin {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.48) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 16px !important;
    z-index: 15000 !important;
    transition: opacity 0.25s ease !important;
}

#modal-overlay.hidden, #qlogin.hidden {
    display: none !important;
}

#modal-box, .qcard {
    width: min(340px, 92vw) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-radius: 28px !important;
    padding: 34px 28px 26px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.6) inset !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    animation: qcardPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

@keyframes qcardPop {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

#modal-box input[type="text"], 
#modal-box input[type="password"] {
    width: 100% !important;
    padding: 13px 16px !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 14px !important;
    background: rgba(248, 250, 252, 0.88) !important;
    color: #1E293B !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
}

#modal-box input[type="text"]:focus, 
#modal-box input[type="password"]:focus {
    outline: none !important;
    border-color: #8B5CF6 !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2) !important;
}

#modal-box .modal-buttons button {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#modal-box .modal-buttons button:hover {
    transform: translateY(-2px);
}

#modal-box .modal-buttons button:active {
    transform: translateY(0);
}

/* 다크모드 대응 */
:root[data-theme-dark="true"] #modal-box,
:root[data-theme="dark"] #modal-box {
    background: rgba(16, 35, 55, 0.94) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    color: #F1F5F9 !important;
}

:root[data-theme-dark="true"] #modal-box input,
:root[data-theme="dark"] #modal-box input:focus {
    background: rgba(11, 24, 38, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #F1F5F9 !important;
}

:root[data-theme-dark="true"] #modal-title {
    color: #F1F5F9 !important;
}

/* ==========================================================================
   [테마 색상 동적 연동 보강 규칙 (10대 항목 전면 적용)]
   ========================================================================== */
/* 1. 오늘의 일과 안내 날짜 이동 버튼 & 날짜 텍스트 */
.daily-op-nav-btn {
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    background: white;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.daily-op-nav-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
}
#today-op-simple-date {
    color: var(--primary-color) !important;
}

/* 1-1. 주간 일정 이전/다음 이동 버튼 */
.slide-controls button,
.week-nav-btn {
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    background: white;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.slide-controls button:hover,
.week-nav-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

/* 2. 일과 운영 / 학교자료 각 항목 + 버튼 */
.add-btn,
.card-header .add-btn,
.material-icons.add-btn {
    color: var(--primary-color) !important;
}
.add-btn:hover,
.card-header .add-btn:hover,
.material-icons.add-btn:hover {
    color: var(--primary-hover, var(--primary-color)) !important;
}

/* 3. 월중행사 + 버튼, 이번달 글자, 이전달/이번달/다음달 버튼 */
.add-btn-large {
    color: var(--primary-color) !important;
}
#monthly-view-title {
    color: var(--primary-color) !important;
}
.btn-nav-small {
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    background: white;
    transition: all 0.2s;
}
.btn-nav-small:hover {
    background: var(--primary-color) !important;
    color: white !important;
}
.btn-today-small {
    background: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: white !important;
    transition: all 0.2s;
}
.btn-today-small:hover {
    background: var(--primary-hover, var(--primary-color)) !important;
}

/* 4. 월간달력 이번달 글자, 이전달/다음달 버튼, 요일 글자, 오늘 날짜 테두리 */
#cal-title {
    color: var(--primary-color) !important;
}
.calendar-nav-btn {
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    background: white;
    transition: all 0.2s;
}
.calendar-nav-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
}
.cal-cell.cal-today {
    box-shadow: inset 0 0 0 2px var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* 5. 학교보드 담벼락뷰/컬럼뷰 뱃지, 수정 버튼, 게시물 작성 버튼, 모달 테두리 */
.padlet-type-badge {
    color: var(--primary-color) !important;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent) !important;
}
.btn-padlet-edit {
    background: var(--primary-color) !important;
    color: white !important;
}
.padlet-fab,
#padlet-global-fab {
    background: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}
.padlet-col-add-btn {
    background: var(--primary-color) !important;
}
.padlet-type-icon {
    color: var(--primary-color) !important;
}

/* 6. 자료집계 제출하기 버튼 */
.btn-col-submit,
#submit-btn {
    background-color: var(--primary-color) !important;
    color: white !important;
}
.btn-col-submit:hover,
#submit-btn:hover {
    background-color: var(--primary-hover, var(--primary-color)) !important;
}

/* 7. 로그인 창 & 관리자 로그인 창 확인 버튼 */
#modal-box .btn-confirm,
.btn-qlogin-submit {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}
#modal-box .btn-confirm:hover,
.btn-qlogin-submit:hover {
    background: var(--primary-hover, var(--primary-color)) !important;
    transform: translateY(-1px);
}
#modal-box input[type="text"]:focus, 
#modal-box input[type="password"]:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 20%, transparent) !important;
}


