        :root {
            --primary: #6c5ce7;
            --primary-dark: #5649c0;
            --primary-light: #a29bfe;
            --bg: #e0e5ec;
            --shadow-light: #ffffff;
            --shadow-dark: #a3b1c6;
            --text: #2d3436;
            --text-light: #636e72;
            --success: #00b894;
            --danger: #d63031;
            --warning: #fdcb6e;
        }

        .dark-mode {
            --primary: #a29bfe;
            --primary-dark: #847bd1;
            --primary-light: #6c5ce7;
            --bg: #2d3436;
            --shadow-light: #3c4245;
            --shadow-dark: #1e2224;
            --text: #dfe6e9;
            --text-light: #b2bec3;
            --success: #55efc4;
            --danger: #ff7675;
            --warning: #ffeaa7;
        }

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

        body {
            font-family: "Poppins", sans-serif;
            background-color: var(--bg);
            color: var(--text);
            line-height: 1.6;
            padding: 20px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .container {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            flex: 1;
        }

        /* Card Styles */
        .card {
            background: var(--bg);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 
                8px 8px 15px var(--shadow-dark),
                -8px -8px 15px var(--shadow-light);
            margin-bottom: 30px;
            transition: all 0.3s ease;
            width: 100%;
        }

        /* Header Styles */
        header {
            margin-bottom: 25px;
            text-align: center;
        }

        header h1 {
            color: var(--primary);
            font-size: 28px;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        /* Input Styles */
        .input-group {
            display: flex;
            margin-bottom: 25px;
            position: relative;
        }

        textarea {
            flex: 1;
            padding: 16px 20px 16px 50px;
            border: none;
            border-radius: 15px;
            font-size: 16px;
            outline: none;
            background: var(--bg);
            box-shadow: 
                inset 3px 3px 5px var(--shadow-dark),
                inset -3px -3px 5px var(--shadow-light);
            color: var(--text);
            transition: all 0.3s ease;
            font-family: "Poppins", sans-serif;
            min-height: 120px;
            resize: vertical;
        }

        .input-icon {
            position: absolute;
            left: 20px;
            top: 20px;
            color: var(--primary);
            font-size: 16px;
        }

        /* Settings Grid */
        .settings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }

        .setting-group {
            position: relative;
        }

        label {
            display: block;
            margin-bottom: 10px;
            font-weight: 500;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Enhanced Select Styles */
        .enhanced-select {
            position: relative;
        }

        .enhanced-select::after {
            content: "▾";
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            color: var(--primary);
            pointer-events: none;
        }

        select, input[type="number"] {
            width: 100%;
            padding: 15px 15px 15px 40px;
            border: none;
            border-radius: 15px;
            background: var(--bg);
            box-shadow: 
                inset 3px 3px 5px var(--shadow-dark),
                inset -3px -3px 5px var(--shadow-light);
            appearance: none;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            height: 50px;
            font-family: "Poppins", sans-serif;
        }

        /* Button Styles */
        .btn {
            padding: 12px 20px;
            border-radius: 15px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            border: none;
            box-shadow: 
                5px 5px 10px var(--shadow-dark),
                -5px -5px 10px var(--shadow-light);
            font-family: "Poppins", sans-serif;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: var(--bg);
            color: var(--primary);
        }

        .btn-secondary:hover {
            background: var(--shadow-light);
            transform: translateY(-2px);
        }

        .btn-danger {
            background: linear-gradient(135deg, var(--danger), #c0392b);
            color: white;
        }

        /* PROMPT RESULT STYLES */
        .prompt-result {
            display: none;
            margin-top: 25px;
            background: var(--bg);
            padding: 20px;
            border-radius: 15px;
            box-shadow: 
                inset 3px 3px 5px var(--shadow-dark),
                inset -3px -3px 5px var(--shadow-light);
            border: 1px solid rgba(108, 92, 231, 0.2);
            max-height: 60vh;
            overflow: auto;
        }

        #generated-prompt-output {
            font-family: 'Roboto Mono', monospace;
            font-size: 14px;
            line-height: 1.7;
            color: var(--text);
            background: rgba(108, 92, 231, 0.05);
            padding: 18px;
            border-radius: 8px;
            border-left: 3px solid var(--primary);
            white-space: pre-wrap;
            word-wrap: break-word;
            overflow-x: auto;
            margin: 15px 0;
        }

        /* Scrollbar Styling */
        .prompt-result::-webkit-scrollbar {
            width: 8px;
        }

        .prompt-result::-webkit-scrollbar-track {
            background: var(--shadow-light);
            border-radius: 10px;
        }

        .prompt-result::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }

        /* Action Buttons */
        .action-buttons {
            display: flex;
            gap: 10px;
            margin-top: 20px;
            flex-wrap: wrap;
        }

.dark-mode-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
    background: var(--bg);
    margin-left: auto;
    margin-bottom: 15px;
}

