@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body, html {
    margin: 0; padding: 0; min-height: 100%; width: 100%;
    font-family: 'Montserrat', sans-serif;
}

/* Background System */
.bg-overlay::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../img/bg.jpg');
    background-size: cover; background-position: center;
    opacity: 0.5; z-index: -1;
}

/* Menu Home */
.flex-center {
    display: flex; justify-content: center; align-items: center; min-height: 100vh;
}

.container {
    text-align: center; width: 100%; max-width: 400px; padding: 20px;
}

.logo-section { margin-bottom: 50px; }
.logo-section img { width: 120px; height: auto; }
.logo-section h1 { font-size: 1.2rem; font-weight: 700; margin-top: 10px; color: #000; }

.form-row {
    display: flex;
    gap: 15px; /* Jarak antar kolom */
    width: 100%;
}

.col-33 {
    flex: 0 0 calc(33.33% - 5px);
}

.col-40 {
    flex: 0 0 calc(40% - 7.5px);
}

.col-50 {
    flex: 0 0 calc(50% - 7.5px);
}

.col-60 {
    flex: 0 0 calc(60% - 7.5px); /* Lebar 60% dikurangi gap */
}

.btn {
    display: block; width: 100%; padding: 18px 0; border-radius: 20px;
    font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none;
    text-transform: uppercase; box-shadow: 0 8px 0px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s; margin-bottom: 5px;
}
.btn:active { transform: translateY(4px); box-shadow: 0 4px 0px rgba(0, 0, 0, 0.15); }

.btn-page {
    display: block; width: 100%; padding: 12px 0; border-radius: 20px;
    font-size: 1.3rem; font-weight: 600; color: #fff; text-decoration: none;
    text-transform: uppercase; box-shadow: 0 8px 0px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s; margin-bottom: 5px;
}
.btn-penawaran { background-color: #004aad; }
.btn-penawaran:hover { background-color: #024093; }

.btn-tagihan { background-color: #e30613; }
.btn-tagihan:hover { background-color: #d10612; }
.btn-gaji { background-color: #00bf63; }
.btn-gaji:hover { background-color: #01af5b; }
.btn-preview { 
    background-color: #6c757d; 
    font-size: 1rem;
}
.btn-preview:hover { 
    background-color: #5a6268; 
}
.btn-cetak { 
    background-color: #e30613; 
    font-size: 1rem;
}
.btn-cetak:hover { 
    background-color: #d10612; 
}
.menu-item {
            margin-bottom: 30px;
            text-decoration: none;
            display: block;
        }
.caption {
            display: block;
            margin-top: 12px;
            font-size: 0.95rem;
            color: #333;
            font-weight: 400;
        }

/* CSS untuk tombol */
.button-container {
    max-width: 865px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.btn-white, .btn-blue {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-white {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateX(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-blue {
    background-color: #004AAD;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-white:active, .btn-blue:active {
    transform: translateY(0);
}

.form-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px; border-radius: 15px; width: 90%; max-width: 800px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); margin: 25px auto;
}

.form-group { margin-bottom: 15px; text-align: left; }
label { display: block; font-weight: bold; margin-bottom: 5px; font-size: 0.9rem; }
input, textarea { font-family: 'Montserrat', sans-serif;width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; }

table { width: 100%; border-collapse: collapse; margin-bottom: 10px; background: #fff; }
table th { background: #004aad; color: white; padding: 10px; font-size: 0.8rem; }
.row-dynamic td { padding: 5px; border: 1px solid #eee; }
.btn-add { background: #ccc; color: black; border: none; padding: 5px 10px; border-radius: 5px; cursor: pointer; margin-bottom: 20px; }

/* Responsif untuk Mobile */
@media (max-width: 600px) {
    .btn-back {
        top: 10px;
        left: 10px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    .btn-page {
        display: block; width: 100%; padding: 10px 0; border-radius: 20px;
        font-size: 1rem; font-weight: 600; color: #fff; text-decoration: none;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .col-40, .col-60 {
        flex: 0 0 100%;
    }
    .form-container {
        padding: 30px 15px; 
    }
    .button-container {
        display: block;
    } 
    .logo-section img {
        width: 75px;
    }
    .btn-preview, .btn-cetak {
        font-size: 0.7rem;
    }
}