/* --- CSS VARIABLES UNTUK DUAL MODE --- */
:root {
    --bg-gradient: linear-gradient(135deg, red, #EE82EE);
    --text-main: #1f2937;
    --text-sub: #4b5563;
    --card-bg: #ffffff;
    --section-bg: #f9fafb;
    --border-color: #e5e7eb;
    --input-bg: #ffffff;
    --status-tag-bg: #e5e7eb;
    --status-tag-text: #374151;
}

[data-theme="dark"] {
    --bg-gradient: linear-gradient(135deg, #000000, #0000ff);
    --text-main: #f9fafb;
    --text-sub: #9ca3af;
    --card-bg: #1f2937;
    --section-bg: #374151;
    --border-color: #4b5563;
    --input-bg: #1f2937;
    --status-tag-bg: #4b5563;
    --status-tag-text: #f3f4f6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Container Tombol Tema di Ujung Kanan Atas */
.theme-toggle-container {
    width: 100%;
    max-width: 1300px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.btn-theme-toggle {
    background:#fff;
    color:#000;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-theme-toggle:hover {
    background:#FF4500;
    color:#fff;
    box-shadow:
0 0 35px rgba(56,189,248,.8);
    /*filter: brightness(0.9);*/
}

/* Main Layout */
.app-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    max-width: 1300px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
    .app-container {
        grid-template-columns: 1fr;
    }
}

.sidebar-left {
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
}

@media (max-width: 900px) {
    .sidebar-left {
        border-right: none;
        padding-right: 0;
    }
}

.app-header {
    margin-bottom: 25px;
}

.app-header .sub-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-sub);
    font-weight: 600;
}

.app-header .main-title {
    font-size: 1.8rem;
    color: var(--text-main);
    font-weight: 700;
}

.form-section {
    background: var(--section-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 4px;
}

.form-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 6px;
}

input[type="text"], select, textarea {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    background: var(--input-bg);
    color: var(--text-main);
}

input[type="text"]:focus, select:focus, textarea:focus {
    border-color: #2563eb;
}

.row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Tag Keywords */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--input-bg);
    min-height: 42px;
    align-items: center;
}

.tag-container input {
    border: none;
    outline: none;
    padding: 4px;
    flex: 1;
    min-width: 100px;
    font-size: 0.9rem;
    background: transparent;
    color: var(--text-main);
}

.tag-badge {
    background: #2563eb;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-badge .remove-tag {
    cursor: pointer;
    font-weight: bold;
    color: #bfdbfe;
}

.color-picker-group {
    display: flex;
    gap: 10px;
}

.color-picker-group input[type="color"] {
    border: none;
    width: 100%;
    height: 40px;
    cursor: pointer;
    border-radius: 6px;
    background: transparent;
}

/* SISI KANAN */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-title-right {
    font-size: 1.1rem;
    color: var(--text-main);
}

.mockup-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--section-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

.wireframe-canvas {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1/1;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow: hidden;
}

.mockup-text-preview .m-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 4px;
    font-weight: bold;
}

.mockup-text-preview .m-headline {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.mockup-image-placeholder {
    align-self: center;
    margin: auto 0;
    font-size: 0.8rem;
    opacity: 0.6;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 4px;
}

.mockup-status-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.status-tag {
    background: var(--status-tag-bg);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--status-tag-text);
}

/* Output Area dengan Ukuran yang Dikurangi Sesuai Permintaan (1/4 dari asal) */
.output-container {
    display: flex;
    flex-direction: column;
}

.output-container label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

#jsonOutput {
    width: 100%;
    height: 80px; /* Ukuran diperkecil menjadi 1/4 tinggi sebelumnya */
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    background: #1f2937;
    color: #10b981;
    padding: 12px;
    border-radius: 6px;
    resize: none;
    border: 1px solid var(--border-color);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 8px;
}

button {
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #4b5563;
    color: white;
}

.btn-secondary:hover {
    background-color: #374151;
}

/* Gaya Teks Keterangan Instruksi */
.instruction-text {
    font-size: 0.8rem;
    color: #ef4444; /* Warna aksen merah halus pemberitahuan */
    font-style: italic;
    margin-top: 6px;
    font-weight: 500;
    line-height: 1.4;
}

[data-theme="dark"] .instruction-text {
    color: #fca5a5;
}
.instruction-text {
    font-size: 13px;
    color: #000;
    font-style: italic;
    line-height: 1.6;
}

/* 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;
}
.footer{
  text-align:center;
  margin-top:25px;
  color:#cbd5e1;
  font-size:0.92rem;
}