.header-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}
        /* NEW CINEMATIC PARAMETERS */
        .section-toggle {
            background: var(--bg);
            border-radius: 15px;
            padding: 15px 20px;
            margin: 15px 0;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 
                3px 3px 6px var(--shadow-dark),
                -3px -3px 6px var(--shadow-light);
            transition: all 0.3s ease;
        }

        .section-toggle:hover {
            box-shadow: 
                5px 5px 10px var(--shadow-dark),
                -5px -5px 10px var(--shadow-light);
        }

        .section-toggle h3 {
            color: var(--primary);
            margin: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-content {
            display: none;
            padding: 20px;
            background: rgba(108, 92, 231, 0.05);
            border-radius: 15px;
            margin-top: 10px;
            border-left: 3px solid var(--primary);
        }

        .section-content.show {
            display: block;
            animation: fadeIn 0.3s ease-out;
        }

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

        .pov-options {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }

        .pov-option {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--bg);
            padding: 10px;
            border-radius: 10px;
            box-shadow: 
                inset 2px 2px 4px var(--shadow-dark),
                inset -2px -2px 4px var(--shadow-light);
        }

        .range-container {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
        }

        .range-container input[type="range"] {
            flex: 1;
            -webkit-appearance: none;
            height: 8px;
            background: var(--bg);
            border-radius: 10px;
            box-shadow: 
                inset 2px 2px 4px var(--shadow-dark),
                inset -2px -2px 4px var(--shadow-light);
            padding: 0;
            height: auto;
        }

        .range-container input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .tag-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }

        .tag {
            background: var(--primary-light);
            color: var(--primary-dark);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .tag-remove {
            cursor: pointer;
            font-size: 10px;
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .settings-grid {
                grid-template-columns: 1fr;
            }
            
            .card {
                padding: 20px;
            }
            
            .prompt-result {
                padding: 15px;
                max-height: 50vh;
            }
            
            #generated-prompt-output {
                font-size: 13px;
                padding: 15px;
            }
            
            .action-buttons {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }
            
            header h1 {
                font-size: 22px;
            }
            
            .prompt-result {
                padding: 12px;
                max-height: 40vh;
            }
            
            #generated-prompt-output {
                font-size: 12px;
                padding: 12px;
            }
            
            textarea {
                padding-left: 40px;
                font-size: 14px;
            }
            
            .input-icon {
                left: 15px;
            }
        }
        
/* Gaya untuk hasil real-time */
.prompt-original, .prompt-enhanced {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.prompt-original {
  border-left: 3px solid var(--primary-light);
}

.prompt-enhanced {
  border-left: 3px solid var(--success);
  background: rgba(0, 180, 148, 0.05);
}

.prompt-original strong, .prompt-enhanced strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-light);
}

.prompt-enhanced strong {
  color: var(--success);
}

/* Animasi untuk loading */
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.loading-prompt {
  animation: pulse 1.5s infinite;
}

/* Responsif */
@media (max-width: 768px) {
  .prompt-original, .prompt-enhanced {
    padding: 12px;
    font-size: 14px;
  }
}

/* Tambahkan ini ke file CSS Anda */
.prompt-loading {
  background: rgba(108, 92, 231, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
}

.loading-bar {
  height: 4px;
  background: var(--primary-light);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
}

.loading-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: var(--primary);
  animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.original-prompt {
  background: rgba(108, 92, 231, 0.05);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 3px solid var(--primary-light);
}

.enhancement-section {
  margin-top: 20px;
}

.error-message {
  color: var(--danger);
  background: rgba(214, 48, 49, 0.1);
  padding: 10px;
  border-radius: 5px;
  margin-top: 15px;
  border-left: 3px solid var(--danger);
}

/* Add this to ensure proper spacing with more checkboxes */
.settings-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
/* Sub-options styling */
.sub-options {
    background: rgba(108, 92, 231, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    border-left: 3px solid var(--primary);
}

.sub-options h5 {
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-options h5 i {
    font-size: 14px;
}

/* Nested settings grid */
.sub-options .settings-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sub-options .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Add these new styles to your existing CSS file */

/* Narration Input */
#narration-input {
    min-height: 80px;
}

/* Advanced Effects Section */
.effects-category h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 14px;
}

.effects-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    accent-color: var(--primary);
}

/* Prompt Tabs */
.prompt-tabs {
    display: flex;
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
    margin-bottom: 15px;
}

.prompt-tab {
    padding: 8px 15px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.prompt-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.prompt-tab:hover:not(.active) {
    color: var(--primary-light);
}

.prompt-tab-content {
    display: none;
}

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

/* Advanced Settings */
#advancedContent .settings-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .effects-checkboxes {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .prompt-tabs {
        flex-wrap: wrap;
    }
    
    .prompt-tab {
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .effects-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .prompt-tabs {
        flex-direction: column;
    }
    
    .prompt-tab {
        border-bottom: none;
        border-left: 2px solid transparent;
        text-align: left;
    }
    
    .prompt-tab.active {
        border-bottom: none;
        border-left-color: var(--primary);
    }
}