html {
    height: 100%;
}

body {
    background-color: #c82333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Forces body to be at least full viewport height */
    margin: 0; /* Remove default browser margin */
    padding: 0; /* Remove default browser padding */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.main-content-area {
    flex: 1; /* Allows main content to grow and fill available space */
    background-color: #fff;
}

.bg-custom-red {
    background-color: #c82333 !important;
}

.input-group .fa-search {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #aaa;
    z-index: 100;
}

.input-group .form-control {
    padding-right: 40px;
}

.navbar-brand,
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: bold;
}

.navbar-nav .nav-item .dropdown-toggle {
    color: #fff !important;
}

/* Style for Burmese heading to reduce font size on mobile */
.burmese-heading {
    font-size: 1.2em; /* Adjust as needed */
}



/* FAB Styles */
.fab-container {
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 1050;
}

#fab-toggle.fab {
    width: 70px;
    height: 70px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-menu {
    position: absolute;
    bottom: 80px; /* Adjusted for new FAB size */
    right: 5px;   /* Adjusted for new FAB size */
    display: none;
    flex-direction: column;
    align-items: flex-end;
}

.fab-menu-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.fab-menu-item .fab-label {
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    white-space: nowrap;
}

/* Custom Pagination Colors */
.pagination .page-item.active .page-link {
    background-color: #c82333;
    border-color: #c82333;
    color: #fff;
}

.pagination .page-link {
    color: #c82333;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Responsive image grid for mobile */
@media (max-width: 767px) {
    .image-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px; /* Adjust gap as needed */
    }

    .image-item {
        text-align: center; /* Center images within their grid items */
    }

    .image-item img {
        max-width: 100%;
        height: auto;
    }
}



/* Custom Lightbox Styles */
.custom-lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.custom-lightbox.active {
    display: flex; /* Show when active */
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev-button, .next-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2001;
}

.next-button {
    right: 0;
    border-radius: 3px 0 0 3px;
    text-decoration: none;
}

.prev-button {
    left: 0;
    border-radius: 3px 0 0 3px; /* Added for consistency */
    text-decoration: none;
}

.prev-button:hover, .next-button:hover {
} 

/* Language-specific adjustments for h5 privacy heading */
html[lang="my"] h4.privacy-heading {
    font-size: 1.5em !important; /* Adjusted for better readability in Burmese */
}

/* Add your custom styles here */

.privacy-heading {
    font-size: 1.2em; /* Increased for better readability */
    line-height: 1.2;
}

/* PWA Install Modal */
#pwa-install-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pwa-install-modal {
    background-color: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.pwa-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.pwa-modal-icon {
    width: 48px;
    height: 48px;
    margin-right: 12px;
}

.pwa-modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.pwa-modal-body {
    margin-bottom: 24px;
}

.pwa-modal-description {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 16px;
}

#pwa-ios-instructions p {
    margin: 4px 0;
    font-weight: 500;
}

#pwa-ios-instructions .fa-solid {
    color: #007bff;
}

.pwa-modal-footer {
    display: flex;
    flex-direction: column;
}

.country-code-select {
    width: 25% !important;
}

/* Fix for Tagify background issue in production */
.tagify__tag > div::before {
    background-color: #E5E5E5 !important; /* Default background */
}

.tagify__tag:hover > div::before {
    background-color: var(--tag-hover, #D3E2E2) !important; /* Hover background */
}

.tagify__tag .tagify__tag__removeBtn:hover ~ div::before {
    background-color: var(--tag-remove-bg, rgba(211, 148, 148, 0.3)) !important; /* Remove button hover */
}
