/* ================================================ */
        /* == 1. VARIABLES & GLOBAL STYLES               == */
        /* ================================================ */
        :root {
            --sidebar-width: 340px;
            --header-height: 60px;
            --primary-color: #007aff;
            --primary-color-dark: #005ecb;
            --github-color: #24292e;
            --github-color-hover: #3a4046;
            --secondary-color: #34c759;
            --danger-color: #ff3b30;
            --border-radius-lg: 16px;
            --border-radius-md: 8px;
            --background-color: #f6f7f9;
            --surface-color: #ffffff;
            --text-primary: #1d1d1f;
            --text-secondary: #6e6e73;
            --border-color: #d1d1d6;
            --transition-speed: 0.3s;
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
        }
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--background-color);
            color: var(--text-primary);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        h1, h2, h3 {
            color: var(--text-primary);
            font-weight: 700;
        }
        p {
            color: var(--text-secondary);
            font-size: 16px;
            line-height: 1.5;
        }
        .hidden {
            display: none !important;
        }
        /* ================================================ */
        /* == 2. PRELOADER                               == */
        /* ================================================ */
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 9999;
            background-color: var(--background-color);
            display: flex;
            justify-content: center;
            align-items: center;
            transition: opacity 0.7s ease, visibility 0.7s ease;
        }
        #preloader.preloader-hide {
            opacity: 0;
            visibility: hidden;
        }
        .preloader-content {
            text-align: center;
        }
        .preloader-icon {
            font-size: 50px;
            color: var(--primary-color);
            animation: pulse 1.5s infinite ease-in-out;
        }
        #preloader-text {
            font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
            font-size: 0.9rem;
            margin-top: 15px;
            color: var(--text-secondary);
        }
        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.1); opacity: 0.7; }
        }
        /* ================================================ */
        /* == 3. HEADER                                  == */
        /* ================================================ */
        .app-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-height);
            background-color: var(--surface-color);
            box-shadow: var(--shadow-sm);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            z-index: 1000;
            border-bottom: 1px solid var(--border-color);
        }
        .left-nav, .right-nav {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .icon-button {
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
            color: var(--text-secondary);
            transition: background-color 0.2s ease, color 0.2s ease;
        }
        .icon-button:hover {
            background-color: #0000000d;
            color: var(--text-primary);
        }
        #home-button { text-decoration: none; }
        #auth-container { display: flex; align-items: center; gap: 10px; }
       
        #user-profile img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid var(--surface-color);
            box-shadow: var(--shadow-sm);
        }
        #subscription-status-container {
            display: flex;
            align-items: center;
            gap: 5px;
            background-color: #fff;
            padding: 5px 12px;
            border-radius: 20px;
            border: 1px solid var(--border-color);
            font-weight: 600;
            color: #555;
            font-size: 14px;
        }
        .premium-star {
            font-size: 18px;
            color: #00aaff;
            vertical-align: middle;
        }

       /* ================================================ */
/* == TAMBAHKAN CSS INI UNTUK LAYOUT FORM BARU   == */


/* ======================================================= */
/* == FINAL & PERBAIKAN CSS FORM (URUTAN BENAR)         == */
/* ======================================================= */

/* --- 1. ATURAN UMUM / DESKTOP (Didefinisikan Pertama) --- */

/* Container utama dibuat lebih lebar */
#form-view.view-container {
    max-width: 880px;
}

/* Grid 2 kolom untuk desktop */
#upload-view #upload-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px; /* Jarak yang lebih baik antar card */
}

/* Kolom di dalam grid */
#upload-view .form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Gaya untuk setiap card/section */
#upload-view .form-section {
    background-color: #fcfcfd;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Header di dalam setiap section */
#upload-view .form-section h3 {
    font-size: 1em;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Header di dalam setiap section */
/* 1. Memberi latar belakang pada header card dan merapikan padding */
#upload-view .form-section h3 {
    background-color: #f7f9fc; /* Warna abu-abu sangat muda */
    margin: -16px -16px 10px -16px; /* Trik agar background memenuhi lebar card */
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb; /* Garis batas yang lebih halus */
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
}

/* 2. Memberi warna biru pada ikon di dalam header */
#upload-view .form-section h3 .material-icons {
    color: var(--primary-color);
}


