/* 기존 components.css 내용 유지하면서 추가 스타일만 병합 */

/* ============================================
   교육 컴포넌트 스타일
   ============================================ */

/* 교육 목록 컨테이너 */
.education-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.education-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    margin-bottom: 24px;
}

.education-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
}

.education-subtitle {
    font-size: 16px;
    color: #666;
}

/* Education Dual Columns */
.education-dual-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    position: relative;
}

.education-dual-columns::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e5e7eb;
    left: 50%;
    transform: translateX(-0.5px);
    pointer-events: none;
}

.education-column {
    padding: 4px 12px;
}

.education-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.education-column-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.education-column .education-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
}

.empty-state.compact {
    padding: 24px 16px;
}

@media (max-width: 960px) {
    .education-dual-columns {
        grid-template-columns: 1fr;
    }
    .education-dual-columns::before {
        display: none;
    }
}

/* Education Filter Tabs */
.education-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1px;
}

.edu-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.edu-tab-btn:hover {
    color: #374151;
}

.edu-tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 600;
}

/* 교육 리스트 */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
}

/* 세미나/커피챗 좌우 컬럼 내 카드 크기 통일 */
.education-dual-columns .education-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
}
.education-dual-columns .education-card {
    width: 100%;
    min-height: 280px;
}

/* 교육 카드 (관리자 등 기존 사용처 유지) */
.education-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.education-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.education-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.education-card-header .education-date {
    margin-left: auto;
}

.education-round {
    background: #3b82f6;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

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

.education-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.education-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6b7280;
}

