/* style.css - KODE LENGKAP DAN FINAL */

/* BASE & TYPOGRAPHY - BLUE SOLID BACKGROUND DESIGN */
:root {
    --primary-color: #1a73e8; /* Biru Google Solid */
    --primary-light: #4285f4;
    --secondary-color: #34a853; /* Hijau Sukses */
    --danger-color: #ea4335; /* Merah */
    --background-solid: #1a73e8; 
    --card-background: #ffffff; 
    --text-main: #212121;
    --text-secondary: #757575;
    --border-light: #e0e0e0;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-solid); 
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden; 
    text-rendering: optimizeLegibility;
}

/* LAYOUT & CARD STYLES */
.container { 
    max-width: 90%; 
    width: 100%;
    margin: 50px auto; 
    padding: 30px; 
    background-color: var(--card-background); 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
    box-sizing: border-box; 
}
@media (min-width: 768px) {
    .container { 
        max-width: 500px; 
    }
}

/* HEADINGS */
h1 { 
    color: var(--primary-color); 
    text-align: center; 
    margin-bottom: 25px; 
    font-weight: 900;
    font-size: 2em;
} 
h2, h3 { 
    color: var(--text-main); 
    font-weight: 700; 
    margin-top: 20px; 
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-light);
}

/* FORM ELEMENTS */
label { display: block; margin-top: 12px; font-weight: 500; font-size: 0.85em; color: var(--text-secondary); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"] { 
    width: 100%; padding: 10px; margin-top: 4px; box-sizing: border-box; 
    border: 1px solid var(--border-light); border-radius: 4px; 
    background-color: #f7f7f7; 
    color: var(--text-main);
    font-size: 1em;
    transition: border-color 0.2s;
}
input:focus { border-color: var(--primary-light); outline: none; }

/* BUTTONS */
button, .download-link { 
    padding: 10px 18px; 
    margin-top: 15px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 1em; 
    font-weight: 700; 
    transition: background-color 0.2s, opacity 0.2s;
    text-align: center; 
    text-decoration: none; 
    display: block; 
    box-sizing: border-box;
}
.primary-button { background-color: var(--primary-color); color: white; width: 100%; }
.primary-button:hover { background-color: #1967d2; }
#buildButton { background-color: var(--danger-color); color: white; margin-top: 30px; }
#buildButton:hover { background-color: #d93025; }
.utility-button { background-color: var(--secondary-color); color: white; margin-right: 10px; }
.logout-button { background-color: #fbbc05; color: var(--text-main); }
.download-link { margin-top: 10px; }
.user-info-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; margin-bottom: 15px; font-weight: 500; border-bottom: 1px solid var(--border-light); }
.saldo-info { font-weight: 700; color: var(--secondary-color); }
hr { border: 0; height: 1px; background-color: var(--border-light); margin: 20px 0; }
.message { font-size: 0.9em; margin-top: 10px; padding: 10px; border-radius: 4px; font-weight: 500; display: none; }
.message.success { background-color: #e6f4ea; color: var(--secondary-color); border: 1px solid var(--secondary-color); }
.message.error { background-color: #fce8e6; color: var(--danger-color); border: 1px solid var(--danger-color); }
.auth-form-links { text-align: center; margin-top: 15px; font-size: 0.9em;}
.auth-form-links a { color: var(--primary-color); text-decoration: none; }
.build-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; margin-bottom: 8px; border: 1px solid var(--border-light); border-radius: 4px; background-color: #f9f9f9; }
.keystore-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.keystore-grid > div { flex: 1 1 45%; }

/* --- PERBAIKAN KRITIS UNTUK LOADING SCREEN --- */
#loadingScreen { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: var(--background-solid); /* Latar Biru Solid */
    z-index: 9999;
    
    /* TETAPKAN KE FLEX. JS AKAN MENGONTROL KAPAN IA HILANG */
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.2em;
}
/* CLASS INI AKAN DIPANGGIL OLEH SCRIPT.JS UNTUK MEMAKSA LAYAR HILANG */
.hidden {
    display: none !important;
}

.static-loader { 
    color: white; 
    font-weight: 700; 
    padding: 20px; 
    border-radius: 8px; 
    background-color: var(--card-background); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.static-loader button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

/* style.css - Tambahkan di bagian bawah */

/* Mencegah seleksi teks (menonaktifkan highlight saat drag mouse) */
body {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+ */
    user-select: none;         /* Standar */
}