@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Lao:wght@400;700&display=swap');

:root {
  --color-1: #DAF7A6;
  --color-2: #FFC300;
  --color-3: #FF5733;
  --color-4: #C70039;
  --color-5: #900C3F;
  --color-6: #581845;
  --font-primary: 'Noto Sans Lao', sans-serif;
}

body {
  font-family: var(--font-primary);
  background-color: #f8f9fa;
}

.card-header.main-header {
  background-color: var(--color-6);
  color: var(--color-1);
  font-weight: bold;
  font-size: 1.5rem;
}

.card-header.sub-header {
  background-color: var(--color-5);
  color: white;
}

.btn-save {
  background-color: var(--color-4);
  color: white;
  font-weight: bold;
}
.btn-save:hover {
    background-color: var(--color-3);
    color: white;
}

.form-label {
    font-weight: 700;
    color: var(--color-6);
}

.preview-img {
    max-width: 150px;
    max-height: 150px;
    border: 2px solid #ddd;
    padding: 5px;
    margin-top: 10px;
}
section.content {
    padding: 1rem; /* Add padding to the section itself */
}

/* 
 * Remove default padding from the container inside the content section.
 * This allows the card to be truly full-width relative to the content section.
*/
section.content > .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 
 * Ensure the first card on any page takes up the full width.
 * This is a general rule that should apply to most of your pages.
*/
section.content .card {
    margin-bottom: 1rem; /* Ensure consistent spacing between cards */
}
/* Styling for the payment slip image preview */
.payment-slip-container img {
    max-height: 250px; /* Limit the preview height */
    width: auto;
    max-width: 100%;
    border: 1px solid #ddd;
    padding: 5px;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}
.payment-slip-container img:hover {
    opacity: 0.8;
}
/* The Overlay (background) */
.image-zoom-overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place even when scrolling */
    z-index: 9999; /* Sit on top of everything */
    padding-top: 50px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if image is too big */
    background-color: rgba(0, 0, 0, 0.9); /* Black with opacity */
    cursor: zoom-out;
}

/* Modal Content (the image) */
.image-zoom-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 85vh;
    animation-name: zoom-in;
    animation-duration: 0.4s;
}

/* Add Animation */
@keyframes zoom-in {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

/* The Close Button */
.image-zoom-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.image-zoom-close:hover,
.image-zoom-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}