/* 기본 리셋 및 공통 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #3366cc;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4c6ef5;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #3b5bdb;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e9ecef;
    color: #495057;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #dee2e6;
}

.btn-outline {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    color: #4c6ef5;
    border: 1px solid #4c6ef5;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #4c6ef5;
    color: white;
}

.btn-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tool:hover {
    background-color: #e9ecef;
}

.btn-tool.active {
    background-color: #4c6ef5;
    color: white;
    border-color: #4c6ef5;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: transparent;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background-color: #e9ecef;
}

.btn-tiny {
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 3px;
    background-color: #4c6ef5;
    color: white;
    border: none;
    cursor: pointer;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #343a40;
}

/* 헤더 스타일 */
.header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: #343a40;
}

.logo .tagline {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 5px;
}

.navigation ul {
    display: flex;
    gap: 1.5rem;
}

.navigation a {
    color: #495057;
    font-weight: 500;
}

.navigation a:hover {
    color: #4c6ef5;
}

/* 히어로 섹션 */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #e9f5ff 0%, #f6f6ff 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #212529;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #495057;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* 기능 섹션 */
.features {
    padding: 5rem 0;
    background-color: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #212529;
}

.feature-card p {
    color: #6c757d;
}

/* 장점 섹션 */
.advantages {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.advantages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-item {
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.advantage-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #212529;
}

.advantage-item p {
    color: #6c757d;
}

/* 사용법 섹션 */
.usage {
    padding: 5rem 0;
    background-color: white;
}

.usage-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    flex: 1;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    position: relative;
    text-align: center;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #4c6ef5;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.step h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #212529;
}

.step p {
    color: #6c757d;
}

.cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* FAQ 섹션 */
.faq {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #212529;
}

.faq-item p {
    color: #6c757d;
}

/* 푸터 */
.footer {
    padding: 3rem 0;
    background-color: #343a40;
    color: #f8f9fa;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #ced4da;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: #ced4da;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #495057;
    text-align: center;
    color: #adb5bd;
}

/* 웹 앱 스타일 */
.app-body {
    background-color: #f0f2f5;
}

.app-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.app-header .logo {
    display: flex;
    align-items: center;
}

.app-header .logo h1 {
    margin-right: 10px;
}

.app-header .logo h1 a {
    color: #343a40;
    text-decoration: none;
}

.app-navigation ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.app-main {
    padding: 2rem 0 4rem;
}

.app-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.app-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #212529;
}

.app-intro p {
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

.app-workspace {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 업로드 영역 */
.upload-area {
    padding: 3rem;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    margin: 2rem;
    text-align: center;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.upload-area:hover {
    border-color: #4c6ef5;
    background-color: #f8f9fa;
}

.upload-content {
    max-width: 500px;
    margin: 0 auto;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6c757d;
}

.upload-content h3 {
    margin-bottom: 1rem;
    color: #343a40;
}

.upload-content p {
    margin-bottom: 1.5rem;
    color: #6c757d;
}

.upload-security-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 1.5rem;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: inline-block;
}

.file-input {
    display: none;
}

/* 에디터 영역 */
.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.toolbar-left, .toolbar-right {
    display: flex;
    gap: 0.5rem;
}

.editor-main {
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .editor-main {
        flex-direction: row;
    }
    
    .video-workspace {
        flex: 3;
        max-width: 70%;
    }
    
    .editor-sidebar {
        flex: 1;
        max-width: 30%;
    }
}

.video-workspace {
    padding: 1.5rem;
    background-color: #d9d9d9;
}

.main-video {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.selection-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
}

.video-container video {
    width: 100%;
    display: block;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    background-color: #343a40;
    border-radius: 4px;
    padding: 10px 15px;
}

.btn-control {
    padding: 8px;
    width: 36px;
    height: 36px;
    background-color: #495057;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-control:hover {
    background-color: #6c757d;
}

.timeline {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #495057;
    outline: none;
    border-radius: 3px;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #4c6ef5;
    border-radius: 50%;
    cursor: pointer;
}

.time-display {
    font-size: 0.9rem;
    color: #adb5bd;
    white-space: nowrap;
}

/* 비교 뷰 */
.comparison-view {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
}

.comparison-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.original-side, .processed-side {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
}

.original-side {
    left: 0;
}

.processed-side {
    right: 0;
}

.original-side video, .processed-side video {
    height: 100%;
    width: auto;
    min-width: 100%;
    object-fit: cover;
}

.side-label {
    position: absolute;
    top: 10px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.8rem;
    border-radius: 4px;
}

.original-side .side-label {
    left: 10px;
}

.processed-side .side-label {
    right: 10px;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: #4c6ef5;
    transform: translateX(-50%);
    cursor: ew-resize;
}

.slider-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: #4c6ef5;
    border: 3px solid white;
    border-radius: 50%;
}

/* 옵션 패널 */
.options-panel {
    padding: 0;
    background-color: #f8f9fa;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.panel-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #4c6ef5;
    border-bottom-color: #4c6ef5;
}

.panel-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.options-section {
    margin-bottom: 2rem;
}

.options-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #212529;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #343a40;
}

