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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f9fafb;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

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

/* 기존 메인 페이지 스타일 */
.main-app {
    display: none;
}

.main-app.active {
    display: block;
}

.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e5e7eb;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #111827;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #6b7280;
}

.user-badge {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.user-badge.admin {
    background: #fef3c7;
    color: #d97706;
}

.logout-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #dc2626;
}

.nav-tabs {
    display: flex;
    gap: 4px;
}

.nav-tab {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: #6b7280;
    transition: all 0.2s;
}

.nav-tab.active {
    background: #2563eb;
    color: white;
}

.nav-tab:hover:not(.active) {
    background: #f3f4f6;
    color: #111827;
}

.nav-tab:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.main-content {
    padding: 32px 20px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.header-card {
    background: linear-gradient(to right, #2563eb, #9333ea);
    color: white;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.header-card h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* 공통 버튼 스타일 */
.btn {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-success {
    background: #16a34a;
    color: white;
}

.btn-success:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* 교육 예약 스타일 */
.reservation-container {
    max-width: 1200px;
    margin: 0 auto;
}

.reservation-content {
    display: flex;
    gap: 32px;
    margin-top: 24px;
}

.reservation-calendar-section {
    flex: 0 0 350px;
}

/* 캘린더 스타일 (EducationReservation 및 공통 사용) */
.reservation-calendar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    padding: 24px;
}

.reservation-calendar .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.reservation-calendar .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.reservation-calendar .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
}

.reservation-calendar .calendar-day:hover:not(.other-month):not(.past-day) {
    background: #e5e7eb;
}

.reservation-calendar .calendar-day.today {
    border: 2px solid #2563eb;
    font-weight: 600;
}

.reservation-calendar .calendar-day.past-day {
    color: #d1d5db;
    cursor: not-allowed;
}

.reservation-calendar .calendar-day.education-day {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.reservation-calendar .calendar-day.education-day:hover {
    background: #bfdbfe;
}

.reservation-calendar .calendar-day.reserved-day {
    background: #dcfce7;
    color: #16a34a;
    font-weight: 600;
}

.reservation-calendar .calendar-day.reserved-day::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
}

.reservation-calendar .calendar-day.selected {
    background: #2563eb;
    color: white;
}

.reservation-calendar .calendar-day.selected.education-day {
    background: #1d4ed8;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-dot.education-day {
    background: #dbeafe;
    border: 1px solid #1d4ed8;
}

.legend-dot.reserved-day {
    background: #dcfce7;
    border: 1px solid #16a34a;
}

.legend-dot.selected-day {
    background: #2563eb;
}

.reservation-detail-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.selected-date-info {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    padding: 24px;
    min-height: 200px;
}

.empty-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: #9ca3af;
}

.empty-selection .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.date-info-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.date-display .date-icon {
    font-size: 24px;
}

.date-display .date-text {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.education-info {
    padding: 16px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.education-info .education-round {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.education-info h4 {
    font-size: 18px;
    color: #111827;
    margin-bottom: 8px;
}

.education-info p {
    color: #6b7280;
    font-size: 14px;
}

.reservation-status {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.reservation-status.reserved {
    background: #dcfce7;
    color: #16a34a;
}

.no-education {
    padding: 24px;
    text-align: center;
    color: #9ca3af;
}

.my-reservations {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    padding: 24px;
}

.my-reservations h3 {
    font-size: 18px;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.reservation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.reservation-item:hover {
    background: #f3f4f6;
}

.reservation-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reservation-round {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    width: fit-content;
}

.reservation-title {
    font-weight: 600;
    color: #111827;
    font-size: 15px;
}

.reservation-date {
    font-size: 13px;
    color: #6b7280;
}

.btn-cancel-small {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-small:hover {
    background: #fecaca;
}

.no-reservations {
    text-align: center;
    color: #9ca3af;
    padding: 24px;
}

/* 시간 선택 스타일 */
.time-selection {
    margin: 16px 0;
}

.time-selection h4 {
    font-size: 16px;
    color: #374151;
    margin-bottom: 12px;
}


.time-hint {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 12px;
    text-align: center;
}

.time-hint.selected {
    color: #2563eb;
    font-weight: 500;
}


/* 반응형 디자인 */
@media (max-width: 768px) {
    .reservation-content {
        flex-direction: column;
    }

    .reservation-calendar-section {
        flex: none;
        width: 100%;
    }
}

/* 사용자 관리 스타일 */
.user-management-container {
    padding: 24px;
}

.user-management-header {
    margin-bottom: 24px;
}

.user-management-header h2 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 8px;
}

.user-management-header p {
    color: #6b7280;
}

.user-management-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.user-stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    color: #6b7280;
    font-size: 14px;
}

.stat-item strong {
    color: #111827;
}

/* 부서별 섹션 스타일 */
.department-section {
    margin-bottom: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.department-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.department-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.dept-count {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

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

.user-table thead {
    background: #f9fafb;
}

.user-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
}

.user-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

.user-table tbody tr:hover {
    background: #f9fafb;
}

.user-table tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-admin {
    background: #fef3c7;
    color: #92400e;
}

.badge-user {
    background: #e0e7ff;
    color: #3730a3;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-info:hover {
    background: #2563eb;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.empty-state {
    text-align: center;
    padding: 48px;
    color: #9ca3af;
}

/* ========== 파일 업로드 스타일 ========== */

.file-upload-area {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.15s;
}

.file-upload-area:hover {
    border-color: #9ca3af;
}

.file-upload-icon {
    color: #b0b5be;
    flex-shrink: 0;
}

.file-upload-text {
    font-size: 13px;
    color: #9ca3af;
}

.uploaded-files-list {
    margin-top: 12px;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border-bottom: 1px solid #f3f4f6;
}

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

.uploaded-file-item.pending {
    background: none;
}

.file-icon {
    display: none;
}

.file-name {
    flex: 1;
    font-size: 13px;
    color: #374151;
    word-break: break-all;
}

.file-size {
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}

.file-status {
    display: none;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 15px;
    padding: 2px 6px;
    flex-shrink: 0;
}

.btn-remove-file:hover {
    color: #6b7280;
}

.no-files {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
}


/* 첨부파일 다운로드 목록 (상세 페이지) */
.attachment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s, border-color 0.2s;
}

.attachment-item:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.attachment-icon {
    font-size: 20px;
}

.attachment-link {
    flex: 1;
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    word-break: break-all;
}

.attachment-link:hover {
    text-decoration: underline;
}

.attachment-size {
    font-size: 12px;
    color: #9ca3af;
}

/* ========================================
   교육 관리 - 예약 오픈/마감 상태
   ======================================== */
.education-admin-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    overflow: visible;
}

.education-admin-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: visible;
}

.education-admin-card.is-open {
    border-left: 4px solid #22c55e;
}

.education-admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.education-admin-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.education-admin-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    /* margin: 0 0 8px 0; */
}

.education-admin-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* 교육 폼 - 교육 개요 textarea */
.education-form #eduDescription {
    min-height: 200px;
    resize: vertical;
}

.education-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.education-status-badge.open {
    background: #dcfce7;
    color: #166534;
}

.education-status-badge.closed {
    background: #fee2e2;
    color: #991b1b;
}

.education-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

/* 타입 뱃지 - 테두리 없이 연한 배경만 (subtle 디자인) */
.education-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    border: none;
}

