/**
 * KAICE Sidebar Classroom - 강의실 전용 스타일
 * 공통 뼈대(base.css)에 포함되지 않는 강의실만의 스타일
 */

/* ==================== 섹션 구분 ==================== */
.cr-sidebar-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--theme-card-border, var(--theme-item-border, #f0f0f0));
}

.cr-sidebar-section:last-child {
    border-bottom: none;
}

/* ==================== 교육 정보 리스트 ==================== */
.cr-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cr-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--theme-text-color);
    line-height: 1.4;
}

.cr-info-list li a {
    color: var(--theme-text-color);
    text-decoration: none;
}

.cr-info-list li a:hover {
    color: var(--theme-main-color);
}

.cr-info-icon {
    width: 16px;
    text-align: center;
    color: var(--theme-info-text);
    flex-shrink: 0;
    font-size: 13px;
}

/* ==================== 이메일 (reader에는 없음) ==================== */
.cr-user-email {
    font-size: 12px;
    color: var(--theme-info-text);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== 진도 표시 ==================== */
.cr-progress {
    /* cr-sidebar-section 내부에 단독 배치 */
}

.cr-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--theme-info-text);
}

.cr-progress-value {
    font-weight: 600;
    color: var(--theme-main-color);
}

.cr-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--theme-badge-soft-background-bg, #F5F7FA);
    border-radius: 3px;
    overflow: hidden;
}

.cr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--theme-main-color) 0%, var(--theme-color-secondary, var(--theme-main-color)) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.cr-progress-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--theme-info-text);
}

.cr-progress-detail i {
    font-size: 0.9em;
}

.cr-progress-sub {
    opacity: 0.7;
}

/* ==================== 네비게이션 메뉴 ==================== */
.cr-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 8px;
}

.cr-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--theme-button-radius, 8px);
    font-size: 14px;
    color: var(--theme-text-color);
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.cr-nav-item:hover:not(.disabled) {
    background: var(--theme-post-hover-bg, #f5f5f5);
    color: var(--theme-main-color);
}

.cr-nav-item.active {
    background: var(--theme-color-background, rgba(64, 128, 144, 0.08));
    color: var(--theme-main-color);
    font-weight: 500;
}

.cr-nav-item.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.cr-nav-icon {
    width: 18px;
    text-align: center;
    color: var(--theme-info-text);
    transition: color 0.15s;
    flex-shrink: 0;
    font-size: 14px;
}

.cr-nav-item:hover:not(.disabled) .cr-nav-icon,
.cr-nav-item.active .cr-nav-icon {
    color: var(--theme-main-color);
}

.cr-nav-label {
    flex: 1;
}

.cr-nav-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--theme-item-bg, #f5f5f5);
    border-radius: 10px;
    color: var(--theme-info-text);
}