/* 3. Memberi efek 'terangkat' pada tombol utama */
#upload-view #submit-button {
    background-color: var(--primary-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 6px -1px rgba(0, 122, 255, 0.2);
    transition: all 0.2s ease-in-out;
}
#upload-view #submit-button:hover:not(:disabled) {
    transform: translateY(-2px); /* Efek terangkat saat di-hover */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 6px 10px -1px rgba(0, 122, 255, 0.3);
}

/* 4. Menyempurnakan efek 'focus' pada input agar lebih modern */
#upload-view input:focus,
#upload-view select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15); /* Bayangan lebih lembut */
}

/* 5. (Opsional) Sedikit menyempurnakan bar info repository */
#connected-repo-info {
    background-color: #eef2f8;
}

/* Mengatur elemen form agar compact */
#upload-view label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

#upload-view input[type="file"],
#upload-view input[type="text"],
#upload-view input[type="password"],
#upload-view select {
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 6px;
}

#upload-view select {
    background-position: right 0.8rem center;
    background-size: 0.9em;
}

/* Wadah untuk tombol aksi di kolom kanan */
#upload-view .action-section {
    background-color: transparent;
    border: none;
    padding: 0;
    justify-content: flex-end; /* Mendorong item ke bawah */
    gap: 16px;
}

/* Membuat Turnstile responsif */
#upload-view .turnstile-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    transform-origin: center;
}
#upload-view .cf-turnstile {
    max-width: 100%;
}

/* Tombol submit di kolom kanan */
#upload-view #submit-button {
    width: 100%;
    min-width: auto;
    margin-top: 10;
}

/* Gaya untuk tombol pemicu modal */
#credentials-trigger-area {
    margin-top: 10px;
}

.credentials-trigger-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px dashed var(--border-color);
    background-color: var(--background-color);
    color: var(--text-secondary);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.credentials-trigger-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.credentials-trigger-btn.configured {
    background-color: #e8f5e9;
    border-color: var(--secondary-color);
    color: #2e7d32;
}

/* --- 2. ATURAN RESPONSIVE / SELULER (Didefinisikan Terakhir untuk Menimpa) --- */



/* --- 3. ATURAN MODAL (Bisa di mana saja) --- */
#credentials-modal .modal-content {
    max-width: 520px;
    text-align: left;
}
#credentials-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
#credentials-modal .modal-header h2 {
    margin-bottom: 0;
}
#credentials-modal #close-modal-btn {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    height: auto;
    width: auto;
}
#credentials-modal .form-group {
    margin-bottom: 15px;
}
#credentials-modal .modal-actions {
    margin-top: 20px;
    justify-content: flex-end;
}
#credentials-modal .button {
    margin-top: 0;
}




        /* ================================================ */
        /* == 4. MAIN CONTENT & VIEW CONTAINERS          == */
        /* ================================================ */
        .main-content {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
            padding: calc(var(--header-height) + 40px) 20px 40px;
        }
        .view-container {
            text-align: center;
            padding: 32px;
            border-radius: var(--border-radius-lg);
            background-color: var(--surface-color);
            box-shadow: var(--shadow-md);
            width: 100%;
            max-width: 620px;
        }
        /* ================================================ */
        /* == 5. VIEWS (Landing, GitHub Setup, Form)     == */
        /* ================================================ */
        /* --- 5.1 Landing View --- */
        #landing-view .landing-icon {
            font-size: 60px;
            color: var(--primary-color);
            margin-bottom: 16px;
            background-color: #eaf3ff;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        #landing-view h2 { font-size: 2em; margin-bottom: 8px; }
        #landing-view p { max-width: 450px; margin: 0 auto 24px; }
       
        #form-view h2 { margin-bottom: 8px; }
        #form-view p { margin-bottom: 24px; }
        #welcome-message { margin-top: -16px; }
        .form-group {
            margin-bottom: 20px;
            width: 100%;
            text-align: left;
        }
        label {
            font-weight: 600;
            display: block;
            margin-bottom: 8px;
            color: var(--text-primary);
            font-size: 14px;
        }
        input[type="file"], input[type="text"], input[type="password"], select {
            width: 100%;
            background-color: var(--background-color);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
            padding: 12px 16px;
            border-radius: var(--border-radius-md);
            font-size: 16px;
            font-family: 'Inter', sans-serif;
            transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
        }
        input:focus, select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
        }
        input::placeholder { color: #a1a1a6; }
        input:disabled, select:disabled {
            background-color: #e9ecef;
            cursor: not-allowed;
            opacity: 0.7;
        }
        select {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3csvg%3e");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 1em;
        }
       
        /* --- 5.4 Recovery & Maintenance (inside Form View) --- */
        #maintenance-view .material-icons, #recovery-view .material-icons {
             font-size: 60px;
             margin-bottom: 16px;
        }
        #maintenance-view .material-icons { color: #ff9800; }
        #recovery-view .material-icons { color: var(--primary-color); }
        
        #recovery-fingerprint-id {
            font-family: monospace;
            background: #eee;
            padding: 10px;
            border-radius: 6px;
            word-break: break-all;
        }
        #recovery-code-input {
            text-align: center;
            text-transform: uppercase;
        }
        /* ================================================ */
        /* == 6. BUILD PROCESS VIEW                      == */
        /* ================================================ */
        #build-process-view {
            display: flex;
            flex-direction: column;
            width: 95%;
            max-width: 1200px;
            height: calc(100vh - 100px);
            max-height: 850px;
            background-color: var(--surface-color);
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-md);
            overflow: hidden;
        }
        #build-status-header {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-shrink: 0;
            padding: 16px 24px;
            border-bottom: 1px solid var(--border-color);
        }
        #build-status-header .loader {
            width: 32px;
            height: 32px;
            border: 4px solid #f3f3f3;
            border-radius: 50%;
            border-top: 4px solid var(--primary-color);
            animation: spin 1.5s linear infinite;
            margin: 0;
        }


        
        