.education-type-round-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    border: none;
}
.education-type-round-badge.coffee {
    background: #fef3c7;
    color: #b45309;
}
.education-type-round-badge.edu {
    background: #dbeafe;
    color: #1d4ed8;
}

.education-type-badge.coffee {
    background: #fef3c7;
    color: #b45309;
}

.education-type-badge.edu {
    background: #dbeafe;
    color: #1d4ed8;
}

/* 교육 타입 선택 토글 버튼 */
.type-toggle-group {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.type-toggle-btn {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.type-toggle-btn:hover {
    background: #f9fafb;
}

.type-toggle-btn.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
}

/* 커피챗 버튼 활성화 스타일 */
.type-toggle-btn:nth-child(2).active {
    background: #fff7ed;
    border-color: #f97316;
    color: #c2410c;
    box-shadow: 0 1px 2px rgba(249, 115, 22, 0.1);
}

.btn-success {
    background: #22c55e;
    color: white;
    border: none;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-warning {
    background: #f59e0b;
    color: white;
    border: none;
}

.btn-warning:hover {
    background: #d97706;
}

.sessions-summary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}

.sessions-count {
    font-weight: 500;
    margin-right: 8px;
}

.sessions-preview {
    color: #9ca3af;
}

.no-sessions {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
    margin-top: 8px;
}

/* ========================================
   교육 폼 - 세션 관리
   ======================================== */
.session-add-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.session-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.session-input[type="date"] {
    width: 160px;
}

.session-input[type="number"] {
    width: 80px;
}

select.session-input {
    width: 120px;
}

.sessions-list {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    min-height: 60px;
}

.no-sessions-msg {
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
    margin: 0;
}

.sessions-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.session-info {
    font-size: 14px;
    color: #374151;
}

.btn-remove-session {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-remove-session:hover {
    background: #fee2e2;
}

/* ========================================
   교육 예약 - 사용자 화면
   ======================================== */
.open-educations-section {
    margin-bottom: 30px;
}

.no-open-educations {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 12px;
    color: #6b7280;
}

.education-reservation-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.education-reservation-card.already-reserved {
    border-left: 4px solid #3b82f6;
    background: #f0f9ff;
}

.edu-res-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.edu-round-badge {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.reserved-badge {
    background: #22c55e;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.edu-res-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.edu-res-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.sessions-selection {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.sessions-selection h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.session-option {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.session-option:not(.full):hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.session-option.full {
    opacity: 0.6;
}

.session-datetime {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.session-date, .session-time {
    font-size: 14px;
    color: #374151;
}

.btn-reserve {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
}

/* 내 예약 현황 */
.my-reservations-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.my-reservations-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.no-reservations {
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.reservations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.reservation-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

.reservation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reservation-round {
    background: #3b82f6;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.btn-cancel-reservation {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-cancel-reservation:hover {
    background: #fee2e2;
    color: #ef4444;
}

.reservation-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.reservation-datetime {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

/* ========================================
   교육 예약 - 새 가로 레이아웃 (교육설명 | 캘린더 | 시간)
   ======================================== */
.reservation-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.reservation-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    background: white;
    border-radius: 12px;
    padding: 28px;
    min-height: 320px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    align-items: stretch;
}

.reservation-row.reserved {
    opacity: 0.7;
    background: #f9fafb;
}

/* 교육 설명 컬럼 */
.edu-info-col {
    min-width: 0;
}

.edu-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.edu-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px 0;
}

.edu-info-summary-wrap {
    position: relative;
}

.edu-info-summary {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
    margin: 0;
    white-space: pre-line;
}

/* 미니 캘린더 컬럼 */
.calendar-col {
    width: 100%;
    min-width: 0;
}

.calendar-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: #f3f4f6;
    border-radius: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.mini-calendar {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
}

.mini-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mini-cal-month {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.mini-cal-nav {
    background: none;
    border: none;
    font-size: 16px;
    color: #6b7280;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.mini-cal-nav:hover {
    background: #e5e7eb;
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.mini-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    padding: 6px 0;
}

.mini-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 6px;
    color: #6b7280;
}

.mini-day.other-month {
    color: #d1d5db;
}

.mini-day.past-day {
    color: #d1d5db;
}

.mini-day.weekend {
    color: #ef4444;
}

.mini-day.weekend.other-month,
.mini-day.weekend.past-day {
    color: #fca5a5;
}

.mini-day.today {
    font-weight: 700;
    color: #3b82f6;
}

.mini-day.has-session {
    background: #dcfce7;
    color: #166534;
    cursor: pointer;
    font-weight: 500;
}

.mini-day.has-session:hover {
    background: #bbf7d0;
}

.mini-day.selected {
    background: #3b82f6 !important;
    color: white !important;
}

/* 시간 선택 컬럼 */
.time-col {
    width: 100%;
    min-width: 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-col .time-placeholder {
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
}

.time-col-content {
    width: 100%;
}

.time-date-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    text-align: center;
}

.time-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.time-btn {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.time-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* 태블릿 크기 - 동일 너비 유지 */
@media (max-width: 1200px) {
    .reservation-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
        padding: 14px;
    }
}

/* 작은 태블릿 - 2열 레이아웃 */
@media (max-width: 900px) {
    .reservation-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .time-col {
        grid-column: 2;
    }

    .time-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .time-btn {
        flex: 1;
        min-width: 70px;
    }
}

/* 모바일 - 완전 세로 배치 */
@media (max-width: 640px) {
    .reservation-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .time-col {
        grid-column: 1;
    }

    .time-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .time-btn {
        flex: 0 1 auto;
        min-width: 80px;
    }
}

/* ========================================
   교육 안내 - 더보기 버튼
   ======================================== */
.education-description-wrap {
    position: relative;
}

.education-description {
    margin: 0;
    line-height: 1.6;
    white-space: pre-wrap;
}

.btn-more {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
}

.btn-more:hover {
    text-decoration: underline;
}

/* 교육 상세 - 개요 텍스트 개행 처리 */
.description-text {
    white-space: pre-line;
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   Rich Text Editor (교육 내용 작성)
   ======================================== */
.form-hint {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.rich-editor-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.rich-editor-toolbar button {
    padding: 6px 12px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.rich-editor-toolbar button:hover {
    background: #e5e7eb;
}

.rich-editor-toolbar button:active {
    background: #d1d5db;
}

.toolbar-divider {
    width: 1px;
    background: #d1d5db;
    margin: 0 4px;
}

.rich-editor {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid #d1d5db;
    border-radius: 0 0 8px 8px;
    background: white;
    font-size: 14px;
    line-height: 1.8;
}

.rich-editor:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rich-editor h1, .rich-editor h2, .rich-editor h3 {
    margin: 16px 0 8px 0;
    color: #111827;
}

.rich-editor h3 {
    font-size: 16px;
}

.rich-editor p {
    margin: 8px 0;
}

.rich-editor ul, .rich-editor ol {
    margin: 8px 0;
    padding-left: 24px;
}

.rich-editor li {
    margin: 4px 0;
}

.rich-editor table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
}

.rich-editor table td, .rich-editor table th {
    border: 1px solid #d1d5db;
    padding: 8px;
}

.rich-editor table th {
    background: #f3f4f6;
}

/* 교육 상세 페이지 - 본문 내용 표시 */
.education-content-body {
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    line-height: 1.8;
}

.education-content-body h1,
.education-content-body h2,
.education-content-body h3 {
    margin: 20px 0 12px 0;
    color: #111827;
}

.education-content-body h3 {
    font-size: 16px;
    font-weight: 600;
}

.education-content-body p {
    margin: 10px 0;
}

.education-content-body ul,
.education-content-body ol {
    margin: 12px 0;
    padding-left: 24px;
}

.education-content-body li {
    margin: 6px 0;
}

.education-content-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
}

.education-content-body table td,
.education-content-body table th {
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    text-align: left;
}

.education-content-body table th {
    background: #f3f4f6;
    font-weight: 600;
}

.education-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 12px 0;
}

/* ========================================
   PDF 임베드 뷰어
   ======================================== */
.pdf-viewer-container {
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
}

.pdf-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.pdf-title {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.pdf-download-btn {
    padding: 6px 12px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: background 0.2s;
}

.pdf-download-btn:hover {
    background: #2563eb;
}

.pdf-viewer-frame {
    width: 100%;
    height: 600px;
    border: none;
    background: white;
}

.pdf-viewer-frame.expanded {
    height: 1200px;
}

/* 모바일에서는 높이 줄이기 */
@media (max-width: 768px) {
    .pdf-viewer-frame {
        height: 400px;
    }
    .pdf-viewer-frame.expanded {
        height: 600px;
    }
}