/* ================= PENGATURAN UMUM & FORM ================= */
body { 
    background-color: #f4f6f9; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card { 
    border: none;
    border-radius: 12px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
}

/* Menyesuaikan tinggi Select2 agar sama dengan input Bootstrap */
.select2-container .select2-selection--single { 
    height: 38px; 
    padding: 5px; 
    border: 1px solid #dee2e6; 
    border-radius: 6px; 
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* ================= GAYA BUBBLE KALKULATOR FLOATING ================= */

/* Mengatur posisi tombol bulat melayang (Bubble) */
#calc-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #0d6efd; 
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#calc-bubble:hover {
    transform: scale(1.1);
    background-color: #0b5ed7;
}

/* Mengatur posisi wadah kalkulator tepat di atas bubble */
#calc-floating-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 310px;
    z-index: 9998;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.15);
    animation: popUpAnimation 0.25s ease-out; 
}

/* Susunan tombol angka di dalam kalkulator */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.calc-btn {
    height: 48px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
}

.row-span-2 {
    grid-row: span 2;
    height: 102px; 
}

.col-span-2 {
    grid-column: span 2;
}

#calc-display {
    background-color: #e9ecef;
    color: #212529;
    font-family: 'Courier New', Courier, monospace;
}

/* Efek animasi muncul dari arah bawah bubble */
@keyframes popUpAnimation {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ====== PENYESUAIAN LAYAR HANDPHONE ====== */
@media (max-width: 576px) {
    #calc-floating-window {
        width: 280px; 
        bottom: 85px;
        right: 15px;
    }
    #calc-bubble {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}