/* ========================================
   메인 페이지 CSS
   index.html
   ======================================== */

/* 헤더 - sticky */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 검색창 */
.search-box {
    display: flex;
    align-items: center;
    background-color: #faf8f5;
    border: 1px solid #d7ccc8;
    border-radius: 24px;
    padding: 8px 16px;
    width: 300px;
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: #5d4037;
    background-color: #fff;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: #5d4037;
}

.search-box input::placeholder {
    color: #a1887f;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: #8d6e63;
}

.search-box button:hover {
    color: #5d4037;
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.btn-outline {
    background-color: #fff;
    color: #5d4037;
    border: 1px solid #5d4037;
}

.btn-outline:hover {
    background-color: #faf8f5;
}

.btn-login {
    background-color: #5d4037;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
}

.btn-login:hover {
    background-color: #4e342e;
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 사용자 메뉴 */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.user-menu:hover {
    background-color: #faf8f5;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #5d4037;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-email {
    font-size: 14px;
    color: #5d4037;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: #fff;
    border: 1px solid #5d4037;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
}

.user-menu.active .user-dropdown {
    display: block;
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    color: #5d4037;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background-color: #faf8f5;
}

.user-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown button:last-child {
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #efebe9;
    color: #c62828;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.user-menu.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-divider {
    height: 1px;
    background: #efebe9;
    margin: 4px 0;
}

/* 네비게이션 */
.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    color: #5d4037;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.nav a:hover {
    color: #8d6e63;
}

/* 메인 섹션 */
.main-section {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-title {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e53935;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 필터 탭 */
.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid #d7ccc8;
    background-color: #fff;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: #5d4037;
}

.filter-tab.active {
    background-color: #5d4037;
    color: #fff;
    border-color: #5d4037;
}

/* 라이브 강의 그리드 */
.live-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.live-card {
    border: 2px solid #5d4037;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.live-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.live-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    background-color: #efebe9;
    overflow: hidden;
}

.live-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.live-badge.live {
    background-color: #e53935;
    color: #fff;
}

.live-badge.live::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.live-badge.scheduled {
    background-color: #5d4037;
    color: #fff;
}

.viewer-count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-info {
    padding: 16px;
}

.teacher-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.teacher-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #efebe9;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-details {
    flex: 1;
}

.teacher-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.teacher-school {
    font-size: 12px;
    color: #8d6e63;
}

.subscribe-btn {
    padding: 6px 12px;
    border: 1px solid #d7ccc8;
    background-color: #fff;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.subscribe-btn:hover {
    border-color: #e53935;
    color: #e53935;
}

.subscribe-btn.subscribed {
    background-color: #e53935;
    color: #fff;
    border-color: #e53935;
}

.live-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.class-price {
    font-size: 14px;
    font-weight: 700;
    color: #e53935;
    white-space: nowrap;
    margin-left: 8px;
}

.live-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.live-time {
    font-size: 14px;
    color: #8d6e63;
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-time.soon {
    color: #e53935;
    font-weight: 600;
}

.live-price {
    font-size: 16px;
    font-weight: 700;
    color: #5d4037;
}

/* 선생님 통계 배지 */
.teacher-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.stat-badge svg {
    flex-shrink: 0;
}

.stat-badge.viewer {
    background-color: #ffebee;
    color: #c62828;
}

.stat-badge.reservation {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.join-btn {
    width: 100%;
    padding: 12px;
    background-color: #5d4037;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.join-btn:hover {
    background-color: #4e342e;
}

.join-btn.live-now {
    background-color: #e53935;
}

.join-btn.live-now:hover {
    background-color: #c62828;
}

/* 찜한 선생님 섹션 */
.subscribed-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #d7ccc8;
}

.subscribed-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.subscribed-card {
    text-align: center;
    padding: 16px;
    border: 1px solid #d7ccc8;
    border-radius: 12px;
    background-color: #fff;
    transition: all 0.2s;
    cursor: pointer;
}

.subscribed-card:hover {
    border-color: #5d4037;
}

.subscribed-card .teacher-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    position: relative;
}

.subscribed-card .teacher-avatar.has-live::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background-color: #e53935;
    border: 2px solid #fff;
    border-radius: 50%;
}

