* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-rows: auto 1fr;
    gap: 20px;
    min-height: 100vh;
}

/* 헤더 */
.header {
    grid-column: 1 / -1;
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
    color: #667eea;
}

.header-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.select-label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.musical-select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    min-width: 300px;
    cursor: pointer;
    transition: all 0.3s;
}

.musical-select:focus {
    outline: none;
    border-color: #667eea;
}

/* 사이드바 */
.sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 16px;
}

.count-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.number-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
    padding-bottom: 10px;
}

.btn-add-number {
    width: 100%;
    padding: 12px;
    border: none;
    background: #48bb78;
    color: white;
    border-radius: 0 0 12px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-add-number:hover {
    background: #38a169;
}

.number-list li {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.number-list li:hover {
    background: #f8f9ff;
    padding-left: 25px;
}

.number-list li.active {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
}

.number-list li.labeled {
    background: #f0fff4;
    border-left: 4px solid #48bb78;
}

/* 메인 콘텐츠 */
.main-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 18px;
}

/* 라벨링 폼 */
.labeling-form {
    max-width: 100%;
}

/* 2단 레이아웃 */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section {
    margin-bottom: 30px;
}

.label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    font-size: 14px;
}

.input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.input:focus {
    outline: none;
    border-color: #667eea;
}

.textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
}

.textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* YouTube 임베드 */
.youtube-embed {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-wrapper {
    position: relative;
    width: 100%;
}

.youtube-embed iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

.youtube-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.youtube-link {
    position: relative;
    display: block;
    width: 100%;
    height: 300px;
    overflow: hidden;
    text-decoration: none;
}

.youtube-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}

.youtube-link:hover .play-overlay {
    background: rgba(102, 126, 234, 0.9);
}

/* 계절 선택 */
.season-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.season-btn {
    padding: 10px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.season-btn:hover {
    background: #f8f9ff;
    border-color: #667eea;
}

.season-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    font-weight: bold;
}

/* 날씨 옵션 */
.weather-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.weather-btn {
    padding: 8px 10px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    text-align: left;
}

.weather-btn:hover {
    background: #f8f9ff;
    border-color: #667eea;
}

.weather-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    font-weight: bold;
}

/* 극장 규모 */
.theater-size-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.theater-btn {
    padding: 10px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.theater-btn:hover {
    background: #f8f9ff;
    border-color: #667eea;
}

.theater-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    font-weight: bold;
}

/* 가사 섹션 */
.lyrics-section {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px;
    background: #fafafa;
}

.lyrics-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.lyrics-search-result {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: white;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

.searched-lyrics {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
    white-space: pre-wrap;
}

/* 버튼 그룹 */
.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

/* 버튼 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #e0e0e0;
    color: #555;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-add {
    background: #48bb78;
    color: white;
}

.btn-add:hover {
    background: #38a169;
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 101, 101, 0.3);
}

/* 네비게이션 */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.navigation-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.btn-nav {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-nav:hover {
    background: #667eea;
    color: white;
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-info {
    color: #999;
    font-size: 14px;
}

/* 모달 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
}

.modal-content h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
}

/* 통계 버튼 스타일 */
.stats-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    margin-left: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.stats-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5568d3 0%, #653a8d 100%);
}

.stats-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 완료 배지 스타일 */
.number-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.number-title {
    flex: 1;
}

.complete-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3);
}