@media (max-width: 800px) {
    /* KUNCI UTAMA: Mengubah grid menjadi 1 kolom */
    #upload-view #upload-form-grid {
        grid-template-columns: 1fr;
    }

    /* Mengurangi padding di mobile agar tidak terlalu sempit */
    #form-view.view-container {
        padding: 24px 16px;
    }

    /* Menata ulang posisi tombol aksi di mobile */
    #upload-view .action-section {
       align-items: center;
       margin-top: 20px; 
    }

    /* Batasi lebar tombol di mobile */
    #upload-view #submit-button {
        max-width: 400px;
    }

    /* Sedikit scaling down pada turnstile jika layar sangat sempit */
    @media (max-width: 340px) {
        #upload-view .turnstile-wrapper {
            transform: scale(0.9);
        }
    }
}



@media (max-width: 800px) {
    .build-main-content {
        flex-direction: column;
    }

    .build-log-panel {
        border-right: none; /* Hapus garis pemisah samping */
        min-height: 250px; /* Beri tinggi minimal agar area log tetap terlihat jelas */
    }

    .build-actions-panel {
        flex-basis: auto; /* Hapus lebar tetap, biarkan menjadi 100% width */
        flex-shrink: 0;
        border-top: 1px solid var(--border-color); /* Tambahkan pemisah dari log di atasnya */
        background-color: var(--surface-color); /* Samakan warna latar dengan header untuk konsistensi */
    }

    /* Sedikit penyesuaian pada padding untuk ruang yang lebih efisien di mobile */
    .build-log-panel, .build-actions-panel {
        padding: 12px;
    }

    #build-status-header {
        padding: 12px 16px;
    }
}

        
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        
        #build-status-header h1 { margin: 0; font-size: 1.25em; text-align: left; }
        
        #build-timer {
            margin-left: auto;
            font-size: 1.25em;
            font-family: monospace;
            font-weight: 600;
        }
        
        #build-duration-text { font-size: 1em; color: var(--text-secondary); margin: 0 0 0 auto; }
        
        .build-main-content {
            display: flex;
            flex-grow: 1;
            min-height: 0;
        }
        .build-log-panel {
            position: relative;
            flex-grow: 1;
            padding: 15px;
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            min-width: 0;
        }
        #realtime-log-container, #log-output, #server-error-output {
            flex-grow: 1;
            background-color: #282c34;
            color: #abb2bf;
            font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
            font-size: 14px;
            border-radius: var(--border-radius-md);
            padding: 16px;
            overflow: auto;
            margin: 0;
            white-space: pre-wrap;
            word-wrap: break-word;
            min-height: 150px;
        }
        .build-actions-panel {
            flex-basis: 340px;
            flex-shrink: 0;
            padding: 15px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            overflow-y: auto;
            background-color: var(--background-color);
        }
        #build-id-display {
            font-size: 13px;
            color: var(--text-secondary);
            font-family: monospace;
            word-break: break-all;
            background-color: var(--surface-color);
            padding: 12px;
            border-radius: var(--border-radius-md);
            border: 1px solid var(--border-color);
        }
        .action-group p { font-size: 15px; margin-bottom: 12px; text-align: left; }
        .action-group .button {
            width: 100%;
            margin: 0 0 10px;
            padding: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        /* ================================================ */
        /* == 7. COMPONENTS (Buttons, Modals, Sidebars)  == */
        /* ================================================ */
        
        /* --- 7.1 Buttons --- */
        .button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            cursor: pointer;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: var(--border-radius-md);
            font-size: 16px;
            font-weight: 600;
            margin-top: 10px;
            transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
        }
        
        .button:active { transform: scale(0.98); }
        .button:disabled { opacity: 0.7; cursor: not-allowed; box-shadow: none; transform: none; }

