/* These styles are generated from project.scss. */

/* Global Button Style Adjustments */
.btn {
    border-radius: 0 !important; /* No rounded corners for any button */
}

body {
    font-family: "Open Sans", serif !important;
}

.alert-debug {
    color: black;
    background-color: white;
    border-color: #d6e9c6;
}

.alert-error {
    color: #b94a48;
    background-color: #f2dede;
    border-color: #eed3d7;
}

/* Custom styling for alert-info */
.alert-info {
    color: white !important;
    background-color: black !important;
    border-color: black !important;
}

/* Style the close button in alert-info */
.alert-info .btn-close {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%) !important; /* Makes it white */
    opacity: 0.8 !important;
}

.alert-info .btn-close:hover {
    opacity: 1 !important;
}

/* Ensure links inside alert-info have good contrast */
.alert-info a {
    color: #f6ee24 !important; /* Yellow to match the primary button color */
    text-decoration: underline;
}

.alert-info a:hover {
    color: #ffffff !important;
    text-decoration: none;
}

/* Ensure buttons inside alert-info have appropriate styling */
.alert-info .btn-outline-primary {
    color: #f6ee24 !important; /* Yellow text */
    border-color: #f6ee24 !important; /* Yellow border */
    background-color: transparent !important;
}

.alert-info .btn-outline-primary:hover {
    background-color: #f6ee24 !important; /* Yellow background on hover */
    color: black !important; /* Black text on hover */
    border-color: #f6ee24 !important;
}

.navbar {
    background: white;
    z-index: 99999;
    width: 100%;
    top: 0;
    position: fixed;
    overflow: hidden;
}

/* Make sure the navbar menu is above filters and other content */
.navbar-collapse {
    z-index: 1051 !important; /* Bootstrap modal z-index is 1050, so this is safe */
    position: relative;
    background: white; /* Optional: ensures the menu is not transparent */
}

/* Responsive font sizing for navbar items */
.navbar-nav .nav-link {
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive font sizing based on viewport width */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-nav .nav-link {
        font-size: calc(0.7rem + 0.2vw);
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        font-size: calc(0.8rem + 0.2vw);
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }
}

@media (min-width: 1200px) {
    .navbar-nav .nav-link {
        font-size: 1rem;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
}

/* Optimize navbar space usage */
.navbar .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-brand img {
        height: 35px !important; /* Slightly smaller logo on medium screens */
    }
    
    #price-max-filter {
        width: 80px !important; /* Smaller input field on medium screens */
    }
}

.footer {
    bottom: 0px;
    background: #fff;
    width: 100%;
    float: left;
    border-top: 1px solid #ddd;
    padding: 23.5px 30px 35px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px; /* Optional spacing between field and button */
}

.form-row .col-md-9 {
    flex: 1; /* Makes the input field take most of the space */
}

#find-address-btn {
    flex-shrink: 0; /* Prevents the button from shrinking */
}

@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        font-size: 0.95rem;
        gap: 2px;
    }

    .pagination .page-item {
        flex: 1 1 32px;
        min-width: 32px;
        max-width: 40px;
    }

    .pagination .page-link {
        padding: 0.5rem 0.5rem;
        min-width: 32px;
        text-align: center;
    }
}

/* Force hide mobile search form on medium screens and up */
@media (min-width: 768px) {
    .mobile-search-form {
        display: none !important;
    }
}

/* Styling for soft-deleted quotes in my_quotes table */
.quote-deleted {
    /* Keep opacity and background on the row */
    opacity: 0.6;
    background-color: #f8f9fa; /* Optional: light grey background */
}

/* Apply line-through directly to table cells in deleted rows (Increased Specificity) */
table .quote-deleted td {
    text-decoration: line-through;
}

/* Ensure links within deleted rows are also styled correctly */
.quote-deleted a {
    /* text-decoration: line-through !important; */ /* Avoid double strikethrough if parent already has it */
    color: #6c757d !important; /* Muted text color */
    pointer-events: none; /* Prevent clicking links in deleted rows */
}

/* Ensure buttons within deleted rows are visibly disabled */
.quote-deleted .btn {
    pointer-events: none;
    opacity: 0.65; /* Bootstrap's default disabled opacity */
}

/* Custom Primary Button Theme */
.btn-primary {
    background-color: #f6ee24 !important; /* Yellow */
    border-color: #000000 !important; /* Black border */
    color: #000000 !important; /* Black text */
    border-width: 2px !important; /* Thicker border */
    border-radius: 0 !important; /* No rounded corners */
}

.btn-primary:hover {
    background-color: #e0d820 !important; /* Darker yellow for hover */
    border-color: #000000 !important; /* Black border */
    color: #000000 !important; /* Black text */
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary.active {
    background-color: #c8bf1c !important; /* Even darker yellow for active/focus */
    border-color: #000000 !important; /* Black border */
    color: #000000 !important; /* Black text */
    box-shadow: 0 0 0 0.25rem rgba(246, 238, 36, 0.5) !important; /* Yellow focus ring */
}

/* Ensure disabled primary buttons also have black text if needed, though they are usually greyed out */
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #f6ee24 !important;
    border-color: #000000 !important; /* Black border */
    color: #000000 !important; /* Might still be overridden by Bootstrap's disabled opacity */
    opacity: 0.65; /* Keep Bootstrap's standard disabled opacity */
}

