/* Project: Folder Script Generator Pro
   Author: yos.my.id
   Description: CSS Lengkap untuk antarmuka Generator Folder 
*/

:root {
    --primary: #3b82f6;
    --secondary: #10b981;
    --success: #059669;
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f1f5f9;
    --border: #334155;
    --input-bg: #0f172a;
    --accent: #60a5fa;
}

/* Pengaturan Dasar */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 20px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

/* Header & Navigasi */
header {
    text-align: center;
    margin-bottom: 30px;
}

.navigation-top {
    margin-bottom: 15px;
}

.back-link {
    text-decoration: none;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary);
}

h1 {
    margin: 10px 0;
    font-size: 2.2rem;
    letter-spacing: -0.025em;
}

.subtitle {
    max-width: 700px;
    margin: 0 auto 15px;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Tombol Panduan */
.btn-guide {
    background: transparent;
    color: #94a3b8;
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    display: inline-block;
}

.btn-guide:hover {
    background: #334155;
    color: white;
    border-color: var(--primary);
}

/* Layout Utama */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 25px;
    margin-top: 20px;
}

@media (max-width: 1000px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Section Styling */
.config-section, .output-section {
    background: var(--card);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #cbd5e1;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    margin-bottom: 15px;
}

/* Form & Input */
.flex-input {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.flex-input input, .flex-input select {
    background: var(--input-bg);
    border: 1px solid #475569;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    flex: 1;
    min-width: 120px;
    outline: none;
    transition: border-color 0.2s;
}

.flex-input input:focus, .flex-input select:focus {
    border-color: var(--primary);
}

.radio-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.radio-label {
    flex: 1;
    background: var(--input-bg);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
    user-select: none;
}

.radio-label:hover {
    border-color: var(--primary);
}

.radio-label input {
    margin-right: 5px;
}

textarea {
    width: 100%;
    height: 110px;
    background: var(--input-bg);
    border: 1px solid #475569;
    color: var(--accent);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    resize: none;
    box-sizing: border-box;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    outline: none;
}

textarea:focus {
    border-color: var(--primary);
}

/* Tabs Output */
.tabs-output {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.tab-btn {
    background: #334155;
    color: #94a3b8;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.2s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

/* Kotak Tampilan (Preview & Script) */
.display-box {
    background: #000;
    border-radius: 12px;
    height: 420px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid var(--border);
}

.tree-view {
    font-family: 'Courier New', monospace;
    color: #10b981;
    white-space: pre;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-container pre {
    margin: 0;
    color: #adbac7;
    font-size: 12px;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* Logika Tombol Sembunyi & Animasi */
.hidden {
    display: none !important;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: #475569; color: white; }
.btn-success { background: var(--success); color: white; }

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 50px;
    color: #64748b;
    font-size: 0.8rem;
    padding-bottom: 30px;
}

footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    color: var(--primary);
}

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

::-webkit-scrollbar-track {
    background: var(--bg);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}