#submit-button {
    /* --- Tampilan Dasar --- */
    width: 70%;
    padding: 12px 20px;
    margin-top: 10px;
    font-size: 1em;
    font-weight: 600;
    color: #ffffff;
    background-color: #218bff; /* Warna biru utama */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    
    /* --- Layout Konten di Dalam Tombol --- */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Jarak antara ikon 🚀 dan teks */
    
    /* --- Efek Transisi Halus --- */
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}
/* --- Kondisi Saat Mouse Berada di Atas Tombol (Hover) --- */
#submit-button:not(:disabled):hover {
    background-color: #0072f5; /* Sedikit lebih gelap */
}
/* --- Kondisi Saat Tombol Diklik --- */
#submit-button:not(:disabled):active {
    transform: scale(0.99); /* Efek tombol seperti ditekan */
    background-color: #0062d1;
}
/* --- Kondisi Saat Tombol DISABLED (Sangat Penting) --- */
#submit-button:disabled {
    background-color: #a0c3e8; /* Warna pudar untuk menandakan tidak aktif */
    opacity: 0.7;
    cursor: not-allowed; /* Mengubah ikon cursor */
}
        
        .button.primary-button, button.primary-button {
            background-color: var(--primary-color);
            width: 100%;
        }
        .button.primary-button:hover, button.primary-button:hover {
            background-color: var(--primary-color-dark);
            box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
        }
        
        button.primary-button:disabled { background-color: #a0c3ff; }
   
        .button.success { background-color: var(--secondary-color); }
        .button.error, .button.danger { background-color: var(--danger-color); }
        .button.secondary { background-color: #e5e5ea; color: var(--text-primary); }
        #github-job-link { background-color: var(--github-color); }
        #github-job-link:hover { background-color: var(--github-color-hover); }
        /* --- 7.2 Sidebar --- */
        #sidebar-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.45);
            z-index: 1010;
            opacity: 0;
            visibility: hidden;
            transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
        }
        body.sidebar-open { overflow: hidden; }
        body.sidebar-open #sidebar-backdrop { opacity: 1; visibility: visible; }
        .sidebar {
            background-color: var(--surface-color);
            height: 100vh;
            position: fixed;
            top: 0;
            width: var(--sidebar-width);
            max-width: 90%;
            z-index: 1020;
            display: flex;
            flex-direction: column;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
            transform: translateX(100%);
            transition: transform var(--transition-speed) ease;
        }
        
        #sidebar-history, #sidebar-menu, #sidebar-settings { right: 0; }
        body.sidebar-open .sidebar.active { transform: translateX(0); }
        .sidebar-header {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 10px 15px;
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
            height: var(--header-height);
        }
        .sidebar-header h2 { margin: 0; font-size: 1.2em; }



        

    
     





        
        #history-list {
            list-style: none;
            padding: 20px;
            margin: 0;
            overflow-y: auto;
            flex-grow: 1;
        }
        #history-list li {
            background: #fff;
            margin-bottom: 10px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            transition: box-shadow 0.2s;
            word-wrap: break-word;
        }
        #history-list li:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
        #history-list a { text-decoration: none; color: var(--primary-color); padding: 15px; display: block; }
        #history-list .filename { font-weight: 600; font-size: 14px; display: block; margin-bottom: 5px; }
        #history-list .timestamp { font-size: 12px; color: var(--text-secondary); display: block; }
        .menu-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Mendorong legal-links ke bawah */
    height: calc(100% - 60px); /* Sesuaikan 60px dengan tinggi header Anda */
    box-sizing: border-box;
}
/* === USER DETAILS SECTION === */
.menu-user-details {
    display: flex;
    align-items: center;
    gap: 12px;
}
.menu-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #ddd;
}
.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.user-name {
    font-size: 1.1em;
    font-weight: 600;
}
.user-id {
    font-size: 0.8em;
    color: #555;
    background-color: #f1f1f1;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex; /* Agar pas dengan konten body.sidebar-open */
    align-items: center;
    gap: 4px;
}
        
        .menu-user { display: flex; align-items: center; gap: 12px; }
        .menu-user img { width: 52px; height: 52px; border-radius: 50%; }
      
        .user-id code {
    font-family: monospace;
}

        .modal-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            z-index: 2000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        .modal-backdrop:not(.hidden) { opacity: 1; visibility: visible; }
        .modal-content {
            background-color: var(--surface-color);
            padding: 24px 32px;
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-md);
            width: 100%;
            max-width: 480px;
            text-align: center;
            transform: scale(0.95);
            transition: transform 0.3s ease;
        }
        .modal-backdrop:not(.hidden) .modal-content { transform: scale(1); }
        .modal-content h2 { margin-bottom: 12px; }
        .modal-content p { margin-bottom: 16px; font-size: 15px; }
        .modal-content a { color: var(--primary-color); text-decoration: underline; font-weight: 500; }
        .modal-content #delete-confirm-input { text-align: center; }
        .modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 10px; }
        .modal-actions .button { margin-top: 0; padding: 10px 20px; }
        .modal-actions .button:disabled { background-color: #e5e5ea; }
        
        /* --- 7.4 Other Components --- */
        .announcement-box {
            display: flex;
            align-items: center;
            gap: 12px;
            background-color: #e6f7ff;
            border: 1px solid #91d5ff;
            color: #0d4b8a;
            padding: 12px 16px;
            border-radius: var(--border-radius-md);
            margin-bottom: 24px;
            width: 100%;
            text-align: left;
            font-size: 14px;
        }
        .announcement-box .material-icons { font-size: 22px; }
        .announcement-box p { margin: 0; line-height: 1.4; color: inherit; }
        .announcement-box a { color: #0056b3; font-weight: 600; text-decoration: underline; }
        
        
       
        /* Styling untuk info repo yang terhubung */
#connected-repo-info {
    display: flex;
    align-items: center;
    gap: 8px; /* Jarak antara ikon dan teks */
    background-color: #f0f4f8; /* Warna latar yang lembut */
    padding: 8px 12px;
    border-radius: 6px;
    margin: -5px 0 20px 0; /* Posisi di antara welcome dan form */
    font-size: 0.9em;
}
#connected-repo-info .repo-icon {
    color: #586069;
    font-size: 20px;
}
#connected-repo-info a {
    color: #0366d6; /* Warna link khas GitHub */
    text-decoration: none;
    font-weight: 600;
}
#connected-repo-info a:hover {
    text-decoration: underline;
}






