@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    min-height: 100vh;
    color: #333;
    text-align: center;
}

header {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

header h1 { margin: 0; font-size: 24px; color: #2c3e50; }
header p { margin: 5px 0 0 0; font-size: 14px; color: #666; }

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
}

.card-btn {
    background: white;
    border: none;
    border-radius: 15px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.card-btn:active { transform: scale(0.95); }
.btn-berat { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.ikon-besar { font-size: 40px; margin-bottom: 10px; }
.teks-tombol { font-size: 14px; font-weight: 600; }

/* Overlay & Modal */
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 998;
}

.ruang-alat {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8); 
    width: 85%; max-width: 400px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    z-index: 999;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    max-height: 80vh; /* Agar bisa di-scroll kalau HP kekecilan */
    overflow-y: auto;
}

.overlay.aktif { display: block; }
.ruang-alat.aktif {
    display: block;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.tombol-close {
    position: absolute;
    top: -10px; right: -10px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px; height: 35px;
    font-size: 16px; font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.tombol-close:active { transform: scale(0.9); }

/* Form & Input */
.deskripsi-alat { font-size: 14px; color: #666; margin-bottom: 15px; }
.grup-input { margin-bottom: 15px; text-align: left; }
.grup-input label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #2c3e50; }

.grup-input input, .grup-input select, .grup-input textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0c3fc;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s;
    margin-bottom: 5px;
}

.grup-input select { background-color: white; cursor: pointer; }
.grup-input textarea { resize: none; }
.grup-input input:focus, .grup-input select:focus, .grup-input textarea:focus { outline: none; border-color: #8ec5fc; }

.area-hasil { margin-top: 20px; font-size: 18px; font-weight: bold; color: #2c3e50; }

/* Tombol Aksi Manual */
.btn-aksi {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
    transition: background 0.2s;
}

.btn-aksi:active { transform: scale(0.98); }
.btn-salin { background-color: #28a745; margin-top: 10px; box-shadow: 0 4px 8px rgba(40,167,69,0.3); }