.subscribed-card .teacher-name {
    font-size: 14px;
}

.subscribed-card .next-live {
    font-size: 12px;
    color: #8d6e63;
    margin-top: 4px;
}

.subscribed-card .next-live.live-now {
    color: #e53935;
    font-weight: 600;
}

/* 푸터 */
.footer {
    padding: 40px;
    border-top: 1px solid #5d4037;
    background-color: #fff;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-info p {
    font-size: 13px;
    color: #8d6e63;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    font-size: 13px;
    color: #8d6e63;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: #5d4037;
}

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid #d7ccc8;
    text-align: center;
    font-size: 12px;
    color: #8d6e63;
}

/* 개발용 페이지 링크 */
.dev-links {
    padding: 40px;
    background-color: #efebe9;
}

.dev-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.dev-links-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.dev-links a {
    padding: 12px 16px;
    background-color: #fff;
    border: 1px solid #5d4037;
    border-radius: 4px;
    text-decoration: none;
    color: #5d4037;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s;
}

.dev-links a:hover {
    background-color: #5d4037;
    color: #fff;
}

/* 반응형 */
@media (max-width: 1200px) {
    .live-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .subscribed-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .live-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .subscribed-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dev-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav {
        display: none;
    }
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .main-section {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .live-grid {
        grid-template-columns: 1fr;
    }
    .subscribed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   결제 모달
   ======================================== */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.payment-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.payment-content {
    position: relative;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

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

.payment-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s;
}

.payment-close:hover {
    background-color: #e0e0e0;
}

.payment-title {
    padding: 20px 24px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
}

.payment-notice {
    margin: 16px;
    padding: 12px 16px;
    background-color: #e3f2fd;
    border-radius: 8px;
    font-size: 13px;
    color: #1565c0;
}

.payment-notice strong {
    display: block;
    margin-bottom: 4px;
}

/* 강의 카드 */
.payment-class-card {
    margin: 16px;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.payment-class-thumb {
    position: relative;
    height: 120px;
    background-color: #f5f5f5;
}

.payment-class-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.payment-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background-color: #e53935;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.payment-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.payment-badge.scheduled {
    background-color: #5d4037;
}

.payment-badge.scheduled::before {
    display: none;
}

.payment-class-info {
    padding: 16px;
}

.payment-teacher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.payment-teacher img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.payment-teacher-name {
    font-size: 14px;
    font-weight: 600;
}

.payment-teacher-school {
    font-size: 12px;
    color: #888;
}

.payment-class-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.payment-class-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.payment-status {
    font-size: 13px;
    color: #e53935;
    font-weight: 600;
}

.payment-price {
    font-size: 20px;
    font-weight: 700;
    color: #5d4037;
}

/* 결제 수단 */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 16px;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:hover {
    border-color: #5d4037;
}

.payment-method.selected {
    border-color: #5d4037;
    background-color: #faf8f5;
}

.payment-method input {
    display: none;
}

.method-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.method-name {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

/* 결제 버튼 영역 */
.payment-footer {
    padding: 16px;
    border-top: 1px solid #eee;
    margin-top: 16px;
}

.payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.payment-total span:first-child {
    font-size: 14px;
    color: #666;
}

.payment-total-price {
    font-size: 24px;
    font-weight: 700;
    color: #e53935;
}

.payment-agree {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.payment-agree input {
    width: 16px;
    height: 16px;
    accent-color: #5d4037;
}

.payment-btn {
    width: 100%;
    padding: 16px;
    background-color: #e53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.payment-btn:hover:not(:disabled) {
    background-color: #c62828;
}

.payment-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* PIN 간편결제 */
.payment-method.pin-payment {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #5d4037 0%, #8d6e63 100%);
    border-color: #5d4037;
    color: #fff;
}

.payment-method.pin-payment .method-icon {
    font-size: 28px;
    margin-bottom: 0;
}

.payment-method.pin-payment .method-name {
    font-size: 14px;
    color: #fff;
    text-align: left;
}

.payment-method.pin-payment .method-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin-left: auto;
}

.payment-method.pin-payment.selected {
    background: linear-gradient(135deg, #4e342e 0%, #5d4037 100%);
}

/* PIN 입력 섹션 */
.pin-input-section {
    padding: 20px 16px;
    background-color: #faf8f5;
    border-radius: 12px;
    margin: 16px;
    text-align: center;
}

.pin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: #5d4037;
}

.pin-header a {
    font-size: 12px;
    color: #8d6e63;
    text-decoration: none;
}

.pin-header a:hover {
    text-decoration: underline;
}

/* PIN 점 표시 */
.pin-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #5d4037;
    background-color: transparent;
    transition: all 0.2s;
}

.pin-dot.filled {
    background-color: #5d4037;
}

.pin-dot.error {
    border-color: #e53935;
    background-color: #e53935;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* PIN 키패드 */
.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 240px;
    margin: 0 auto;
}

.pin-keypad button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    font-size: 24px;
    font-weight: 500;
    color: #5d4037;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pin-keypad button:hover {
    background-color: #5d4037;
    color: #fff;
}

.pin-keypad button:active {
    transform: scale(0.95);
}

.pin-keypad button.pin-empty {
    visibility: hidden;
}

.pin-keypad button.pin-delete {
    background-color: #f5f5f5;
    font-size: 20px;
}

.pin-keypad button.pin-delete:hover {
    background-color: #e0e0e0;
    color: #5d4037;
}

/* PIN 에러 메시지 */
.pin-error {
    margin-top: 12px;
    font-size: 13px;
    color: #e53935;
    min-height: 20px;
}

/* PIN 입력 섹션 숨김 (다른 결제수단 선택 시) */
.pin-input-section.hidden {
    display: none;
}

/* ========================================
   카드 버튼 영역
   ======================================== */
.card-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.schedule-btn {
    flex: 1;
    padding: 10px 12px;
    background-color: #fff;
    color: #5d4037;
    border: 2px solid #5d4037;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.schedule-btn:hover {
    background-color: #faf8f5;
}

.card-buttons .join-btn {
    flex: 1;
}

/* ========================================
   수업계획표 모달 (학생용)
   ======================================== */
.schedule-booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.schedule-booking-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.booking-content {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 24px;
    animation: modalSlideUp 0.3s ease;
}

.booking-content.booking-content-wide {
    max-width: 900px;
}

.booking-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s;
}

