/* =========================================================
   BookBanjara – Professional UI Theme
   Mobile-first, clean, production-ready
   ========================================================= */

body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

/* -----------------------------
   Headings & Text
----------------------------- */
h4, h5, h6 {
    font-weight: 600;
}

label {
    font-weight: 500;
    font-size: 0.9rem;
}

/* -----------------------------
   Cards
----------------------------- */
.card {
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0;
}

.shadow-sm {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* -----------------------------
   Forms
----------------------------- */
.form-control {
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-control:focus {
    box-shadow: none;
    border-color: #28a745;
}

/* Readonly input */
.form-control[readonly] {
    background-color: #e9ecef;
}

/* -----------------------------
   Buttons
----------------------------- */
.btn {
    border-radius: 25px;
    font-size: 0.9rem;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-outline-danger {
    border-width: 2px;
}

.btn-sm {
    border-radius: 20px;
    padding: 4px 10px;
}

/* -----------------------------
   Tables
----------------------------- */
.table th,
.table td {
    vertical-align: middle !important;
    font-size: 0.9rem;
}

.table thead th {
    background-color: #343a40;
    color: #fff;
}

.table-hover tbody tr:hover {
    background-color: #f1f1f1;
}

/* -----------------------------
   Badges
----------------------------- */
.badge {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 12px;
}

/* -----------------------------
   Modal
----------------------------- */
.modal-content {
    border-radius: 10px;
}

.modal-header {
    background-color: #343a40;
    color: #fff;
}

.modal-header .close {
    color: #fff;
    opacity: 1;
}

/* -----------------------------
   Navbar & Footer
----------------------------- */
.navbar-brand {
    font-size: 1.2rem;
    font-weight: 600;
}

footer {
    font-size: 0.85rem;
}

/* -----------------------------
   Alerts
----------------------------- */
.alert {
    border-radius: 8px;
    font-size: 0.9rem;
}

/* -----------------------------
   Responsive Tweaks
----------------------------- */
@media (max-width: 768px) {

    h4 {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 6px 16px;
    }

    .table th,
    .table td {
        font-size: 0.8rem;
    }
    
}   
	
/* ===============================
   Footer Fix – Mobile Only
================================ */
footer {
    font-size: 0.85rem;
    padding: 14px 12px;
    text-align: center;
    line-height: 1.4;
    white-space: normal;      /* allow wrapping */
    overflow: visible;        /* no clipping */
    word-break: break-word;   /* prevent overflow */
}

/* Extra small phones (<= 360px) */
@media (max-width: 360px) {
    footer {
        font-size: 0.75rem;
        padding: 12px 8px;
    }
} 

@media (max-width: 576px) {

    .card-body h5 {
        font-size: 1.1rem;
    }

    .btn {
        width: 100%;
    }
}   

/* ===============================
   Global Page Loader
================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 246, 240, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.page-loader .spinner-border {
    width: 3rem;
    height: 3rem;
}

.page-loader .loader-text {
    font-weight: 500;
    font-size: 0.95rem;
    color: #2f5d3b;
}   
    
@media all and (display-mode: standalone) {
  body {
    padding-top: 0;
  }
}
   
/* ==========================================
   Ultra Small Mobile Fix (<= 360px)
========================================== */
@media (max-width: 360px) {

    /* Reduce container padding */
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Card spacing control */
    .card {
        border-radius: 8px;
    }

    .card-body {
        padding: 14px;
    }

    /* Form fields tighter */
    .form-control {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    /* Headings compact */
    h4, h5 {
        font-size: 1.1rem;
    }

    /* Buttons stay readable but not oversized */
    .btn {
        font-size: 0.85rem;
        padding: 8px 12px;
        width: 100%;
    }

    /* Prevent layout overflow */
    body {
        overflow-x: hidden;
    }
}
	
/* =====================================
   Footer – Single line on Mobile ONLY
===================================== */
@media (max-width: 576px) {

    footer {
        white-space: nowrap;      /* force single line */
        overflow-x: auto;         /* allow horizontal scroll */
        overflow-y: hidden;
        text-overflow: unset;
        -webkit-overflow-scrolling: touch;
        line-height: 1.2;
    }

    footer::-webkit-scrollbar {
        height: 2px;
    }
}   
    
/* =====================================
   Footer – FINAL Mobile Fix (Single Line)
   Does NOT affect desktop
===================================== */
@media (max-width: 576px) {

    footer {
        display: block;
        width: 100%;
        font-size: 0.75rem;
        padding: 12px 10px;

        /* force single line */
        white-space: nowrap;

        /* allow horizontal scroll instead of wrapping */
        overflow-x: auto;
        overflow-y: hidden;

        /* smooth scroll on mobile */
        -webkit-overflow-scrolling: touch;

        /* prevent Bootstrap/container interference */
        word-break: normal !important;
        text-align: center;
    }

    /* hide scrollbar visually but keep functionality */
    footer::-webkit-scrollbar {
        height: 0;
    }
}   
    
/* =====================================
   Footer – Mobile & Tablet ONLY (Final)
===================================== */
@media (max-width: 768px) {

    footer {
        font-size: 0.75rem;   /* slightly smaller */
        text-align: center;   /* center aligned */
        line-height: 1.3;
        padding: 12px 10px;
        white-space: normal; /* allow natural wrapping */
    }

}
    
/* =====================================
   Scan & Pay Section
===================================== */

.scan-pay-wrapper {
    display: flex;
    justify-content: center;
}

.scan-pay-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 22px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px dashed #28a745;
}

.scan-pay-title {
    font-weight: 600;
    color: #2f5d3b;
    margin-bottom: 6px;
}

.scan-pay-text {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 12px;
}

.scan-pay-qr {
    width: 180px;
    max-width: 100%;
    margin: 10px auto;
    display: block;
    border-radius: 8px;
}

.scan-pay-upi {
    font-size: 0.85rem;
    margin-top: 8px;
    color: #333;
}

/* Mobile optimization */
@media (max-width: 576px) {

    .scan-pay-card {
        padding: 16px;
    }

    .scan-pay-qr {
        width: 150px;
    }

    .scan-pay-text {
        font-size: 0.8rem;
    }
}   
    
.qr-code {
    width: 180px;
    max-width: 100%;
}
@media (max-width: 576px) {
    .qr-code {
        width: 220px;
    }
}

.dashboard-container .chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 320px;
}

@media (max-width: 768px) {
    .dashboard-container h5 {
        font-size: 16px;
    }
}   
   
.chart-wrapper {
    position: relative;
    height: 350px;        /* desktop */
    width: 100%;
}

@media (max-width: 768px) {
    .chart-wrapper {
        height: 280px;    /* mobile */
    }
}
     
.chart-container {
    position: relative;
    width: 100%;
    height: 360px;   /* DESKTOP */
}

@media (max-width: 768px) {
    .chart-container {
        height: 280px;   /* MOBILE */
    }
}
    