/* Local Lendables Custom CSS - ll.css */
/* This file loads last to override Bootstrap and other styles */

/* Mobile Category Badge Text Wrapping Fix */
.badge {
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
    display: inline-block !important;
}

/* Non-breaking badge labels for Lendable/Rentable/Asking */
.badge-nowrap {
    white-space: nowrap !important;
}

/* Mobile-responsive image upload options */
@media (max-width: 768px) {
    /* Hide Phone+QR option on mobile */
    .desktop-only-qr {
        display: none !important;
    }
    
    /* Show mobile camera icon, hide desktop camera icon */
    .desktop-camera-icon {
        display: none !important;
    }
    
    .mobile-camera-icon {
        display: inline !important;
    }
}

@media (min-width: 769px) {
    /* Show desktop camera icon, hide mobile camera icon */
    .desktop-camera-icon {
        display: inline !important;
    }
    
    .mobile-camera-icon {
        display: none !important;
    }
}

/* Checkbox Styling - Dark Black Outline for Better Visibility */
input[type="checkbox"],
.form-check-input {
    border: 2px solid #000000 !important;
    box-shadow: none !important;
}

input[type="checkbox"]:focus,
.form-check-input:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
}

input[type="checkbox"]:checked,
.form-check-input:checked {
    background-color: #007bff !important;
    border-color: #000000 !important;
}

