/* PostalGates Custom Styles */

/* Global Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hero logo on landing page */
.hero-logo {
    max-width: 320px;   /* reduce visual size on large screens */
    width: 100%;
    height: auto;
    background: transparent; /* ensure no background shows */
    box-shadow: none !important;        /* remove any drop shadow */
    border-radius: 0 !important;        /* remove rounded corners */
    display: block;
    margin: 0 auto;                     /* center within column */
}

main {
    flex: 1 0 auto;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Navbar brand logo */
.nav-logo {
    height: 32px !important;
    max-height: 32px !important;
    width: auto !important;
    display: inline-block;
    background: transparent;
    object-fit: contain;
}

/* Cards */
.card {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-header {
    font-weight: bold;
}

/* Dashboard */
.dashboard-stat {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.dashboard-stat h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Package Status Badges */
.badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
}

.pg-badge-bronze {
    background-color: #cd7f32 !important;
}

.pg-badge-silver {
    background-color: #c0c0c0 !important;
}

.pg-badge-gold {
    background-color: #ffd700 !important;
}

.pg-badge-platinum {
    background-color: #f0ead6 !important;
}

.pg-badge-diamond {
    background-color: #b9f2ff !important;
}

.pg-suite-border-reserved {
    border-color: #fd7e14 !important;
}

.pg-suite-badge-reserved {
    background-color: #fd7e14 !important;
}

.pg-step-circle {
    width: 60px;
    height: 60px;
}

.pg-w-0 { width: 0% !important; }
.pg-w-1 { width: 1% !important; }
.pg-w-2 { width: 2% !important; }
.pg-w-3 { width: 3% !important; }
.pg-w-4 { width: 4% !important; }
.pg-w-5 { width: 5% !important; }
.pg-w-6 { width: 6% !important; }
.pg-w-7 { width: 7% !important; }
.pg-w-8 { width: 8% !important; }
.pg-w-9 { width: 9% !important; }
.pg-w-10 { width: 10% !important; }
.pg-w-11 { width: 11% !important; }
.pg-w-12 { width: 12% !important; }
.pg-w-13 { width: 13% !important; }
.pg-w-14 { width: 14% !important; }
.pg-w-15 { width: 15% !important; }
.pg-w-16 { width: 16% !important; }
.pg-w-17 { width: 17% !important; }
.pg-w-18 { width: 18% !important; }
.pg-w-19 { width: 19% !important; }
.pg-w-20 { width: 20% !important; }
.pg-w-21 { width: 21% !important; }
.pg-w-22 { width: 22% !important; }
.pg-w-23 { width: 23% !important; }
.pg-w-24 { width: 24% !important; }
.pg-w-25 { width: 25% !important; }
.pg-w-26 { width: 26% !important; }
.pg-w-27 { width: 27% !important; }
.pg-w-28 { width: 28% !important; }
.pg-w-29 { width: 29% !important; }
.pg-w-30 { width: 30% !important; }
.pg-w-31 { width: 31% !important; }
.pg-w-32 { width: 32% !important; }
.pg-w-33 { width: 33% !important; }
.pg-w-34 { width: 34% !important; }
.pg-w-35 { width: 35% !important; }
.pg-w-36 { width: 36% !important; }
.pg-w-37 { width: 37% !important; }
.pg-w-38 { width: 38% !important; }
.pg-w-39 { width: 39% !important; }
.pg-w-40 { width: 40% !important; }
.pg-w-41 { width: 41% !important; }
.pg-w-42 { width: 42% !important; }
.pg-w-43 { width: 43% !important; }
.pg-w-44 { width: 44% !important; }
.pg-w-45 { width: 45% !important; }
.pg-w-46 { width: 46% !important; }
.pg-w-47 { width: 47% !important; }
.pg-w-48 { width: 48% !important; }
.pg-w-49 { width: 49% !important; }
.pg-w-50 { width: 50% !important; }
.pg-w-51 { width: 51% !important; }
.pg-w-52 { width: 52% !important; }
.pg-w-53 { width: 53% !important; }
.pg-w-54 { width: 54% !important; }
.pg-w-55 { width: 55% !important; }
.pg-w-56 { width: 56% !important; }
.pg-w-57 { width: 57% !important; }
.pg-w-58 { width: 58% !important; }
.pg-w-59 { width: 59% !important; }
.pg-w-60 { width: 60% !important; }
.pg-w-61 { width: 61% !important; }
.pg-w-62 { width: 62% !important; }
.pg-w-63 { width: 63% !important; }
.pg-w-64 { width: 64% !important; }
.pg-w-65 { width: 65% !important; }
.pg-w-66 { width: 66% !important; }
.pg-w-67 { width: 67% !important; }
.pg-w-68 { width: 68% !important; }
.pg-w-69 { width: 69% !important; }
.pg-w-70 { width: 70% !important; }
.pg-w-71 { width: 71% !important; }
.pg-w-72 { width: 72% !important; }
.pg-w-73 { width: 73% !important; }
.pg-w-74 { width: 74% !important; }
.pg-w-75 { width: 75% !important; }
.pg-w-76 { width: 76% !important; }
.pg-w-77 { width: 77% !important; }
.pg-w-78 { width: 78% !important; }
.pg-w-79 { width: 79% !important; }
.pg-w-80 { width: 80% !important; }
.pg-w-81 { width: 81% !important; }
.pg-w-82 { width: 82% !important; }
.pg-w-83 { width: 83% !important; }
.pg-w-84 { width: 84% !important; }
.pg-w-85 { width: 85% !important; }
.pg-w-86 { width: 86% !important; }
.pg-w-87 { width: 87% !important; }
.pg-w-88 { width: 88% !important; }
.pg-w-89 { width: 89% !important; }
.pg-w-90 { width: 90% !important; }
.pg-w-91 { width: 91% !important; }
.pg-w-92 { width: 92% !important; }
.pg-w-93 { width: 93% !important; }
.pg-w-94 { width: 94% !important; }
.pg-w-95 { width: 95% !important; }
.pg-w-96 { width: 96% !important; }
.pg-w-97 { width: 97% !important; }
.pg-w-98 { width: 98% !important; }
.pg-w-99 { width: 99% !important; }
.pg-w-100 { width: 100% !important; }

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 1.5rem 0;
}

/* Authentication Pages */
.auth-card {
    max-width: 500px;
    margin: 2rem auto;
}

/* Package Details */
.package-info {
    margin-bottom: 1.5rem;
}

/* Document Viewer */
.document-viewer {
    width: 100%;
    height: 600px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* FAQ Accordion Styling */
#faqAccordion .accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
}

#faqAccordion .accordion-item + .accordion-item {
    margin-top: 0.5rem;
}

