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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f9fafb;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    background: white;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    display: inline-block;
}

header p {
    display: none;
}

main {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* 상단 메인 영역 (모니터링 + 설정) */
.main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
    background: #000;
    height: 70vh;
    max-height: 70vh;
}

/* 왼쪽: 비디오 모니터링 영역 */
.monitoring-area {
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 오른쪽: 설정 패널 영역 */
.settings-panel {
    background: white;
    overflow-y: auto;
    padding: 20px;
    border-left: 1px solid #e5e7eb;
    height: 100%;
}

.panel-title {
    color: #1f2937;
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.audio-meter-panel {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.audio-meter-panel:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.audio-meter-panel.fullscreen {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    padding: 16px 18px;
    margin-top: 24px;
    backdrop-filter: blur(6px);
}

.audio-meter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.audio-meter-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1f2937;
}

.audio-meter-panel.fullscreen .audio-meter-title {
    color: rgba(255, 255, 255, 0.85);
}

.audio-meter-mode {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.audio-meter-panel.fullscreen .audio-meter-mode {
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.audio-meter-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-meter-label {
    width: 18px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    text-align: center;
}

.audio-meter-panel.fullscreen .audio-meter-label {
    color: rgba(255, 255, 255, 0.75);
}

.audio-meter-track {
    flex: 1;
    min-width: 200px;
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.audio-meter-panel.fullscreen .audio-meter-track {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
    min-width: 240px;
}

.audio-meter-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 55%, #f97316 80%, #ef4444 100%);
    border-radius: 999px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.15);
    transition: width 0.08s ease-out;
}

.audio-meter-panel.fullscreen .audio-meter-bar {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 100%);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.25);
}

.audio-meter-value {
    width: 60px;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #374151;
    text-align: right;
}

.audio-meter-panel.fullscreen .audio-meter-value {
    color: rgba(255, 255, 255, 0.87);
}

.settings-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

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

.settings-section h4 {
    color: #374151;
    font-size: 0.95rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.device-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.device-control label {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.85rem;
}

.device-select {
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.device-select:hover {
    border-color: #9ca3af;
}

.device-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.device-select option {
    padding: 10px;
}

.custom-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.custom-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.unit-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* 새로운 비디오 섹션 */
.video-section-new {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-section-new #webcam {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 전체화면 모드 */
.video-section-new.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000;
}

/* 컨트롤 오버레이 */
.video-controls-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.recording-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}

.record-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* 전체화면 하단 컨트롤 */
.fullscreen-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fullscreen-controls.hidden {
    opacity: 0;
    pointer-events: none;
}

.fullscreen-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.storage-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.storage-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.storage-icon {
    font-size: 1rem;
}

.saving-indicator {
    font-weight: 600;
    color: #10b981;
}

.saving-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: savingPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

@keyframes savingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

#chunkCounter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-left: auto;
}

/* 무결성 모니터링 패널 */
.integrity-monitor {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
}

.integrity-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.integrity-icon {
    font-size: 1.5rem;
}

#integrityStatus {
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.integrity-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item span:last-child {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.integrity-warning {
    margin-top: 12px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 6px;
    color: #fca5a5;
    font-size: 0.85rem;
    font-weight: 600;
    animation: warningPulse 1s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 무결성 상태별 색상 */
.integrity-monitor.status-ok .integrity-icon { color: #10b981; }
.integrity-monitor.status-ok #integrityStatus { color: #10b981; }

.integrity-monitor.status-warning {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.1);
}
.integrity-monitor.status-warning .integrity-icon { color: #f59e0b; }
.integrity-monitor.status-warning #integrityStatus { color: #f59e0b; }

.integrity-monitor.status-error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.2);
    animation: errorGlow 1.5s ease-in-out infinite;
}
.integrity-monitor.status-error .integrity-icon { color: #ef4444; }
.integrity-monitor.status-error #integrityStatus { color: #ef4444; }

@keyframes errorGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }
}

.recording-timer {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.record-dot-large {
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
}

.fullscreen-stop-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fullscreen-buttons-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-fullscreen-pause {
    background: rgba(245, 158, 11, 0.95);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.btn-fullscreen-pause:hover {
    background: rgba(217, 119, 6, 1);
    transform: translateY(-2px);
}

.btn-fullscreen-pause.paused {
    background: rgba(34, 197, 94, 0.95);
}

.btn-fullscreen-pause.paused:hover {
    background: rgba(22, 163, 74, 1);
}

.btn-fullscreen-pause .icon {
    font-size: 1.3rem;
}

.btn-fullscreen-stop {
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.btn-fullscreen-stop:hover {
    background: rgba(220, 38, 38, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-fullscreen-stop .icon {
    font-size: 1.5rem;
}

.shortcut-hint-fullscreen {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* 컨트롤 래퍼 */
.control-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.shortcut-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.btn-record {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-record:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-pause {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 14px 24px;
    font-size: 1rem;
}

.btn-pause:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-pause.paused {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.btn-pause.paused:hover:not(:disabled) {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.btn-stop {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-stop:hover:not(:disabled) {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

/* 일시정지 상태의 녹화 인디케이터 */
.recording-indicator.paused {
    background: rgba(245, 158, 11, 0.9);
    animation: none;
}

.recording-indicator .pause-icon {
    font-size: 0.9rem;
    margin-right: 6px;
}

/* 일시정지 상태의 타이머 */
.recording-timer.paused {
    opacity: 0.7;
}

.recording-timer.paused .record-dot-large {
    animation: none;
    background: #f59e0b;
}

.volume-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #f59e0b 80%, #ef4444 100%);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 8px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.icon {
    font-size: 1.2rem;
}


/* 스트림 정보 간결 버전 */
.info-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row .label {
    color: #9ca3af;
    font-weight: 500;
}

.info-row span:last-child {
    color: #1f2937;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}


.storage-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.storage-quota {
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.quota-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 4px;
}

.quota-value {
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.btn-folder-compact {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-folder-compact:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.folder-status {
    font-size: 0.75rem;
    color: #059669;
    font-weight: 600;
    background: #d1fae5;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #6ee7b7;
}

/* 하단 히스토리 섹션 */
.history-section {
    background: white;
    padding: 20px 30px;
    border-top: 2px solid #e5e7eb;
}

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

.tabs-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.storage-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tab-wrapper {
    position: relative;
    display: inline-flex;
}

.tab-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.tab-remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: 2px solid white;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tab-wrapper:hover .tab-remove-btn {
    display: flex;
}

.tab-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.btn-add-folder {
    padding: 6px 12px;
    border: 2px dashed #d1d5db;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-folder:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: #faf5ff;
}

.storage-info-compact {
    font-size: 0.85rem;
    color: #6b7280;
    font-family: 'Courier New', monospace;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 6px;
}

/* 5열 그리드 레이아웃 */
.recordings-grid-5col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: #d1d5db;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.recording-item {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.recording-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

.recording-item video,
.recording-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.recording-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f2937;
    font-size: 3rem;
}

.recording-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding: 15px 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recording-item:hover .recording-overlay {
    opacity: 1;
}

.recording-info {
    color: white;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.recording-info .time {
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.recording-info .size {
    color: #d1d5db;
    margin-left: 8px;
}

/* 무결성 상태 배지 */
.integrity-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.integrity-badge.status-ok {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.integrity-badge.status-warning {
    background: rgba(245, 158, 11, 0.9);
    color: white;
    animation: badgePulse 2s ease-in-out infinite;
}

.integrity-badge.status-error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    animation: badgePulse 1s ease-in-out infinite;
}

.integrity-badge.status-checking {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 검사 중 스피너 */
.integrity-badge .spinner {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 썸네일 위 저장 Progress Bar */
.saving-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    z-index: 20;
    overflow: hidden;
}

.saving-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    transition: width 0.3s ease;
}

.saving-progress-text {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.recording-actions {
    display: flex;
    gap: 4px;
}

.recording-actions button {
    flex: 1;
    padding: 6px 8px;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recording-actions .btn-delete {
    background: #ef4444;
    color: white;
}

.recording-actions .btn-delete:hover {
    background: #dc2626;
}

.recording-actions .btn-download {
    background: #10b981;
    color: white;
}

.recording-actions .btn-download:hover {
    background: #059669;
}

.recording-actions .btn-upload {
    background: #3b82f6;
    color: white;
}

.recording-actions .btn-upload:hover {
    background: #2563eb;
}

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

.empty-state p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.empty-state .hint {
    font-size: 0.9rem;
    color: #d1d5db;
}

footer {
    background: #f9fafb;
    padding: 12px 30px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.status {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

/* 마이크 경고 모달 */
.warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.warning-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 1;
}

.warning-content h3 {
    color: #dc2626;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.warning-content p {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.warning-content strong {
    color: #1f2937;
    font-weight: 700;
}

.warning-hint {
    color: #ef4444 !important;
    font-weight: 600;
}

.warning-question {
    color: #1f2937 !important;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
}

.warning-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-warning {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #6b7280;
    color: white;
}

.btn-cancel:hover {
    background: #4b5563;
}

.btn-continue {
    background: #ef4444;
    color: white;
}

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

/* 청크 저장 진행 오버레이 */
.chunk-saving-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.chunk-saving-content {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 280px;
}

.chunk-saving-icon {
    font-size: 1.8rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.chunk-saving-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chunk-saving-title {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.chunk-saving-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chunk-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.chunk-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

#chunkSavingText {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    min-width: 60px;
    text-align: right;
}

.chunk-saving-minimize {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.chunk-saving-minimize:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 최소화 상태 */
.chunk-saving-overlay.minimized .chunk-saving-content {
    min-width: auto;
    padding: 12px 16px;
}

.chunk-saving-overlay.minimized .chunk-saving-info {
    display: none;
}

.chunk-saving-overlay.minimized .chunk-saving-minimize {
    transform: rotate(180deg);
}

/* 저장 진행 모달 */
.saving-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saving-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.saving-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f4f6;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.saving-content h3 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.saving-progress {
    margin: 20px 0;
}

.progress-bar-container {
    background: #e5e7eb;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6b7280;
    font-family: 'Courier New', monospace;
}

.saving-hint {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 15px 0 0 0;
}

/* 미리보기 모달 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: #1f2937;
    border-radius: 16px;
    padding: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 1200px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 모달 스크롤바 스타일 */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-content video {
    width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    margin-bottom: 15px;
}

.modal-info {
    color: #d1d5db;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-modal {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-delete {
    background: #ef4444;
    color: white;
}

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

.btn-modal-download {
    background: #10b981;
    color: white;
}

.btn-modal-download:hover {
    background: #059669;
}

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

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

.btn-modal-integrity {
    background: #8b5cf6;
    color: white;
}

.btn-modal-integrity:hover {
    background: #7c3aed;
}

.btn-modal-integrity-deep {
    background: #0ea5e9;
    color: white;
}

.btn-modal-integrity-deep:hover {
    background: #0284c7;
}

.hidden {
    display: none !important;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .settings-panel {
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }
    
    .recordings-grid-5col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.3rem;
    }
    
    .video-controls-overlay {
        flex-direction: column;
    }
    
    .control-wrapper {
        width: 100%;
    }
    
    .recordings-grid-5col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recording-timer {
        font-size: 1.5rem;
    }
    
    .btn-fullscreen-stop {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .fullscreen-controls {
        padding: 30px 20px 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .shortcut-hint-fullscreen {
        font-size: 0.8rem;
    }
    
    .storage-tabs {
        flex-wrap: wrap;
    }
}

/* ========== 더보기 메뉴 ========== */
.btn-more {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-more:hover {
    background: rgba(0, 0, 0, 0.7);
}

.more-menu {
    position: absolute;
    right: 10px;
    bottom: 60px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    display: none;
    z-index: 20;
    min-width: 140px;
}

.more-menu.show {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

.more-menu button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
}

.more-menu button:hover {
    background: #f3f4f6;
    color: #111827;
}

/* ========== 심층 검사 모달 ========== */
.deep-analysis-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.deep-analysis-modal.show {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.deep-analysis-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.deep-analysis-content h3 {
    font-size: 1.3rem;
    color: #111827;
    margin-bottom: 16px;
}

.deep-analysis-filename {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 20px;
    word-break: break-all;
}

.deep-analysis-progress {
    margin-bottom: 16px;
}

.deep-analysis-progress .progress-bar-container {
    background: #e5e7eb;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.deep-analysis-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.deep-analysis-progress .progress-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
}

.deep-analysis-time {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.btn-cancel-deep {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-deep:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== 미리보기 모달 내 분석 상세 ========== */
.analysis-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.analysis-section {
    margin-bottom: 12px;
    line-height: 1.6;
}

.analysis-section strong {
    color: #374151;
}

.analysis-section small {
    display: block;
    color: #6b7280;
    margin-top: 4px;
}

.analysis-section .status-ok {
    color: #10b981;
    font-weight: 600;
}

.analysis-section .status-warning {
    color: #f59e0b;
    font-weight: 600;
}

.analysis-section .status-error {
    color: #ef4444;
    font-weight: 600;
}

.blackframe-times {
    display: block;
    color: #f59e0b;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* 모달 정보 영역 확장 */
.modal-info {
    text-align: left;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

/* ========== 토스트 알림 ========== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.analysis-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.analysis-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.analysis-toast.ok {
    border-left: 4px solid #10b981;
}

.analysis-toast.warning {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.analysis-toast.error {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.9rem;
    color: #4b5563;
    word-break: break-word;
}

.toast-details {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e5e7eb;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #374151;
}

/* 경고/에러 토스트는 클릭 가능하다는 힌트 */
.analysis-toast.warning:hover,
.analysis-toast.error:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* ========== 실시간 품질 경고 오버레이 ========== */
.quality-warning-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: none;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.quality-warning-overlay.show {
    display: flex;
}

.warning-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.warning-item {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.warning-item.show {
    opacity: 1;
    transform: translateX(0);
}

.warning-item.pulse {
    animation: warningPulse 0.5s ease;
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.warning-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.warning-message {
    font-size: 0.85rem;
    opacity: 0.9;
}

.issue-counter {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    align-self: flex-end;
    opacity: 0;
    transition: all 0.3s ease;
}

.issue-counter.has-issues {
    opacity: 1;
    background: rgba(220, 38, 38, 0.9);
}

.issue-icon {
    font-size: 1.1rem;
}

.issue-count {
    font-weight: 700;
    font-size: 1.1rem;
}

.issue-label {
    opacity: 0.8;
}

/* ========== 품질 리포트 모달 ========== */
.quality-report-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.quality-report-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.quality-report-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.report-icon {
    font-size: 2rem;
}

.report-header h3 {
    font-size: 1.3rem;
    color: #dc2626;
    margin: 0;
}

.report-filename {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.report-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.summary-item {
    flex: 1;
    background: #f3f4f6;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.summary-item.highlight {
    background: #fef2f2;
    border: 2px solid #fecaca;
}

.summary-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.summary-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.summary-item.highlight .summary-value {
    color: #dc2626;
}

.issue-list {
    margin-bottom: 20px;
}

.issue-group {
    margin-bottom: 12px;
}

.issue-type {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.issue-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.issue-time {
    background: #fee2e2;
    color: #dc2626;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.issue-more {
    color: #9ca3af;
    font-size: 0.85rem;
    padding: 4px 10px;
}

.report-recommendation {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #92400e;
}

.recommendation-time {
    font-weight: 700;
    font-size: 1.1rem;
    color: #dc2626;
}

.report-actions {
    display: flex;
    gap: 12px;
}

.btn-report-preview {
    flex: 1;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-report-preview:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-report-close {
    flex: 1;
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-report-close:hover {
    background: #e5e7eb;
}

/* ========== 메모 섹션 ========== */
.memo-section {
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

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

.memo-title {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.btn-add-marker {
    background: #10b981;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-marker:hover {
    background: #059669;
}

.video-note {
    width: 100%;
    min-height: 60px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 12px;
}

.video-note:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.marker-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
}

.marker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.marker-time {
    background: #667eea;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.marker-time:hover {
    background: #5a67d8;
}

.marker-text {
    flex: 1;
    font-size: 0.85rem;
    color: #4b5563;
}

.marker-delete {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.marker-delete:hover {
    color: #ef4444;
}

.no-markers {
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    padding: 12px;
}

/* 마커 피드백 */
.marker-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 10003;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.marker-feedback.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 전체화면 마커 버튼 */
.btn-fullscreen-marker {
    background: rgba(16, 185, 129, 0.95);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.btn-fullscreen-marker:hover {
    background: rgba(5, 150, 105, 1);
    transform: translateY(-2px);
}

.btn-fullscreen-marker .icon {
    font-size: 1.1rem;
}

/* ========== 파일명 설정 ========== */
.filename-config {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filename-config input[type="text"] {
    padding: 10px 12px;
    font-size: 0.9rem;
}

.checkbox-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-control label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-control input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.date-format {
    flex: 1;
}

.filename-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 8px;
    margin-top: 4px;
}

.preview-label {
    font-size: 0.85rem;
    color: #6b7280;
}

.preview-filename {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #667eea;
    font-size: 0.95rem;
}

/* ========== 트리밍 섹션 ========== */
.trim-section {
    margin-top: 16px;
    padding: 16px;
    background: #fef3c7;
    border-radius: 12px;
    border: 1px solid #fcd34d;
}

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

.trim-title {
    font-weight: 600;
    color: #92400e;
    font-size: 0.95rem;
}

.btn-trim-toggle {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-trim-toggle:hover {
    background: #d97706;
}

.btn-trim-toggle.active {
    background: #dc2626;
}

.trim-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trim-timeline {
    padding: 10px 0;
}

.trim-track {
    position: relative;
    height: 40px;
    background: #fde68a;
    border-radius: 8px;
    overflow: visible;
}

.trim-range {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 8px;
    pointer-events: none;
}

.trim-slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 40px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    pointer-events: none;
}

.trim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 50px;
    background: #374151;
    border-radius: 4px;
    cursor: ew-resize;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.trim-slider.start::-webkit-slider-thumb {
    background: #ef4444;
}

.trim-slider.end::-webkit-slider-thumb {
    background: #3b82f6;
}

.trim-times {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trim-time-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.trim-label {
    font-size: 0.75rem;
    color: #92400e;
    text-transform: uppercase;
}

.trim-value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: #374151;
}

.trim-duration {
    font-size: 1rem;
    font-weight: 600;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
}

.trim-actions {
    display: flex;
    gap: 10px;
}

.btn-trim-action {
    flex: 1;
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-trim-action:hover {
    background: #f3f4f6;
}

.btn-trim-action.primary {
    background: #667eea;
    color: white;
    border: none;
}

.btn-trim-action.primary:hover {
    background: #5a67d8;
}

.btn-trim-action.danger {
    background: #ef4444;
    color: white;
    border: none;
}

.btn-trim-action.danger:hover {
    background: #dc2626;
}

/* 마커 메모 편집 인풋 */
.marker-memo-edit {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.85rem;
    background: transparent;
    color: #4b5563;
    min-width: 0;
}

.marker-memo-edit:hover {
    border-color: #e5e7eb;
    background: white;
}

.marker-memo-edit:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

/* 트리밍 진행 모달 */
.trim-progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10005;
}

.trim-progress-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    min-width: 300px;
}

.trim-progress-content h3 {
    margin-bottom: 20px;
    color: #374151;
}

.trim-progress-content .progress-bar-container {
    background: #e5e7eb;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.trim-progress-content .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.trim-progress-content .progress-text {
    font-weight: 700;
    color: #667eea;
    font-size: 1.2rem;
}

.trim-hint {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 16px;
}