/* Font Face Declarations */
@font-face {
    font-family: 'Cavolini';
    src: url('/fonts/CAVOLINI.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cavolini Bold';
    src: url('/fonts/CAVOLINIBOLD.TTF') format('truetype');
    font-weight: bold;
    font-style: normal;
}

.bg-primary-subtle {
    font-family: 'Cavolini', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

.bg-color-lightgreen {
    background-color: lightgreen !important;
}

.accordion {
    --cz-accordion-btn-padding-y: 0.5rem;
}

body {
    font-size: 1rem !important;
    font-family: Tahoma, 'helvetica', 'arial', sans-serif !important;
    color: #000000 !important;
    background-color: transparent !important;
    overflow: auto !important;
}

/* ULTIMATE GIANTISH OVERRIDE - Maximum specificity */
.giantish,
h1.giantish,
h2.giantish,
h3.giantish,
h4.giantish,
h5.giantish,
h6.giantish,
.giantish.mb-0,
h2.giantish.mb-0,
.container-fluid h2.giantish,
main .container-fluid h2.giantish,
main .container-fluid .row .col-12 h2.giantish,
.d-flex h2.giantish,
body .giantish,
html body .giantish,
html body main .giantish,
html body main .container-fluid .giantish {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-weight: bold !important;
    font-size: 1.4rem !important;
    line-height: 1.5 !important;
}

.giant {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-size: 1.6rem !important;
    line-height: 1.4 !important;
}

.giantette {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
}

.giantelle {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-family: 'Cavolini', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
}

.midhead {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-align: center;
    font-family: 'Cavolini', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-weight: bold;
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
}

.middrop {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-align: left;
    font-family: 'Cavolini', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-weight: bold;
    font-size: 1.125rem !important;
    line-height: 1.25 !important;
}

.midsmall {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-align: left;
    font-family: 'Cavolini', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
}

.midi {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-family: 'Cavolini', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.3 !important;
}

.medium {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-family: 'Cavolini', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-size: 0.875rem !important;
    line-height: 1.2 !important;
}

.mini {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-family: 'Cavolini', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
}

/* Override Bootstrap text-muted line-height for mini elements */
small.text-muted.mini,
.text-muted.mini {
    line-height: 1 !important;
}

/* Ultra-specific rule to override ANY line-height inheritance for mini elements */
.card-body small.mini,
.card small.mini,
small.mini,
.mini {
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Specific rules for dashboard item titles */
.card-title.mini, h6.mini, .mini h6, h6.card-title.mini {
    font-family: 'Cavolini', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

.card .mini, .card-body .mini {
    font-family: 'Cavolini', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

/* Hover effects for cards */
.card:hover {
    background-color: #e8f5e8 !important;
    transition: background-color 0.2s ease-in-out;
}

.card {
    transition: background-color 0.2s ease-in-out;
}

/* Prevent hover effects on specific cards */
.card.no-hover:hover {
    background-color: white !important;
}

/* Prevent hover effects on response option cards to preserve borders */
.card.response-option:hover {
    background-color: white !important;
}

.headermini {
    margin-top: 0.125rem !important;
    margin-bottom: 0.1875rem !important;
    font-family: Tahoma, sans-serif !important;
    font-size: 0.75rem !important;
    line-height: 1.1 !important;
    text-align: center !important;
}

.h1 {
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

.h2 {
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

.h3 {
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

.h4 {
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

.h5 {
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

.h6 {
    font-family: 'Cavolini', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

.onlycavolini {
    font-family: 'Cavolini', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

/* Override Bootstrap's .small class with Cavolini font */
.small,
small,
.small *,
small *,
.btn.small,
.btn.small *,
a.small,
a.small *,
button.small,
button.small * {
    font-size: 0.75rem !important;
    line-height: 1.1 !important;
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

/* Ensure all buttons use Cavolini font - CACHE BREAK v2 */
.btn,
.btn *,
button,
button *,
a.btn,
a.btn *,
.btn-outline-primary,
.btn-outline-success,
.btn-sm {
    font-family: 'Cavolini', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

/* Force cache refresh for Messages Inbox */
h2.giantish {
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-weight: bold !important;
    font-size: 1.4rem !important;
    line-height: 1.5 !important;
}

/* Cache breaker v4 - ULTIMATE font forcing for messages inbox */
.container-fluid h2.giantish,
main h2.giantish,
h2.giantish.mb-0,
h2.giantish,
.giantish,
*[class*="giantish"] {
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-weight: bold !important;
}

/* NUCLEAR OPTION - Force Cavolini on ALL buttons with maximum specificity */
.btn,
.btn *,
button,
button *,
a.btn,
a.btn *,
.btn-outline-primary,
.btn-outline-success,
.btn-sm,
*[class*="btn"],
.container-fluid .btn,
main .btn,
div .btn,
.d-flex .btn {
    font-family: 'Cavolini', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

/* Exclude giantish from button font override - MUST use Cavolini Bold */
.btn.giantish,
button.giantish,
a.btn.giantish,
h1.giantish,
h2.giantish,
h3.giantish,
h4.giantish,
h5.giantish,
h6.giantish,
.giantish {
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-weight: bold !important;
}

/* Fix FontAwesome icons everywhere - exclude from font override */
header .fas,
header .far,
header .fab,
.navbar .fas,
.navbar .far,
.navbar .fab,
.btn .fas,
.btn .far,
.btn .fab,
.fas,
.far, 
.fab,
i.fas,
i.far,
i.fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
}

/* Messages Inbox specific overrides with extreme specificity */
.container-fluid main .row .col-12 .d-flex .btn.btn-outline-primary.small,
.container-fluid main .row .col-12 h2.giantish.mb-0,
main h2.giantish.mb-0,
h2.giantish.mb-0 {
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-weight: bold !important;
}

/* Force Cavolini font for breadcrumbs and section headings with maximum specificity */
nav.container .breadcrumb,
nav.container .breadcrumb li,
nav.container .breadcrumb-item,
nav.container .breadcrumb a,
nav.container .breadcrumb span,
nav.container .breadcrumb-item a,
nav.container .breadcrumb-item span,
ol.breadcrumb,
ol.breadcrumb li,
ol.breadcrumb .breadcrumb-item,
ol.breadcrumb .breadcrumb-item a,
ol.breadcrumb .breadcrumb-item span,
.breadcrumb,
.breadcrumb li,
.breadcrumb-item,
.breadcrumb a,
.breadcrumb span,
span.giantish,
.giantish,
.h5.giantish,
h5.giantish,
span.h5.lh-1.giantish {
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
    font-weight: bold !important;
}

/* Target the specific header structure in the navbar */
.navbar .nav-item .nav-link,
.navbar-brand,
header .navbar .nav-link,
header .nav-link {
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

.smallplus {
    font-size: 0.875rem !important;
    line-height: 1.2 !important;
    font-family: 'Cavolini Bold', 'Georgia', 'helvetica', 'arial', sans-serif !important;
}

.zero {
    padding: 0 !important;
    line-height: 0 !important;
}

/* Responsive Media Queries with Fluid Typography */
@media screen and (max-width: 480px) {
    /* Mobile phones */
    .homemidi {
        font-size: clamp(1rem, 4.5vw, 1.5rem) !important;
        line-height: 1.3 !important;
    }
    
    .homehead {
        font-size: clamp(1.2rem, 5.5vw, 2rem) !important;
        line-height: 1.2 !important;
    }
    
    .homesmaller {
        font-size: clamp(0.8rem, 3.5vw, 1.1rem) !important;
        line-height: 1.4 !important;
        margin-bottom: 0.25rem !important;
    }

    .smallerdata {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 0.125rem !important;
    }

    /* Scale down main typography classes for mobile */
    .giantish {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
    }
    
    .giant {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }
    
    .midhead {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }
    
    .middrop {
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
    }

    input.largerCheckbox {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    .showlarge {
        display: none;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    /* Tablets */
    .homemidi {
        font-size: clamp(1.1rem, 3.5vw, 1.6rem) !important;
        line-height: 1.3 !important;
    }
    
    .homehead {
        font-size: clamp(1.3rem, 4.5vw, 2.2rem) !important;
        line-height: 1.2 !important;
    }
    
    .homesmaller {
        font-size: clamp(0.9rem, 2.8vw, 1.2rem) !important;
        line-height: 1.4 !important;
        margin-bottom: 0.2rem !important;
    }

    .smallerdata {
        font-size: clamp(0.75rem, 2.2vw, 1rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 0.15rem !important;
    }

    input.largerCheckbox {
        width: 3rem !important;
        height: 3rem !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 1000px) {
    /* Small desktops/large tablets */
    .homemidi {
        font-size: clamp(1.2rem, 2.8vw, 1.8rem) !important;
        line-height: 1.3 !important;
    }
    
    .homehead {
        font-size: clamp(1.4rem, 3.5vw, 2.4rem) !important;
        line-height: 1.2 !important;
    }
    
    .homesmaller {
        font-size: clamp(1rem, 2.2vw, 1.3rem) !important;
        line-height: 1.35 !important;
        margin-bottom: 0.15rem !important;
    }

    .smallerdata {
        font-size: clamp(0.8rem, 1.8vw, 1.1rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 0.1rem !important;
    }

    input.largerCheckbox {
        width: 2rem !important;
        height: 2rem !important;
    }
}

@media screen and (min-width: 1001px) {
    /* Large desktops */
    .homemidi {
        font-size: clamp(1.3rem, 1.4vw, 2rem) !important;
        line-height: 1.4 !important;
    }
    
    .homehead {
        font-size: clamp(1.5rem, 1.6vw, 2.5rem) !important;
        line-height: 1.3 !important;
    }
    
    .homesmaller {
        font-size: clamp(1.1rem, 1.2vw, 1.5rem) !important;
        line-height: 1.35 !important;
    }

    .smallerdata {
        font-size: clamp(0.9rem, 1vw, 1.2rem) !important;
        line-height: 1.3 !important;
    }

    input.largerCheckbox {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
    
    .showsmall {
        display: none;
    }
}

/* Demo table styles */
.democustom td {
    border: 1px solid black;
    padding: 0px;
}

.democustom td:hover {
    background: #ccc;
}

.democustom td:hover a {
    color: black;
}

.democustom td a {
    display: block;
    text-decoration: none;
}

.demo2custom td {
    border: 1px solid black;
    padding: 0px;
}

.demo2custom td:hover {
    background: white !important;
}

.demo2custom td:hover a {
    color: black !important;
}

.demo2custom td a {
    display: block;
    text-decoration: none;
}

/* Calendar tooltip line-height styling */
.tooltip-inner {
    line-height: 1.0 !important;
    white-space: pre-line !important;
}

/* Privacy label styling */
.mini {
    font-size: 0.85rem !important;
    color: #666 !important;
}