#faqAccordion .accordion-button {
    background-color: #e7f1ff; /* light blue for distinction */
    font-weight: 600;
}

#faqAccordion .accordion-button.collapsed {
    background-color: #e9ecef; /* slightly darker gray when collapsed */
    font-weight: 500;
}

#faqAccordion .accordion-body {
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
}

#faqAccordion .accordion-button:focus {
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

.price-popover-bs {
    --bs-popover-max-width: 520px;
    --bs-popover-bg: #fffbe6;
    --bs-popover-border-color: #e6d98f;
}

.price-popover-bs .popover-header {
    background-color: #fff5cc;
    border-bottom-color: #e6d98f;
}

.price-popover-bs .popover-body {
    background-color: #fffbe6;
}

.price-popover-bs .table {
    --bs-table-bg: #fffbe6;
    --bs-table-color: #212529;
    --bs-table-striped-bg: #fff5cc;
    --bs-table-striped-color: #212529;
}

/* Override Bootstrap's table cell background inside the popover */
.price-popover-bs .table > :not(caption) > * > * {
    background-color: #fffbe6 !important;
}

.price-popover-bs table td,
.price-popover-bs table th {
    white-space: nowrap;
}

/* Extra-robust targeting for mobile: style the table by inner content wrapper */
.price-popover-content .table > :not(caption) > * > * {
    background-color: #fffbe6 !important;
}

.price-popover-content table td,
.price-popover-content table th {
    white-space: nowrap;
}

.print-tooltip-bs {
    --bs-tooltip-max-width: 520px;
}

.tooltip.print-tooltip-bs {
    pointer-events: none;
}

.tooltip.print-tooltip-bs .tooltip-inner {
    background-color: #fffbe6;
    color: #212529;
    border: 1px solid #e6d98f;
    text-align: left;
    white-space: pre-line;
}

.print-hover-tooltip {
    position: fixed;
    z-index: 1080;
    max-width: 520px;
    background-color: #fffbe6;
    color: #212529;
    border: 1px solid #e6d98f;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: pre-line;
    pointer-events: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}