/* ======================================================= */
/* == FITUR MODE GELAP (DARK MODE)                      == */
/* ======================================================= */
/* GANTI SELURUH BLOK CSS MODE GELAP ANDA DENGAN INI */
/* ======================================================= */
/* == FITUR MODE GELAP (DARK MODE) - PERBAIKAN          == */
/* ======================================================= */

/* --- 1. Gaya untuk UI Switch di Sidebar (Tetap sama) --- */
.menu-section-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}
.menu-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.setting-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.setting-label .material-icons {
    color: var(--text-secondary);
}
.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555; /* Warna slider lebih gelap */
    transition: .4s;
    border-radius: 28px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--primary-color);
}
input:checked + .slider:before {
    transform: translateX(22px);
}




.sidebar-select {
    /* 1. Reset Tampilan Bawaan Browser */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* 2. Styling Visual (Menggunakan Variabel Anda) */
    background-color: var(--input-bg, #2a2a2e);
    border: 1px solid var(--border-color, #424242);
    color: var(--text-primary, #e0e0e0);
    border-radius: 6px; /* Sudut sedikit membulat */
    
    /* 3. Spasi & Font */
    padding: 6px 30px 6px 12px; /* Atas/Bawah 6px, Kiri 12px, Kanan 30px (untuk panah) */
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
    max-width: 180px; /* Batasi lebar agar tidak terlalu besar */
    text-align: left;

    /* 4. Panah Dropdown Kustom (SVG panah-bawah) */
    /* Warna 'fill' di SVG ini (#9e9e9e) cocok dengan
      variabel --text-secondary Anda. 
    */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239e9e9e'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
}

/* 5. Efek Hover & Fokus */
.sidebar-select:hover {
    border-color: var(--text-secondary, #9e9e9e);
}

.sidebar-select:focus {
    outline: 1px solid var(--text-secondary, #9e9e9e); /* Outline sederhana untuk fokus */
}

/* 6. Styling untuk <option> di dalam dropdown */
.sidebar-select option {
    background-color: var(--surface-color, #1e1e1e);
    color: var(--text-primary, #e0e0e0);
}




/* --- 2. JANTUNG DARI MODE GELAP: Variabel Warna Baru --- */
body.dark-mode {
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #9e9e9e;
    --border-color: #424242;
    
    --input-bg: #2a2a2e;
    --card-header-bg: #1a1a1a;
    --connected-repo-bg: #2c2f36;
}

/* --- 3. PENYESUAIAN WAJIB untuk Mode Gelap --- */

/* Ini akan memaksa semua elemen yang relevan menggunakan warna variabel yang benar */
body.dark-mode,
body.dark-mode .app-header,
body.dark-mode .sidebar,
body.dark-mode .modal-content,
body.dark-mode .announcement-box,
body.dark-mode #build-process-view,
body.dark-mode .build-actions-panel,
body.dark-mode #build-id-display {
    background-color: var(--background-color);
    color: var(--text-primary);
}
body.dark-mode #upload-view .form-section,
body.dark-mode .view-container {
     background-color: var(--surface-color);
}
body.dark-mode #upload-view .form-section h3 {
    background-color: var(--card-header-bg);
}
body.dark-mode input[type="file"],
body.dark-mode input[type="text"],
body.dark-mode input[type="password"],
body.dark-mode select {
    background-color: var(--input-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}
body.dark-mode input::placeholder { 
    color: #757575;
}
body.dark-mode #connected-repo-info {
    background-color: var(--connected-repo-bg);
}
body.dark-mode a {
    color: var(--primary-color);
}
body.dark-mode .credentials-trigger-btn {
    background-color: #2c2c2c;
}
body.dark-mode .credentials-trigger-btn.configured {
    background-color: #1b3a1e;
    border-color: #388e3c;
    color: #a5d6a7;
}
body.dark-mode .icon-button {
    color: var(--text-secondary);
}
body.dark-mode .icon-button:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}
body.dark-mode select {
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239e9e9e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3csvg%3e");
}


/* Tambahkan ini di CSS Anda */
#user-profile {
    cursor: pointer;
}




/*
 * Gunakan kelas 'stacked' ini pada .menu-setting-item
 * untuk membuat label dan kontrol bertumpuk secara vertikal.
 */
.menu-setting-item.stacked {
    /* 1. Ubah dari baris (row) menjadi kolom (column) */
    flex-direction: column;
    
    /* 2. Ratakan item ke kiri, bukan merentang */
    align-items: flex-start; 
    
    /* 3. Jarak antara label dan select box di bawahnya */
    gap: 10px; 
    
    /* 4. Sesuai permintaan Anda untuk "area terpisah" */
    padding-bottom: 16px; /* Jarak sebelum garis */
    margin-bottom: 12px;  /* Jarak setelah garis */
    border-bottom: 1px solid var(--border-color, #424242); /* Garis pemisah */
}

/*
 * Saat .sidebar-select berada di dalam 'stacked',
 * buat lebarnya 100% (mengesampingkan max-width 180px).
 */
.menu-setting-item.stacked .sidebar-select {
    max-width: 100%;
    width: 100%;
}

/* Pastikan label di dalam 'stacked' mengambil lebar penuh */
.menu-setting-item.stacked .label-with-info {
    width: 100%;
}


    /* --- Adjustments for Sidebar Tooltip & Layout --- */

/* Make the container relative for absolute tooltip positioning */
.sidebar .menu-setting-item {
    position: relative; /* <<< PENTING: Tambahkan ini */
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Tambahkan padding bawah jika perlu agar tooltip tidak terpotong */
     padding-bottom: 5px; /* <-- Uncomment atau tambahkan ini */
     margin-bottom: 15px; /* <-- Tambahkan sedikit margin antar item */
}

/* ... (Gaya .label-with-info, label, .info-icon tetap sama) ... */
.sidebar .menu-setting-item .label-with-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    flex-grow: 1;
    min-width: 0;
    margin-right: 10px; /* Jarak dari switch */
}
.sidebar .menu-setting-item .label-with-info label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.sidebar .menu-setting-item .info-icon {
    width: 18px;
    height: 18px;
    font-size: 12px;
    transform: none;
    margin-left: 4px; /* Sedikit jarak dari label */
    flex-shrink: 0;
}








/* <<< KUNCI PERBAIKAN TOOLTIP >>> */
.sidebar .tooltip {
    visibility: hidden; /* Mulai dari hidden */
    opacity: 0;
    position: absolute;
    width: auto;
    max-width: calc(var(--sidebar-width) - 40px);
    padding: 12px;
    background-color: #333;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    z-index: 1030;
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
    /* HANYA transisi opacity, HAPUS visibility dari transisi */
    transition: opacity 0.2s ease;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
    overflow-y: auto;
    max-height: 250px; /* Tetapkan max-height dasar */
    min-height: 250px;

    /* Pastikan posisi awal tidak ambigu */
    top: 0;
    left: 0;
}

.sidebar .tooltip.show {
    visibility: visible; /* Tampilkan dengan visibility */
    opacity: 1;
}



/* Gaya konten di dalam tooltip sidebar */
.sidebar .tooltip p {
    margin: 0 0 8px 0;
    color: inherit; /* Warisi warna dari .tooltip */
    font-size: inherit;
    line-height: inherit;
}
.sidebar .tooltip p:last-child {
    margin-bottom: 0;
}
.sidebar .tooltip hr {
    border: none;
    border-top: 1px solid #555;
    margin: 10px 0;
}
.sidebar .tooltip code {
    background-color: #555;
    padding: 1px 4px; /* Padding lebih kecil */
    border-radius: 3px;
    font-size: 0.9em; /* Sedikit lebih kecil dari teks biasa */
    font-family: monospace;
}
.sidebar .tooltip strong {
    font-weight: 600; /* Pastikan bold terlihat */
}


/* Panah Tooltip (Styling tetap sama, posisi akan diatur JS) */
.sidebar .tooltip::after {
    content: '';
    position: absolute;
    left: 50%; /* JS akan menyesuaikan ini jika perlu */
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
}
.sidebar .tooltip.tooltip-bottom::after {
     bottom: 100%;
     border-color: transparent transparent #333 transparent;
}
.sidebar .tooltip.tooltip-top::after {
     top: 100%;
     border-color: #333 transparent transparent transparent;
}


/* Warna Dark Mode Tooltip Sidebar */
body.dark-mode .sidebar .tooltip {
   background-color: #4f4f4f;
   color: var(--text-primary);
   border: 1px solid #616161;
   box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}
body.dark-mode .sidebar .tooltip hr {
    border-top-color: #616161;
}
body.dark-mode .sidebar .tooltip code {
    background-color: #616161;
}
body.dark-mode .sidebar .tooltip.tooltip-bottom::after {
     border-color: transparent transparent #4f4f4f transparent;
}
body.dark-mode .sidebar .tooltip.tooltip-top::after {
     border-color: #4f4f4f transparent transparent transparent;
}








#upload-form .label-with-info {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    #upload-form .info-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px; 
        height: 16px;
        border-radius: 50%;
        background-color: #777;
        color: white;
        font-size: 11px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.2s;
        transform: translateY(-2px);
        /* Mencegah ikon ikut terseleksi saat teks di-highlight */
        user-select: none;
    }

    #upload-form .info-icon:hover {
        background-color: #555;
    }

    #upload-form .tooltip {
        display: none;
        position: fixed;
        /* Hapus width: 340px; atau ubah */
         width: 340px; 
        
        max-width: 340px; /* <-- TAMBAHKAN INI (batas lebar maksimum) */
        /* max-width: 90vw; */ /* Anda bisa hapus ini atau biarkan, browser akan pilih yang terkecil */
        padding: 15px;
        background-color: #333;
        color: #fff;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        z-index: 1000;
        text-align: left;
        font-size: 14px;
        line-height: 1.6;
        overflow-y: auto;
        box-sizing: border-box;
        /* max-height: 80vh; */ /* <-- Pastikan ini ada untuk batas tinggi */
         /* Tambahkan transisi jika belum ada (opsional) */
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    #upload-form .tooltip.show {
        display: block; /* Tetap pakai display block/none untuk form ini */
        opacity: 1; /* Untuk transisi */
    }



    #upload-form .tooltip p { margin: 0 0 10px 0; }
    #upload-form .tooltip p:last-child { margin-bottom: 0; }
    #upload-form .tooltip hr { border: none; border-top: 1px solid #555; margin: 12px 0; }
    
    #upload-form .tooltip pre {
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-x: auto;
        background-color: #222; 
        padding: 10px; 
        border-radius: 4px; 
        font-size: 12px;
    }

    #upload-form .tooltip code {
        background-color: #555;
        padding: 2px 5px;
        border-radius: 3px;
        font-family: monospace;
    }
    
    #upload-form .tooltip ol {
        padding-left: 20px;
        margin-top: 5px;
        margin-bottom: 0;
    }
    
    #upload-form .tooltip::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
    }

    #upload-form .tooltip.tooltip-bottom::after {
        bottom: 100%;
        border-color: transparent transparent #333 transparent;
    }

    #upload-form .tooltip.tooltip-top::after {
        top: 100%;
        border-color: #333 transparent transparent transparent;
    }


    #upload-form .tooltip a {
    color: #79c0ff; /* Warna biru terang yang umum untuk link di tema gelap */
    text-decoration: underline;
    transition: color 0.2s;
}