.option-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.option-item input[type="checkbox"],
.option-item input[type="radio"] {
    margin-right: 0.5rem;
}

.mask-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 1rem;
}

.mask-option {
    text-align: center;
}

.mask-option input[type="radio"] {
    display: none;
}

.mask-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mask-option input[type="radio"]:checked + .mask-label {
    border-color: #4c6ef5;
    background-color: #edf2ff;
}

.mask-preview {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pixelate-preview {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="5" height="5" x="0" y="0" fill="%234c6ef5"/><rect width="5" height="5" x="5" y="0" fill="%233b5bdb"/><rect width="5" height="5" x="10" y="0" fill="%234c6ef5"/><rect width="5" height="5" x="15" y="0" fill="%233b5bdb"/><rect width="5" height="5" x="0" y="5" fill="%233b5bdb"/><rect width="5" height="5" x="5" y="5" fill="%234c6ef5"/><rect width="5" height="5" x="10" y="5" fill="%233b5bdb"/><rect width="5" height="5" x="15" y="5" fill="%234c6ef5"/><rect width="5" height="5" x="0" y="10" fill="%234c6ef5"/><rect width="5" height="5" x="5" y="10" fill="%233b5bdb"/><rect width="5" height="5" x="10" y="10" fill="%234c6ef5"/><rect width="5" height="5" x="15" y="10" fill="%233b5bdb"/><rect width="5" height="5" x="0" y="15" fill="%233b5bdb"/><rect width="5" height="5" x="5" y="15" fill="%234c6ef5"/><rect width="5" height="5" x="10" y="15" fill="%233b5bdb"/><rect width="5" height="5" x="15" y="15" fill="%234c6ef5"/></svg>');
    background-size: cover;
}

.blur-preview {
    background: linear-gradient(rgba(76, 110, 245, 0.3), rgba(59, 91, 219, 0.3)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%234c6ef5" /></svg>');
    background-size: cover;
    filter: blur(5px);
}

.solid-preview {
    background-color: #000;
}

.emoji-preview {
    background-color: #f8f9fa;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.emoji-btn {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emoji-btn:hover {
    background-color: #e9ecef;
}

.emoji-btn.selected {
    border-color: #4c6ef5;
    background-color: #edf2ff;
}

.color-picker {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.option-slider {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-value {
    font-weight: 600;
    color: #4c6ef5;
}

.range-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #dee2e6;
    outline: none;
    border-radius: 3px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #4c6ef5;
    border-radius: 50%;
    cursor: pointer;
}

.selection-tools {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.selected-regions {
    background-color: white;
    border-radius: 4px;
    padding: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.no-regions {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem 0;
}

.select-dropdown {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 1rem;
    color: #495057;
}

.processing-status {
    padding: 1.5rem;
    text-align: center;
}

.processing-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(76, 110, 245, 0.3);
    border-top-color: #4c6ef5;
    animation: spin 1s linear infinite;
}

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

.action-buttons {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: white;
    border-top: 1px solid #dee2e6;
}

/* 결과 영역 */
.result-area {
    padding: 2rem;
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.result-header p {
    color: #6c757d;
}

.result-preview {
    margin-bottom: 2rem;
}

.result-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
}

.info-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
}

.info-value {
    font-weight: 600;
    color: #212529;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 앱 푸터 */
.app-footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 1.5rem 0;
}

.app-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.app-footer .footer-info {
    max-width: 60%;
}

.app-footer .footer-links {
    display: flex;
    gap: 1.5rem;
}

.app-footer .footer-links a {
    color: #ced4da;
    font-size: 0.9rem;
}

.app-footer .footer-links a:hover {
    color: white;
}

.app-footer .footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* 아이콘 스타일 */
[class^="icon-"] {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-edit::before {
    content: "✏️";
}

.icon-preview::before {
    content: "👁️";
}

.icon-compare::before {
    content: "⚖️";
}

.icon-undo::before {
    content: "↩️";
}

.icon-redo::before {
    content: "↪️";
}

.icon-reset::before {
    content: "🔄";
}

.icon-play::before {
    content: "▶️";
}

.icon-volume::before {
    content: "🔊";
}

.icon-fullscreen::before {
    content: "⛶";
}

.icon-rectangle::before {
    content: "⬜";
}

.icon-ellipse::before {
    content: "⭕";
}

.icon-polygon::before {
    content: "🔺";
}

.icon-freehand::before {
    content: "✍️";
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .usage-steps {
        flex-direction: column;
    }
    
    .editor-area {
        flex-direction: column;
    }
    
    .result-info {
        justify-content: center;
    }
    
    .info-item {
        width: 50%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .feature-grid,
    .advantages-container {
        grid-template-columns: 1fr;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .app-header .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .app-footer .footer-info {
        max-width: 100%;
    }
    
    .app-footer .footer-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .mask-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .toolbar-left, .toolbar-right {
        flex-wrap: wrap;
    }
    
    .info-item {
        width: 100%;
    }
    
    .demo-toggle-wrapper {
        margin-top: 10px;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
}

/* 데모 플레이스홀더 스타일 */
.demo-placeholder {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 비율 유지 */
    background-color: #1a1e22;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.demo-placeholder-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #adb5bd;
}

.demo-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.demo-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.demo-placeholder-mini {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #212529;
    color: #adb5bd;
}

.demo-processed {
    background-color: #212529;
    position: relative;
}

.demo-processed::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
}

/* 선택된 영역 아이템 스타일 */
.region-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
    background-color: white;
}

.region-item:last-child {
    border-bottom: none;
}

.region-preview {
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    overflow: hidden;
}

.region-preview::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    background-color: rgba(76, 110, 245, 0.5);
    border-radius: 2px;
}

.region-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.region-size {
    font-size: 0.8rem;
    color: #6c757d;
}

.region-delete {
    width: 30px;
    height: 30px;
}

/* 데모 모드 토글 스위치 */
.demo-toggle-wrapper {
    display: flex;
    align-items: center;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #dee2e6;
}

.demo-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-right: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e9ecef;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4c6ef5;
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #4c6ef5;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

@media (max-width: 576px) {
    .demo-toggle-wrapper {
        margin-top: 10px;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
}

/* 메인 데모 모드 토글 버튼 */
.demo-toggle-main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 0;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border-radius: 20px;
    width: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.demo-toggle-main .demo-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    margin-right: 10px;
}

/* 앱 영역 트랜지션 */
.upload-area, 
.editor-area,
.demo-placeholder,
.demo-placeholder-mini,
.video-overlay,
.demo-overlay-area {
    transition: all 0.3s ease;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .demo-toggle-main {
        margin-top: 1.2rem;
    }
}

/* 업로드 영역 추가 스타일 */
.upload-area.drag-over {
    border-color: #4c6ef5;
    background-color: rgba(76, 110, 245, 0.05);
    transform: scale(1.01);
}

.upload-area.drag-over .upload-icon {
    transform: scale(1.1);
    color: #4c6ef5;
}

/* 아이콘 추가 스타일 */
.icon-pause::before {
    content: "⏸️";
}

.icon-mute::before {
    content: "🔇";
}

.icon-delete::before {
    content: "🗑️";
}

/* 비교 슬라이더 추가 스타일 */
.comparison-slider {
    user-select: none;
}

.slider-handle {
    cursor: ew-resize;
    z-index: 10;
}

.original-side, .processed-side {
    transition: width 0.05s ease;
}

/* 이모지 버튼 선택 효과 */
.emoji-btn.selected {
    border-color: #4c6ef5;
    background-color: #edf2ff;
    transform: scale(1.1);
}

/* 비디오 조작 관련 스타일 */
.video-overlay {
    cursor: crosshair;
}

/* 비디오 로딩 스타일 */
.video-container video {
    width: 100%;
    display: block;
    background-color: #000;
    min-height: 200px;
}

/* 처리 중 효과 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.processing-indicator .spinner {
    animation: spin 1s linear infinite, pulse 2s infinite;
}

.selection-tools .btn-tool.active {
    background-color: #4c6ef5;
    color: white;
}

/* 개선된 UI 레이아웃 스타일 */
.editor-main {
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .editor-main {
        flex-direction: row;
    }
    
    .video-workspace {
        flex: 3;
        max-width: 70%;
    }
    
    .editor-sidebar {
        flex: 1;
        max-width: 30%;
    }
}

/* 비디오 타임라인 */
.video-timeline {
    background-color: #343a40;
    padding: 10px 15px;
    border-radius: 0 0 8px 8px;
    color: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-family: monospace;
}

.timeline-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #495057;
    outline: none;
    border-radius: 4px;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #4c6ef5;
    border-radius: 50%;
    cursor: pointer;
}

/* 프로세스 버튼 */
.process-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.btn-process {
    flex: 1;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-process:first-child {
    background-color: #fa5252;
    color: white;
}

.btn-process:first-child:hover {
    background-color: #e03131;
}

.btn-process:last-child {
    background-color: #4c6ef5;
    color: white;
}

.btn-process:last-child:hover {
    background-color: #3b5bdb;
}

.btn-process:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
}

/* 에디터 사이드바 */
.editor-sidebar {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.detected-objects-panel {
    flex: 1;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detected-objects-panel h3 {
    padding: 15px;
    margin: 0;
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    font-size: 1.1rem;
}

.detection-status {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detection-status p {
    margin: 0;
    color: #495057;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top-color: #4c6ef5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.objects-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.object-item {
    display: flex;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.object-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.15);
}

.object-thumbnail {
    width: 80px;
    height: 80px;
    position: relative;
    cursor: pointer;
}

.object-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.object-checkbox {
    position: absolute;
    top: 5px;
    right: 5px;
}

.object-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.object-info {
    flex: 1;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.object-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.object-meta, .object-confidence {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 3px;
}

.object-confidence {
    color: #40c057;
    font-weight: 500;
}

/* 옵션 패널 */
.options-panel {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.panel-section {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.panel-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #212529;
}

.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.targets-section, .deidentification-section {
    background-color: #f1f3f5;
}

.intensity-section .slider-header {
    margin-bottom: 10px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.emoji-btn {
    font-size: 1.5rem;
    border: 1px solid #dee2e6;
    background-color: white;
    border-radius: 4px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emoji-btn:hover, .emoji-btn.selected {
    border-color: #4c6ef5;
    background-color: #edf2ff;
    transform: scale(1.05);
}

.action-buttons {
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

/* 비교 뷰 */
.comparison-view {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #212529;
}

.comparison-slider {
    position: relative;
    height: 300px;
}

.original-side, .processed-side {
    position: absolute;
    top: 0;
    height: 100%;
    overflow: hidden;
}

.original-side {
    left: 0;
    width: 50%;
    border-right: 2px solid #4c6ef5;
}

.processed-side {
    right: 0;
    width: 50%;
}

.original-side video, .processed-side video {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.side-label {
    position: absolute;
    top: 10px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.8rem;
    border-radius: 4px;
}

.original-side .side-label {
    left: 10px;
}

.processed-side .side-label {
    right: 10px;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #4c6ef5;
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
}

.slider-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-color: #4c6ef5;
    border: 2px solid white;
    border-radius: 50%;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .process-buttons {
        flex-direction: column;
    }
    
    .editor-sidebar {
        border-left: none;
        border-top: 1px solid #dee2e6;
    }
    
    .object-item {
        flex-direction: column;
    }
    
    .object-thumbnail {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .object-info {
        padding-left: 0;
    }
} 