/* --- APP GLOBAL THEMES & VARIABLES --- */
:root {
    /*--bg-main: #f3f4f6;*/
     --bg-gradient: linear-gradient(135deg, red, #EE82EE);
    --card-surface: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --border-element: #e5e7eb;
    --bg-inner-section: #F5DEB3;
    --input-surface: #ffffff;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-red-trans: rgba(239, 68, 68, 0.1);
    --accent-red-text: #dc2626;
}

[data-theme="dark"] {
    /*--bg-main: #0f172a;*/
    --bg-gradient: linear-gradient(135deg, #000000, #0000ff);
    --card-surface: #1e293b;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --border-element: #4b5563;
    --bg-inner-section: #374151;
    --input-surface: #1f2937;
    --accent-red-trans: rgba(248, 113, 113, 0.2);
    --accent-red-text: #fca5a5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

body {
    /*background-color: var(--bg-main);*/
    background: var(--bg-gradient);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.theme-toggle-container {
    width: 100%;
    max-width: 1350px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.btn-theme-toggle {
    background-color: var(--card-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-element);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.app-container {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 25px;
    max-width: 1350px;
    width: 100%;
    background: var(--card-surface);
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
    }
}

/* SISI KIRI CONTROLS */
.sidebar-left {
    border-right: 1px solid var(--border-element);
    padding-right: 20px;
}

@media (max-width: 1024px) {
    .sidebar-left {
        border-right: none;
        padding-right: 0;
    }
}

.app-header {
    margin-bottom: 20px;
}

.app-header .sub-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: block;
    margin-bottom: 6px;
}

.app-header .main-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 800;
}

/* Tutorial Module Style */
.tutorial-wrapper {
    margin-bottom: 20px;
}

.btn-tutorial {
    width: 100%;
    background: var(--bg-inner-section);
    border: 1px solid var(--border-element);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btn-tutorial span {
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-tutorial small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.tutorial-content {
    background: var(--card-surface);
    border: 1px solid var(--border-element);
    border-top: none;
    padding: 15px 20px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.tutorial-content ol {
    padding-left: 16px;
}

.tutorial-content li {
    margin-bottom: 8px;
}

.form-section {
    background: var(--bg-inner-section);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 1px solid var(--border-element);
}

.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.badge-info.alert-badge {
    background: var(--accent-red-trans);
    color: var(--accent-red-text);
    border: 1px solid var(--accent-red-text);
    padding: 3px 10px;
    border-radius: 10px; /* Radius 10 request */
    font-size: 0.75rem;
    font-weight: 700;
}

.section-annotation {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

input[type="text"], textarea, select {
    padding: 10px;
    border: 1px solid var(--border-element);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--input-surface);
    color: var(--text-primary);
    outline: none;
}

.disabled-locked-input {
    background: var(--border-element) !important;
    cursor: not-allowed;
    font-weight: 500;
}

.field-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Custom Color Pickers Module */
.color-customizer-block {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-element);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.field-desc-accent {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
    margin-bottom: 8px;
}

.color-picker-row {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.picker-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.picker-item label {
    font-size: 0.75rem;
    font-weight: 600;
}

.picker-item input[type="color"] {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border-element);
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    padding: 0;
}

/* SISI KANAN PANEL */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.output-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.output-label-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.panel-main-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.slide-meta-pill {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.btn-history {
    background: transparent;
    border: 1px solid var(--border-element);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-history:hover {
    background: var(--bg-inner-section);
}

/* Terminal Area Configuration */
.terminal-container {
    display: flex;
    flex-direction: column;
    background: #0f172a;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border-element);
}

#promptOutput {
    width: 100%;
    height: 180px; /* Diperkecil menjadi 1/4 atau ukuran pendek kompak */
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.82rem;
    background: #0f172a;
    color: #38bdf8;
    border: none;
    outline: none;
    resize: none;
    line-height: 1.5;
}

.terminal-footnote {
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    margin-top: 10px;
    border-top: 1px solid #1e293b;
    padding-top: 8px;
    font-style: italic;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-primary, .btn-secondary {
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
}

.btn-secondary {
    background: #4b5563;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #374151;
}

/* Helper Utilities */
.hide {
    display: none !important;
}
/* Mengubah kata ChatGPT menjadi tombol merah inline */
.chatgpt-inline-btn {
    display: inline-block;
    background-color: #dc2626; /* Warna merah */
    color: #ffffff !important; /* Warna teks putih */
    text-decoration: none;
    padding: 2px 8px;
    margin: 0 4px;
    font-size: 12px;
    font-weight: bold;
    font-style: normal; /* Menghilangkan efek miring khusus pada tombol */
    border-radius: 4px;
    transition: background-color 0.2s;
}

/* Efek saat tombol disorot */
.chatgpt-inline-btn:hover {
    background-color: blue;
}