#upload-form .tooltip a:hover {
    color: #a5d6ff; /* Sedikit lebih terang saat disentuh mouse */
    text-decoration: none;
}




#build-process-view:not(.hidden) {
    /* Saat tampil, pastikan ia berada di tengah dan mengambil ruang */
    margin: 0 auto;
}




/* ========================================= */
        /* CSS Khusus untuk Tombol Force Stop di Sidebar */
        /* ========================================= */
        .user-info #force-stop-button {
            width: 100%; /* Membuat tombol mengisi lebar container */
            margin-top: 12px; /* Memberi jarak dari userID di atasnya */
            padding: 8px 12px; /* Mengurangi padding agar tombol lebih ramping */
            font-size: 14px; /* Ukuran font sedikit lebih kecil */
            
            /* Menengahkan ikon dan teks dengan sempurna */
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px; /* Memberi jarak antara ikon dan teks */
        }

        /* (Opsional) Mengatur ukuran ikon di dalam tombol tersebut */
        .user-info #force-stop-button .material-icons {
            font-size: 18px; 
        }





       /* =================================================================== */
/* 2. TAMBAHAN CSS BARU & TERISOLASI UNTUK NOTIFIKASI LOG STREAM */
/* =================================================================== */
.log-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    padding: 20px;
    box-sizing: border-box;
    
    text-align: center;
    color: var(--text-secondary-color);
    
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.log-notice.hidden {
    opacity: 0;
    pointer-events: none; /* Penting agar tidak menghalangi log di belakangnya saat transparan */
}