/* Custom Primary Outline Button Theme (Readable Version) */
.btn-outline-primary {
    color: #000000 !important; /* Black text for readability */
    border-color: #f6ee24 !important; /* Yellow border */
    border-width: 2px !important; /* Thicker border */
    border-radius: 0 !important; /* No rounded corners */
}

.btn-outline-primary:hover {
    color: #000000 !important; /* Black text */
    background-color: #f6ee24 !important; /* Yellow background */
    border-color: #f6ee24 !important; /* Yellow border */
}

.btn-outline-primary:focus,
.btn-outline-primary.focus {
    box-shadow: 0 0 0 0.25rem rgba(246, 238, 36, 0.5) !important; /* Yellow focus ring */
}

.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
    color: #000000 !important; /* Black text */
    background-color: #e0d820 !important; /* Darker yellow background */
    border-color: #e0d820 !important; /* Darker yellow border */
}

/* Style for disabled outline buttons */
.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
    color: #000000 !important; /* Black text (consistency, opacity handles dimming) */
    background-color: transparent !important;
    border-color: #f6ee24 !important; /* Keep yellow border */
    opacity: 0.65; /* Use Bootstrap's standard disabled opacity */
}

/* Custom CSS for Space4Ads */

/* Ensure map controls are above other elements if z-index issues arise */
.leaflet-control-container {
    z-index: 1000; /* Standard z-index for map controls */
}

.custom-radio-label {
    display: block; /* Makes the whole area clickable if you nest input inside */
    margin-bottom: 5px; /* Adds some space between radio options */
}

/* Style for when a custom radio button is checked */
.custom-radio-label input[type="radio"]:checked + span {
    font-weight: bold;
    /* Add more styling as needed, e.g., background-color, border */
}

/* Custom Secondary Outline Button Theme */
.btn-outline-secondary {
    color: #6c757d !important; /* Bootstrap gray */
    border-color: #6c757d !important; /* Gray border */
    border-width: 2px !important; /* Thicker border */
    border-radius: 0 !important; /* No rounded corners */
}

.btn-outline-secondary:hover {
    color: #ffffff !important; /* White text */
    background-color: #6c757d !important; /* Gray background */
    border-color: #6c757d !important; /* Gray border */
}

.btn-outline-secondary:focus,
.btn-outline-secondary.focus {
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.5) !important; /* Gray focus ring */
}

.btn-outline-secondary:active,
.btn-outline-secondary.active,
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active {
    color: #ffffff !important; /* White text */
    background-color: #5a6268 !important; /* Darker gray background */
    border-color: #5a6268 !important; /* Darker gray border */
}

.btn-outline-secondary:disabled,
.btn-outline-secondary.disabled {
    color: #6c757d !important; /* Gray text */
    background-color: transparent !important;
    border-color: #6c757d !important; /* Gray border */
    opacity: 0.65; /* Use Bootstrap's standard disabled opacity */
}

/* Custom Danger Outline Button Theme */
.btn-outline-danger {
    color: #dc3545 !important; /* Bootstrap red */
    border-color: #dc3545 !important; /* Red border */
    border-width: 2px !important; /* Thicker border */
    border-radius: 0 !important; /* No rounded corners */
}

.btn-outline-danger:hover {
    color: #ffffff !important; /* White text */
    background-color: #dc3545 !important; /* Red background */
    border-color: #dc3545 !important; /* Red border */
}

.btn-outline-danger:focus,
.btn-outline-danger.focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.5) !important; /* Red focus ring */
}

.btn-outline-danger:active,
.btn-outline-danger.active,
.btn-outline-danger:not(:disabled):not(.disabled):active,
.btn-outline-danger:not(:disabled):not(.disabled).active {
    color: #ffffff !important; /* White text */
    background-color: #c82333 !important; /* Darker red background */
    border-color: #c82333 !important; /* Darker red border */
}

.btn-outline-danger:disabled,
.btn-outline-danger.disabled {
    color: #dc3545 !important; /* Red text */
    background-color: transparent !important;
    border-color: #dc3545 !important; /* Red border */
    opacity: 0.65; /* Use Bootstrap's standard disabled opacity */
}

/* Profile page button standardization */
.profile-button-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left-justified */
    gap: 0.75rem; /* Space between buttons */
}

.profile-button-container .btn {
    width: 200px; /* Fixed width based on "Re-send Verification" button */
    text-align: center;
}

/* For inline button groups that should stay together */
.profile-button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-button-group .btn {
    width: auto; /* Let these buttons size naturally */
    min-width: 150px; /* But ensure minimum width */
}

/* Mobile specific padding for fixed bottom navbar */
@media (max-width: 767.98px) {
    /* Bootstrap 'md' breakpoint is 768px. This targets < md */
    .pb-mobile-nav {
        padding-bottom: 75px; /* Adjust this value based on actual nav bar height + desired spacing */
    }
    
    /* Make profile buttons full width on mobile */
    .profile-button-container .btn,
    .profile-button-group .btn {
        width: 100%;
        min-width: unset;
    }
}

/* Profile Picture Styling */
.profile-picture-container {
    display: inline-block;
    position: relative;
    margin-bottom: 1rem;
}

.profile-picture-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f6ee24; /* Yellow border matching the theme */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.profile-picture-circle:hover {
    transform: scale(1.05);
}

.profile-picture-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 4px solid #f6ee24; /* Yellow border matching the theme */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #6c757d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive sizing for mobile */
@media (max-width: 767.98px) {
    .profile-picture-circle,
    .profile-picture-placeholder {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
    
    .profile-picture-placeholder {
        font-size: 2.5rem;
    }
}