.booking-close:hover {
    background-color: #e0e0e0;
}

/* 선생님 헤더 */
.booking-teacher-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.booking-teacher-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #5d4037;
}

.booking-teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-teacher-name {
    font-size: 18px;
    font-weight: 700;
    color: #5d4037;
    margin-bottom: 4px;
}

.booking-teacher-school {
    font-size: 13px;
    color: #8d6e63;
}

.booking-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

/* 풀 캘린더 스타일 */
.booking-calendar-full {
    background-color: #fff;
    border: 1px solid #d7ccc8;
    border-radius: 12px;
    overflow: hidden;
}

.booking-calendar-full .booking-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #faf8f5;
    border-bottom: 1px solid #d7ccc8;
}

.booking-calendar-nav {
    display: flex;
    gap: 8px;
}

.booking-nav-btn {
    padding: 8px 16px;
    border: 1px solid #d7ccc8;
    background-color: #fff;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.booking-nav-btn:hover {
    background-color: #5d4037;
    color: #fff;
    border-color: #5d4037;
}

.booking-month {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.booking-today-btn {
    padding: 8px 16px;
    border: 1px solid #5d4037;
    background-color: #fff;
    border-radius: 6px;
    font-size: 13px;
    color: #5d4037;
    cursor: pointer;
    transition: all 0.2s;
}

.booking-today-btn:hover {
    background-color: #5d4037;
    color: #fff;
}

/* 캘린더 그리드 */
.booking-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.booking-day-header {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #5d4037;
    background-color: #faf8f5;
    border-bottom: 1px solid #d7ccc8;
}

.booking-day-header.sunday {
    color: #e53935;
}

.booking-day-header.saturday {
    color: #1976d2;
}

.booking-calendar-day {
    min-height: 90px;
    padding: 8px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.booking-calendar-day:nth-child(7n) {
    border-right: none;
}

.booking-calendar-day:hover {
    background-color: #faf8f5;
}

.booking-calendar-day.today {
    background-color: #fff8e1;
}

.booking-calendar-day.selected {
    background-color: #e3f2fd;
}

.booking-calendar-day.other-month {
    background-color: #f5f5f5;
}

.booking-calendar-day.other-month .booking-day-number {
    color: #bdbdbd;
}

.booking-day-number {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.booking-day-number.sunday {
    color: #e53935;
}

.booking-day-number.saturday {
    color: #1976d2;
}

/* 수업 이벤트 */
.booking-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-day-event {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-day-event.available {
    background-color: #e3f2fd;
    color: #1976d2;
}

/* 날짜 상세 */
.booking-day-detail {
    margin-top: 20px;
    border: 1px solid #d7ccc8;
    border-radius: 12px;
    overflow: hidden;
}

.booking-detail-title {
    padding: 16px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    background-color: #faf8f5;
    border-bottom: 1px solid #d7ccc8;
}

.booking-detail-content {
    padding: 16px;
}

.booking-detail-empty {
    text-align: center;
    padding: 40px 20px;
}

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

.booking-empty-text {
    font-size: 14px;
    color: #8d6e63;
}

/* 수업 상세 카드 */
.booking-detail-card {
    border: 1px solid #d7ccc8;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.booking-detail-card:last-child {
    margin-bottom: 0;
}

.booking-detail-card-header {
    padding: 12px 16px;
    background-color: #faf8f5;
    border-bottom: 1px solid #d7ccc8;
}

.booking-detail-subject {
    font-size: 15px;
    font-weight: 700;
    color: #5d4037;
}

.booking-detail-course {
    font-size: 13px;
    color: #8d6e63;
    margin-top: 2px;
}

.booking-detail-card-body {
    padding: 16px;
}

.booking-detail-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.booking-detail-row:last-child {
    margin-bottom: 0;
}

.booking-detail-label {
    width: 70px;
    color: #8d6e63;
    flex-shrink: 0;
}

.booking-detail-value {
    color: #333;
    font-weight: 500;
}

.booking-detail-desc {
    margin-top: 12px;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.booking-detail-card-footer {
    padding: 12px 16px;
    background-color: #faf8f5;
    border-top: 1px solid #d7ccc8;
}

.booking-reserve-btn {
    width: 100%;
    padding: 12px;
    background-color: #5d4037;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.booking-reserve-btn:hover:not(.disabled) {
    background-color: #4e342e;
}

.booking-reserve-btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 반응형 */
@media (max-width: 768px) {
    .booking-content.booking-content-wide {
        max-width: 100%;
        margin: 10px;
        padding: 16px;
    }

    .booking-calendar-day {
        min-height: 60px;
        padding: 4px;
    }

    .booking-day-number {
        font-size: 12px;
    }

    .booking-day-event {
        font-size: 10px;
        padding: 2px 4px;
    }

    .booking-nav-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .booking-month {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .booking-content {
        padding: 12px;
    }

    .booking-teacher-header {
        gap: 12px;
    }

    .booking-teacher-photo {
        width: 48px;
        height: 48px;
    }

    .booking-calendar-day {
        min-height: 50px;
    }

    .booking-day-events {
        display: none;
    }

    .booking-calendar-day.has-event::after {
        content: '';
        display: block;
        width: 6px;
        height: 6px;
        background-color: #1976d2;
        border-radius: 50%;
        margin: 2px auto 0;
    }
}