.log-notice .material-icons {
    font-size: 48px;
    margin-bottom: 16px;
}

.log-notice p {
    font-size: 16px;
    margin: 0;
}

.log-notice small {
    margin-top: 8px;
    font-style: italic;
}





#upload-view {
    position: relative;
}

/* 2. Salin style yang sama dari halaman utama */
.online-indicator {
    position:absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    color: #fff;
}

.online-indicator::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #28a745; /* Hijau */
}/* 2. Style untuk indicator (TIDAK PERLU DIUBAH) */
.online-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    color: #fff;
}

.online-indicator::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #28a745; /* Hijau */
}



/* 3. TAMBAHKAN CSS UNTUK SPACER BARU */
.online-indicator-spacer {
    /* Spacer ini akan memiliki tinggi 35px, 
       cukup untuk badge (yang tingginya ~25px) 
       ditambah sedikit jarak. */
    height: 35px;
    
    /* Ini penting agar spacer tidak memakan lebar
       penuh di perangkat seluler dan mengacaukan badge */
    display: block;
}


#server-error-output {
    flex-grow: 0;           /* [BARU] Jangan buat kotak ini meregang */
    margin-bottom: 15px;    /* Memberi jarak ke tombol di bawahnya */
    max-height: 200px;      /* [BARU] Batasi tinggi maksimumnya */
}