:root {
    --bs-body-font-size: 1.2rem;
}

body {
    padding-bottom: 70px;
    background-color: #f4f7f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}

.container {
    max-width: 1200px;
}

.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, .075);
    transition: box-shadow .2s ease-in-out;
    background-color: #fff;
}

.card:hover:not(.clickable-card) {
    /* Non-clickable cards get standard hover */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .12) !important;
}

.card.clickable-card:hover {
    /* Clickable cards get a slightly different hover */
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, .15) !important;
    /* Primary color shadow */
    cursor: pointer;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eff2f5;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
}

.btn-whatsapp {
    background-color: #25D366 !important;
    color: white !important;
    border-color: #25D366 !important;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #1DAA50 !important;
    border-color: #1DAA50 !important;
    color: white !important;
}

.lead-card {
    margin-bottom: 1rem;
}

.lead-card-info p {
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    color: #555;
}

.lead-card-info strong {
    min-width: 70px;
    display: inline-block;
    color: #333;
    font-weight: 500;
}

.lead-card-info .fas,
.lead-card-info .far {
    width: 20px;
}

.tag-recent,
.badge.bg-light.text-dark.border {
    background-color: #e9ecef !important;
    color: #495057 !important;
    padding: 0.3em 0.6em;
    border-radius: 0.25rem;
    font-size: 0.8em;
    font-weight: 500;
    border: 1px solid #dee2e6 !important;
}

.badge.bg-info.text-dark {
    background-color: #cff4fc !important;
    color: #055160 !important;
}

@media (max-width: 767.98px) {
    .table-responsive-md-cards .table thead,
    .table-responsive-md-cards .table tbody tr.d-none.d-md-table-row {
        display: none !important;
    }
    .table-responsive-md-cards tr.d-md-none {
        display: table-row !important;
    }
    .table-responsive-md-cards tr.d-md-none>td {
        display: block;
        padding: 0 !important;
        border: none !important;
    }
    .table-responsive-md-cards .lead-card {
        display: block !important;
        width: 100%;
        margin-bottom: 1rem;
        border-radius: 0.5rem;
    }
    .lead-card .btn-lg {
        /* Ensure larger buttons on mobile cards */
        padding: .5rem 1rem;
        font-size: 1rem;
    }
}

.table th,
.table td {
    vertical-align: middle;
    padding: 0.9rem 0.75rem;
    border-bottom-width: 1px;
}

.table thead th {
    font-weight: 500;
    color: #495057;
    background-color: #f8f9fa;
    border-bottom-width: 2px;
    border-top: none;
}

.table-hover tbody tr.clickable-row:hover {
    /* Ensure this targets clickable rows specifically if needed */
    background-color: #e9f5ff;
    /* A slightly more distinct hover for clickable rows */
    cursor: pointer;
}


/* Larger CTA buttons for desktop table view */

.table .btn-lg-cta {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    /* Slightly smaller than standard btn-lg but larger than default */
}

.table .btn-group .btn-lg-cta {
    /* Adjust for btn-group */
    /* If needed, add specific padding or margin adjustments here */
}

footer.fixed-bottom {
    z-index: 1020;
    background-color: #e9ecef !important;
    border-top: 1px solid #dee2e6;
}

.page-link {
    color: #0d6efd;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.page-item.disabled .page-link {
    color: #6c757d;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-success {
    color: #198754;
    border-color: #198754;
}

.btn-outline-success:hover {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-info {
    color: #0dcaf0;
    border-color: #0dcaf0;
}

.btn-outline-info:hover {
    color: #000;
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}


/* Sidebar styles */

#sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background-color: #343a40;
    color: white;
    transition: left 300ms ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1040;
}

#sidebar.open {
    left: 0;
}

@media (max-width: 767.98px) {
    #sidebar {
        width: 90%;
        left: -90%;
    }
}

#toggleSidebar {
    transition: margin-left 300ms ease;
}

#closeSidebar {
    display: none;
}

@media (max-width: 767.98px) {
    #closeSidebar {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        z-index: 1050;
    }
}


/* Additional Fields styling */

.additional-fields {
    background-color: #e9ecef;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Floating WhatsApp Button */

.floating-whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background-color: #25D366;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    font-size: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}