.education-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.education-description {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.education-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.view-detail-btn {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.education-card:hover .view-detail-btn {
    color: #2563eb;
}

/* 교육 리스트 아이템 (사용자 메인 화면) */
.education-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.15s ease;
}

.education-list-item:first-child {
    border-top: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
}

.education-list-item:last-child {
    border-radius: 0 0 8px 8px;
}

.education-list-item:first-child:last-child {
    border-radius: 8px;
}

.education-list-item:hover {
    background: #f8fafc;
}

.education-list-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.education-list-item-center {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.education-list-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.education-list-desc {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.education-list-item-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.education-list-date {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

.education-list-item:hover .view-detail-btn {
    color: #2563eb;
}

/* 신청 버튼 */
.education-list-apply-btn {
    padding: 6px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.education-list-apply-btn:hover {
    background: #2563eb;
}

.education-applicant-count {
    font-size: 12px;
    color: #6b7280;
    margin-right: 6px;
    white-space: nowrap;
}

/* 신청완료 뱃지 */
.education-list-applied {
    padding: 6px 12px;
    background: #dcfce7;
    color: #16a34a;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.education-list-applied:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* 마감 뱃지 */
.education-list-closed {
    padding: 6px 12px;
    background: #f3f4f6;
    color: #9ca3af;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .education-list-item {
        flex-wrap: wrap;
        gap: 8px;
        padding: 14px 16px;
    }
    .education-list-item-right {
        width: 100%;
        justify-content: space-between;
    }
    .education-list-title {
        white-space: normal;
    }
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state p {
    font-size: 16px;
}

/* ============================================
   교육 상세 페이지 스타일
   ============================================ */

/* 상세 페이지 컨테이너 - 흰색 카드 */
.education-detail-container {
    padding: 48px 44px 56px;
    max-width: 800px;
    margin: 24px auto;
    background: #ffffff;
    border-radius: 16px;
    border: none;
}

/* 상세 헤더 */
.education-detail-header {
    margin-bottom: 40px;
}

.detail-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* 상태 뱃지 - 이미지 참고: 둥근 pill, 얇은 테두리 */
.detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.detail-badge--open {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.detail-badge--closed {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* 신청 인원 - 이미지 참고: "50명 신청" 스타일 */
.detail-participant-info {
    font-size: 14px;
    color: #6b7280;
}

.detail-participant-info strong {
    font-weight: 700;
    color: #111827;
}

/* 제목 - 이미지 참고: 크고 굵은 제목 */
.education-detail-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
    margin: 0;
    letter-spacing: -0.01em;
}

/* 구분선 - 이미지 참고: 제목 아래 얇은 선 */
.detail-header-divider {
    margin-top: 28px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
}

/* 상세 본문 - 섹션 간 여백 */
.education-detail-body {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* 섹션 제목 - 이미지 참고: 굵은 볼드, 밑줄 없음 */
.detail-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    padding: 0;
    border: none;
    letter-spacing: -0.01em;
}

/* 섹션 본문 */
.detail-section-body {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

/* 교육 자료 파일 리스트 - 이미지 참고: 얇은 구분선, 파일명+사이즈 / 다운로드 아이콘 */
.detail-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-file-item:first-child {
    border-top: none;
}

.detail-file-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.detail-file-name {
    font-size: 13px;
    color: #111827;
    font-weight: 400;
}

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

.detail-file-download {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #b0b0b0;
    transition: all 0.15s;
    text-decoration: none;
}

.detail-file-download:hover {
    background: #f3f4f6;
    color: #374151;
}

/* 참고 URL 리스트 - 이미지 참고: 파란색 링크 */
.detail-url-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-url-link {
    font-size: 15px;
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
}

.detail-url-link:hover {
    text-decoration: underline;
}

/* 하단 목록으로 버튼 - 이미지 참고: 왼쪽 정렬, 회색 둥근 버튼 */
.detail-footer {
    margin-top: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-update-info {
    font-size: 12px;
    color: #9ca3af;
}

.detail-back-btn {
    background: #f3f4f6;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}

.detail-back-btn:hover {
    background: #e5e7eb;
}

/* 교육 정보 그리드 */
.education-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 500;
}

/* 교육 섹션 */
.education-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    /* padding-bottom: 12px; */
    border-bottom: 2px solid #e5e7eb;
}

.section-content {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

/* 목표 리스트 */
.objective-list {
    list-style: none;
    padding: 0;
}

.objective-list li {
    padding: 12px 0 12px 32px;
    position: relative;
}

.objective-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 18px;
}

/* 커리큘럼 리스트 */
.curriculum-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.curriculum-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.curriculum-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.curriculum-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.curriculum-content p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.curriculum-duration {
    display: inline-block;
    font-size: 13px;
    color: #3b82f6;
    font-weight: 500;
}

/* 자료 리스트 */
.material-list {
    list-style: none;
    padding: 0;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
}

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

.material-name {
    font-size: 15px;
}

.material-link {
    font-size: 15px;
    color: #3b82f6;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
}

.material-link:hover {
    color: #2563eb;
    text-decoration: underline;
    color: #374151;
}

/* 비고 */
.notes-content {
    padding: 0;
}

.notes-content p {
    color: #374151;
}

/* 에러 메시지 */
.error-message {
    text-align: center;
    padding: 60px 20px;
}

.error-message p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 20px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* 반응형 디자인 */
@media (max-width: 768px) {
    .education-info-grid {
        grid-template-columns: 1fr;
    }

    .education-detail-title {
        font-size: 22px;
    }

    .education-detail-container {
        padding: 28px 20px 36px;
        margin: 12px;
        border-radius: 12px;
    }

    .education-detail-body {
        gap: 36px;
    }
}

/* ============================================
   무한 스크롤 - 로딩 인디케이터
   ============================================ */

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: #6b7280;
    font-size: 14px;
    grid-column: 1 / -1;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.loading-overlay-content span {
    color: #374151;
    font-size: 16px;
    font-weight: 500;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Settings (설정) 컴포넌트 스타일
   ============================================ */


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

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #374151;
}

.info-value {
    color: #1a1a1a;
}

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

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

.badge-user {
    background: #dbeafe;
    color: #1d4ed8;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    color: #374151;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* ============================================
   User Management (사용자 관리) 스타일
   ============================================ */

.user-management-container {
    padding: 20px;
}

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

.user-management-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

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

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

.search-icon-wrapper {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background-color: white;
}

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

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

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

.stat-item strong {
    color: #1a1a1a;
    font-size: 16px;
}

.user-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.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: 14px;
    border-bottom: 1px solid #e5e7eb;
}

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

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

/* 관리 열 스타일 */
.user-table td:last-child {
    text-align: right;
}

.user-table th:last-child {
    text-align: right;
    padding-right: 120px; /* 비밀번호 초기화 버튼 앞쪽 라인에 맞춤 */
}

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

.btn-small {
    padding: 6px 8px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

/* 부서별 아코디언 */
.dept-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dept-accordion-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.dept-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.dept-accordion-header:hover {
    background: #f9fafb;
}

.dept-accordion-header.expanded {
    background: #f0f5ff;
    border-bottom: 1px solid #e5e7eb;
}

.dept-accordion-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}

.dept-accordion-arrow {
    transition: transform 0.2s;
    color: #6b7280;
}

.dept-accordion-header.expanded .dept-accordion-arrow {
    transform: rotate(90deg);
}

.dept-accordion-count {
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 12px;
}

.dept-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dept-accordion-body.expanded {
    max-height: 2000px;
}

.dept-accordion-body .user-table {
    border: none;
}

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

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

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

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



.btn-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.btn-info:hover {
    background: #bfdbfe;
}

.btn-success {
    background: #dcfce7;
    color: #166534;
}

.btn-success:hover {
    background: #bbf7d0;
}

.btn-warning {
    background: #fef3c7;
    color: #d97706;
}

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

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.btn-danger:hover {
    background: #fecaca;
}

/* 페이지네이션 스타일 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.pagination-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    margin-left: 12px;
    font-size: 14px;
    color: #6b7280;
}

/* ============================================
   Education Admin (교육 관리) 스타일
   ============================================ */

/* 교육 검색바 */
.education-search-bar {
    display: flex;
    gap: 8px;
    position: relative;
}

.education-admin-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.education-search-input {
    max-width: 300px;
    padding: 10px 36px 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.education-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.education-search-input::placeholder {
    color: #9ca3af;
}

.education-search-btn {
    padding: 0 18px;
    border: 1px solid #6366f1;
    border-radius: 8px;
    background: #6366f1;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.education-search-btn:hover {
    background: #4f46e5;
}

.education-search-clear {
    position: absolute;
    right: 76px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.education-search-clear:hover {
    color: #374151;
}

.education-admin-container {
    padding: 20px;
}

.education-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.education-admin-dual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    position: relative;
}

.education-admin-dual::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #e5e7eb;
    transform: translateX(-0.5px);
    pointer-events: none;
}

.education-admin-column {
    padding: 4px 12px;
}

.education-admin-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.education-admin-column-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.education-admin-column-count {
    font-size: 13px;
    color: #6b7280;
}

.education-admin-column .education-admin-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (max-width: 1100px) {
    .education-admin-dual {
        grid-template-columns: 1fr;
    }
    .education-admin-dual::before {
        display: none;
    }
}

.education-admin-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
}

.education-admin-controls {
    margin-bottom: 24px;
}

.education-admin-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
}

/* 관리자 세미나/커피챗 좌우 컬럼 내 카드 크기 통일 */
.education-admin-dual .education-admin-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.education-admin-dual .education-admin-card {
    width: 100%;
    min-height: 300px;
}

.education-admin-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
}

.education-admin-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 관리자 리스트 아이템 */
.education-admin-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s ease;
}


.education-admin-list-item:hover {
    background: #f8fafc;
}


.education-admin-list-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.education-admin-list-center {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: visible;
}

.education-admin-list-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.education-admin-list-desc {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.education-admin-list-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.education-admin-list-date {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

.education-admin-list-capacity {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

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

/* 신청자 모달 */
.applicants-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.applicants-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.applicants-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.applicants-modal-count {
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

.applicants-modal-header .modal-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.applicants-modal-header .modal-close-btn:hover {
    color: #374151;
}

.applicants-modal-body {
    padding: 12px 20px 20px;
    overflow-y: auto;
    flex: 1;
}

.applicants-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

.applicant-empty {
    color: #9ca3af;
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
}

.applicant-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.applicant-table th {
    text-align: left;
    padding: 8px 12px;
    color: #6b7280;
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
}

.applicant-table td {
    padding: 8px 12px;
    color: #374151;
}

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

.applicant-memo-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.applicant-memo-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
}

.applicant-memo-toggle-icon {
    font-size: 10px;
    color: #9ca3af;
    transition: transform 0.2s;
}

.applicant-memo-section.open .applicant-memo-toggle-icon {
    transform: rotate(90deg);
}

.applicant-memo-toggle .applicant-memo-label {
    margin-bottom: 0;
    cursor: pointer;
}

.applicant-memo-badge {
    font-size: 11px;
    color: #6366f1;
    background: #eef2ff;
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.applicant-memo-content {
    display: none;
    margin-top: 8px;
}

.applicant-memo-section.open .applicant-memo-content {
    display: block;
}

.applicant-memo-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.applicant-memo-input {
    width: 100%;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.applicant-memo-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.applicant-memo-save-btn {
    padding: 6px 18px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.applicant-memo-save-btn:hover {
    background: #4f46e5;
}

.applicant-memo-save-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* 교육일 지정 섹션 */
.education-date-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.education-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.education-date-input {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    font-family: inherit;
}

.education-date-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.education-date-save-btn {
    padding: 6px 14px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.education-date-save-btn:hover {
    background: #4f46e5;
}

.education-date-save-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.education-date-clear-btn {
    padding: 6px 14px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.education-date-clear-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.education-date-status {
    margin-top: 8px;
    font-size: 13px;
    color: #059669;
    font-weight: 500;
}

.education-date-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
}

/* 관리자 카드 교육일 표시 */
.education-admin-list-date {
    font-size: 12px;
    color: #6366f1;
    font-weight: 500;
    white-space: nowrap;
}

/* 교육중 뱃지 */
.education-status-badge.education-day {
    background: #fee2e2;
    color: #dc2626;
}

/* 교육 완료 버튼 */
.education-complete-round-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

.education-complete-round-btn:hover {
    background: #d97706;
}

/* 교육 이력 섹션 */
.education-history-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.education-history-item {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.education-history-date {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.education-history-names {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* 리스트 아이템 border-radius 복원 */
.education-admin-list-item:first-child {
    border-top: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
}

.education-admin-list-item:last-child {
    border-radius: 0 0 8px 8px;
}

.education-admin-list-item:first-child:last-child {
    border-radius: 8px;
}

@media (max-width: 768px) {
    .education-admin-list-item {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }
    .education-admin-list-center {
        width: 100%;
        order: 2;
    }
    .education-admin-list-title {
        white-space: normal;
    }
    .education-admin-list-meta {
        order: 3;
    }
    .education-admin-list-actions {
        order: 1;
        margin-left: auto;
    }
}

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

.education-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.education-admin-actions {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

/* Badge Styles Updates - 뱃지는 subtle하게, 버튼과 구분되도록 */
.education-type-badge,
.education-round-badge,
.education-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    height: 22px;
    box-sizing: border-box;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
}

.education-status-badge::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.education-type-round-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    height: 28px;
    box-sizing: border-box;
}
.education-type-round-badge.coffee {
    background-color: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
}
.education-type-round-badge.edu {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* 타입 뱃지 - 테두리 없이 연한 배경만 */
.education-type-badge {
    background-color: #f3f4f6;
    color: #6b7280;
}
.education-type-badge.coffee {
    background-color: #fef3c7;
    color: #b45309;
}
.education-type-badge.seminar {
    background-color: #dbeafe;
    color: #1d4ed8;
}
.education-type-badge.edu {
    background-color: #dbeafe;
    color: #1d4ed8;
}

/* 회차 뱃지 - 더 subtle하게 */
.education-round-badge {
    background-color: #f3f4f6;
    color: #6b7280;
}

.education-round-badge.child,
.edu-round-badge.child {
    background-color: #ede9fe;
    color: #7c3aed;
    font-weight: 600;
}

/* Education detail page round badge with margin */
.education-detail .education-round-badge {
    margin: 0 0 12px 0;
}

/* 상태 뱃지 - 테두리 없이 연한 배경만 */
.education-status-badge {
    margin-left: 0;
    padding-left: 5px;
}

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

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

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

.education-admin-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    /* margin-bottom: 10px; */
    line-height: 1.5;
    /* Fixed height for exactly 2 lines */
    height: 2em; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.education-admin-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Fixed height for exactly 3 lines */
    height: 4.8em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.education-meta-info {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
}

/* Action Buttons Cleanup */
.btn-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid transparent;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon svg {
    width: 12px;
    height: 12px;
}

.btn-icon:hover {
    background-color: #f3f4f6;
    color: #4b5563;
}

.btn-icon.btn-delete:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.btn-icon.btn-status-close:hover {
    background-color: #fef3c7;
    color: #d97706;
}

.btn-icon.btn-status-open:hover {
    background-color: #d1fae5;
    color: #059669;
}

.btn-close-simple {
    display: none; /* Deprecated in favor of btn-icon */
}

/* 액션 버튼 - 뱃지와 확실히 구분되게 테두리 강조 */
.btn-status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    border: 1.5px solid;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    height: 26px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-status-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-status-toggle svg {
    width: 12px;
    height: 12px;
}

/* Colors for status buttons - 버튼답게 더 강한 테두리 */
.btn-status-toggle.btn-success {
    background-color: #f0fdf4;
    color: #15803d;
    border-color: #86efac;
}
.btn-status-toggle.btn-success:hover {
    background-color: #dcfce7;
    border-color: #4ade80;
}

.btn-status-toggle.btn-warning {
    background-color: #fffbeb;
    color: #b45309;
    border-color: #fcd34d;
}
.btn-status-toggle.btn-warning:hover {
    background-color: #fef3c7;
    border-color: #fbbf24;
}

.btn-status-toggle.btn-secondary {
    background-color: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}
.btn-status-toggle.btn-secondary:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.action-divider {
    width: 1px;
    height: 14px;
    background-color: #e5e7eb;
    margin: 0 2px;
}

.sessions-summary {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6b7280;
    font-size: 12px;
}

.sessions-count {
    font-size: 11px;
    color: #6b7280;
}

.sessions-preview {
    font-size: 11px;
    color: #4b5563;
}

/* Modal 스타일 */
.modal,
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #9ca3af;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 20px;
}

/* 교육 신청 모달 */
.apply-modal-info {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.apply-modal-type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    background: #6366f1;
}

.apply-modal-type-badge.coffeechat {
    background: #f59e0b;
}

.apply-modal-title {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.apply-modal-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.apply-modal-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.apply-modal-count {
    font-size: 13px;
    color: #6366f1;
    font-weight: 600;
}

.apply-modal-confirm-text {
    font-size: 14px;
    color: #374151;
    text-align: center;
    margin: 16px 0;
}

.apply-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.apply-modal-cancel-btn {
    padding: 8px 20px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.apply-modal-cancel-btn:hover {
    background: #f3f4f6;
}

.apply-modal-submit-btn {
    padding: 8px 20px;
    border: none;
    background: #6366f1;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.apply-modal-submit-btn:hover {
    background: #4f46e5;
}

.apply-modal-submit-btn:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
}

/* 신청 취소 모달 */
.cancel-modal-info {
    background: #fef2f2;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.cancel-modal-confirm-text {
    font-size: 14px;
    color: #374151;
    text-align: center;
    margin: 16px 0;
}

.cancel-modal-submit-btn {
    padding: 8px 20px;
    border: none;
    background: #ef4444;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cancel-modal-submit-btn:hover {
    background: #dc2626;
}

.cancel-modal-submit-btn:disabled {
    background: #fca5a5;
    cursor: not-allowed;
}

/* 알림 모달 (alert 대체) */
.notice-modal-content {
    max-width: 360px;
    text-align: center;
}

.notice-modal-body {
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.notice-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-modal-message {
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
    margin: 0;
    word-break: keep-all;
}

.notice-modal-ok-btn {
    padding: 8px 32px;
    border: none;
    background: #6366f1;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

.notice-modal-ok-btn:hover {
    background: #4f46e5;
}

.notice-modal-ok-btn:focus {
    outline: 2px solid #a5b4fc;
    outline-offset: 2px;
}

/* 확인 모달 (confirm 대체) */
.confirm-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.confirm-modal-cancel-btn {
    padding: 8px 28px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.confirm-modal-cancel-btn:hover {
    background: #f3f4f6;
}

.confirm-modal-ok-btn {
    padding: 8px 28px;
    border: none;
    background: #6366f1;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.confirm-modal-ok-btn:hover {
    background: #4f46e5;
}

.confirm-modal-ok-btn:focus {
    outline: 2px solid #a5b4fc;
    outline-offset: 2px;
}

.education-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .user-management-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }

}

/* ============================================
   Tooltip 스타일 (요약 전체 보기)
   ============================================ */
.has-tooltip {
    position: relative;
    cursor: pointer;
}

.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: -14px;
    right: -14px;
    top: calc(100% + 4px);
    padding: 14px 16px;
    background: #1f2937;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 8px;
    white-space: pre-wrap;
    width: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.has-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* tooltip 화살표 */
.has-tooltip::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 100%;
    border: 6px solid transparent;
    border-bottom-color: #1f2937;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.has-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* tooltip wrapper - overflow visible로 tooltip이 잘리지 않도록 */
.description-tooltip-wrap {
    position: relative;
    overflow: visible;
}

.description-tooltip-wrap .education-description,
.description-tooltip-wrap .education-admin-description,
.description-tooltip-wrap .edu-card-summary {
    margin: 0;
}

/* 관리자 페이지 툴팁 위치 조정 */
.education-admin-card .has-tooltip::after {
    top: calc(100% - 10px);
}
.education-admin-card .has-tooltip::before {
    top: calc(100% - 16px);
}

/* 리스트 아이템 툴팁 - overflow 해제 및 위치 조정 */
.education-admin-list-desc.has-tooltip,
.education-list-desc.has-tooltip {
    overflow: visible;
}
.education-admin-list-desc.has-tooltip::after,
.education-list-desc.has-tooltip::after {
    left: 0;
    right: auto;
    min-width: 280px;
    max-width: 400px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ============================================
   하위 교육 계층 구조 스타일
   ============================================ */

/* 공통 하위 교육 들여쓰기 */
.education-child-item {
    margin-left: 28px;
    border-left: 2px solid #e2e8f0;
    background: #fafbfc;
}

.education-child-indent {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    margin-right: 6px;
}

/* 관리자 목록 하위 교육 */
.education-admin-list-item.education-child-item {
    padding-left: 16px;
}

/* 사용자 목록 하위 교육 */
.education-list-item.education-child-item {
    padding-left: 16px;
}

/* 교육 상세 - 하위 교육 카드 */
.education-children-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.education-child-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.education-child-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.education-child-card-title {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.education-child-card-desc {
    font-size: 13px;
    color: #64748b;
}

/* 예약 화면 하위 교육 */
.reservation-row-child {
    margin-left: 24px;
    border-left: 2px solid #e2e8f0;
}

.reservation-row-child .reservation-row {
    border-top: none;
}

/* ============================================
   태그 스타일
   ============================================ */

/* 목록 카드 내 태그 */
.education-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.education-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.education-tag:hover {
    background: #4338ca;
    color: #fff;
}