/* Google Map */
.adam-map-container {
    position: relative;
    width: 100%;
    /* Full width */
    max-width: 800px;
    /* Optional: max width */
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
    /* Hide overflow */
    border-radius: 8px;
    /* Optional: for rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Optional: for shadow effect */
}

.adam-map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    border: 0;
    /* Remove border */
}

/* Attendance Toggle */

.attendance-toggle {
    display: flex;
    gap: 30px;
    align-items: center;
    position: relative;
    margin: 20px auto;
    /* Center the toggle */
}

input[type="radio"] {
    display: none;
    /* Hide the default radio buttons */
}

.toggle-label {
    flex: 1;
    padding: 10px;
    text-align: center;
    background-color: #d0cccd;
    font-family: var(--body-text-family);
    font-size: var(--body-text-size);
    font-weight: 500;
    /* Default background color */
    color: #555e63;
    /* Default text color */
    border-radius: 25px;
    /* Rounded corners */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 0 5px;
    /* Add horizontal margin for spacing */
}

.toggle-label i {
    margin-right: 5px;
    /* Space between icon and text */
}

.toggle-label:hover {
    background-color: #b0a8a8;
    /* Darker on hover */
}

.toggle-switch {
    position: absolute;
    top: 50%;
    left: 10px;
    /* Adjust for spacing */
    width: 50%;
    /* Width of the toggle switch */
    height: 40px;
    /* Height of the toggle switch */
    background-color: var(--button-background-primary);
    /* Color of the toggle switch */
    border-radius: 25px;
    /* Rounded corners */
    transition: left 0.3s, background-color 0.3s;
    /* Smooth transition */
    transform: translateY(-50%);
    /* Center vertically */
    display: flex;
    /* Use flexbox to center text */
    align-items: center;
    /* Center text vertically */
    justify-content: center;
    /* Center text horizontally */
    color: white;
    /* Default text color */
    font-weight: bold;
    /* Make text bold */
}

input[type="radio"]:checked+.toggle-label {
    background-color: var(--button-background-primary);
    /* Background color when selected */
    color: white;
    /* Text color when selected */
}

input[type="radio"]:checked+.toggle-label+.toggle-switch {
    left: 50%;
    /* Move the switch to the right */
}

input[type="radio"]#absent:checked+.toggle-label {
    background-color: rgb(144, 14, 14);
    /* Change background to red when "Tidak Hadir" is selected */
    color: white;
    /* Change text color to white */
}

input[type="radio"]#absent:checked+.toggle-label+.toggle-switch {
    left: 50%;
    /* Move the switch to the right */
    background-color: rgb(144, 14, 14);
    /* Change the toggle switch color to red */
}

/* LOADING */

/* CSS for loading spinner */
#loadingIndicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    /* Ensure it appears above other content */
}

.spinner {
    border: 8px solid #f3f3f3;
    /* Light grey */
    border-top: 8px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 60px;
    /* Size of the spinner */
    height: 60px;
    /* Size of the spinner */
    animation: spin 1s linear infinite;
    /* Animation */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Tabs Bank */

.bank-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.bank-logo {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
    gap: 10px;
    /* Change cursor to pointer */
}

.bank-logo img {  
    width: 100px; /* Set the width to 70% of the parent container */  
    height: auto; /* Maintain aspect ratio */  
    max-width: 100px; /* Optional: set a max width to prevent too large images */  
    object-fit: contain; /* Ensure the image fits within the container */  
}  

h2 {
    margin: 10px 0;
}

.bank-account-info {
    margin: 15px 0;
}

.bank-qr-code {
    margin: 20px 0;
}

.bank-account-number {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.bank-copy-button,
.bank-whatsapp-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    margin: 5px;
    transition: background 0.3s;
}

.bank-copy-button:hover,
.bank-whatsapp-button:hover {
    background-color: #2980b9;
}

.bank-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.bank-info {
    display: none;
    /* Hide all bank info by default */
}

.bank-info.active {
    display: block;
    /* Show active bank info */
}