/* CSS Variables for consistent theming */
:root {
    --main-color: #003366;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Leads Kanban Board Styles */
.kanban-container {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 20px 10px;
    gap: 15px;
    min-height: 650px;
    padding-bottom: 20px;
    max-width: calc(100vw - 320px); /* Account for sidebar space */
    margin: 0;
    /* Improved horizontal scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #003366 #f1f1f1;
}

/* Webkit scrollbar styling for Chrome/Safari */
.kanban-container::-webkit-scrollbar,
.kanban-board::-webkit-scrollbar {
    height: 8px;
}

.kanban-container::-webkit-scrollbar-track,
.kanban-board::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.kanban-container::-webkit-scrollbar-thumb,
.kanban-board::-webkit-scrollbar-thumb {
    background: #003366;
    border-radius: 4px;
}

.kanban-container::-webkit-scrollbar-thumb:hover,
.kanban-board::-webkit-scrollbar-thumb:hover {
    background: #002244;
}

.kanban-board {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 20px 10px;
    gap: 15px;
    min-height: 650px;
    padding-bottom: 20px;
    max-width: calc(100vw - 320px); /* Account for sidebar (300px) + extra margin */
    margin: 0;
    width: 100%;
    /* Ensure horizontal scroll when needed */
    scrollbar-width: thin;
    scrollbar-color: #003366 #f1f1f1;
}

.kanban-column {
    min-width: 320px;
    width: 320px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    justify-content: flex-start;
    align-items: stretch;
}

.kanban-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.kanban-column-header {
    padding: 10px;
    background-color: #2d3748;
    color: white;
    font-weight: bold;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    text-align: center;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-column-header h5 {
    margin: 0;
    font-size: 1rem;
}

/* Status-specific header colors - Matching table headers */
.kanban-column[data-status="new_lead"] .kanban-column-header {
    background-color: #2d3748 !important; /* Dark grey to match table headers */
    color: white !important;
}

.kanban-column[data-status="viewing_scheduled"] .kanban-column-header {
    background-color: #2d3748 !important; /* Dark grey to match table headers */
    color: white !important;
}

.kanban-column[data-status="post_appointment"] .kanban-column-header {
    background-color: #2d3748 !important; /* Dark grey to match table headers */
    color: white !important;
}

.kanban-column[data-status="working_application"] .kanban-column-header {
    background-color: #2d3748 !important; /* Dark grey to match table headers */
    color: white !important;
}

.kanban-column-body {
    padding: 10px;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scrollbar during card moves */
    background-color: #f9f9f9;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    min-height: 100px;
    max-height: 70vh;
    transition: background-color 0.2s ease;
    /* Ensure vertical stacking of cards */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    align-content: flex-start;
    gap: 0;
    margin: 0;
    padding-top: 10px;
}

/* Override destination-box styles when it's also a kanban-column-body */
.kanban-column-body.destination-box {
    height: auto !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    text-align: left !important;
    min-width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 10px !important;
}

.kanban-column-body.drag-over {
    background-color: rgba(0, 123, 255, 0.1) !important;
    border: 2px dashed rgba(0, 123, 255, 0.5) !important;
    box-shadow: inset 0 0 10px rgba(0, 123, 255, 0.2) !important;
    /* Removed transform: scale to prevent horizontal expansion */
    transition: all 0.2s ease;
}

/* Destination boxes drag-over styling */
.destination-boxes-container-inline .destination-box.drag-over {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid rgba(0, 123, 255, 0.7) !important;
    transition: all 0.2s ease !important;
}

.approved-box.drag-over {
    background-color: rgba(40, 167, 69, 0.1) !important;
    border-color: rgba(40, 167, 69, 0.7) !important;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3) !important;
}

.not-approved-box.drag-over {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.7) !important;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3) !important;
}

.not-interested-box.drag-over {
    background-color: rgba(108, 117, 125, 0.1) !important;
    border-color: rgba(108, 117, 125, 0.7) !important;
    box-shadow: 0 4px 20px rgba(108, 117, 125, 0.3) !important;
}

.kanban-card {
    background-color: white;
    border-radius: 4px;
    padding: 10px;
    margin: 0 0 10px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    cursor: pointer;  /* Changed from grab to pointer to indicate clickable card */
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
    box-sizing: border-box; /* Include padding and border in width */
    max-width: 100%; /* Prevent card from exceeding column width */
    width: 100%; /* Fill column width consistently */
    z-index: 1;
    flex-shrink: 0;
    flex-grow: 0;
    display: block;
    align-self: stretch;
}

.kanban-card:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    cursor: pointer;  /* Changed from grab to pointer to indicate clickable card */
}

/* Disable hover effects during drag to prevent expansion glitch */
.kanban-card.is-dragging,
.kanban-card.is-dragging:hover {
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

/* Disable ALL effects during card move to prevent expansion flash */
.kanban-card.is-moving,
.kanban-card.is-moving:hover {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    pointer-events: none !important;
}

.kanban-card:active {
    cursor: pointer;  /* Keep pointer cursor even when clicking/dragging */
}

.kanban-card.dragging {
    /* opacity: 0.7; */
    /* transform: scale(0.95); */
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); */
    z-index: 10;
}

.kanban-card.no-click {
    pointer-events: none;
}

/* Highlight effect for cards when moved to a new column - DISABLED */
.kanban-card.highlight-card {
    /* animation: highlight-pulse 1s ease; */
    /* border: 1px solid #003366; */
    /* box-shadow: 0 0 8px rgba(0, 51, 102, 0.5); */
}

/*
@keyframes highlight-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 51, 102, 0.5);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 15px rgba(0, 51, 102, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(0, 51, 102, 0.5);
    }
}
*/

/* Kanban Card Header - Clean Layout */
.kanban-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.kanban-card-title {
    font-weight: 700;
    color: #1a202c;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.kanban-card-property {
    font-size: 0.875rem;
    color: #57606a;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Clean Source Text - No Badges */
.source-badge {
    font-size: 0.875rem !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap;
    flex-shrink: 0;
    background: none !important;
    border: none !important;
}

.source-badge.source-zillow {
    color: #0074e4 !important;
}

.source-badge.source-apartments-com {
    color: #ff6e00 !important;
}

.source-badge.source-manual {
    color: #6c757d !important;
}

.source-badge.source-website {
    color: #003366 !important;
}

.source-badge.source-referral {
    color: #28a745 !important;
}

.source-badge.source-walk-in {
    color: #17a2b8 !important;
}

.source-badge.source-other {
    color: #b8860b !important;
}

.kanban-card-contact {
    font-size: 0.8125rem;
    color: #57606a;
    margin-bottom: 4px;
    line-height: 1.6;
}

.kanban-card-contact div {
    margin-bottom: 4px;
}

/* Phone Link - Clean Text Only */
.phone-call-btn {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.phone-call-btn:hover {
    color: #004080;
    text-decoration: underline;
}

.phone-call-btn i {
    margin-right: 4px;
    font-size: 0.875rem;
}

.call-badge {
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.phone-call-btn:hover .call-badge {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile responsiveness for phone buttons */
@media (max-width: 768px) {
    .phone-call-btn, .kanban-card-phone {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .call-badge {
        display: none;
    }
}

/* Destination Boxes */
.destination-boxes-wrapper {
    margin-bottom: 25px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.destination-boxes-container {
    gap: 20px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
}

.destination-boxes-container.highlight {
    transform: scale(1.02);
}

.destination-box {
    padding: 12px 16px;
    border-radius: 8px;
    color: #212529;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    min-width: 140px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    font-size: 15px;
    border: 2px solid transparent;
}

.destination-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.destination-box.drag-over {
    /* transform: scale(1.1); */
    /* box-shadow: 0 0 12px rgba(0, 0, 0, 0.3); */
    /* border-style: dashed; */
}

.destination-box.approved-box {
    background-color: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
}

.destination-box.approved-box.drag-over {
    /* background-color: rgba(76, 175, 80, 0.4); */
    /* border-color: #4caf50; */
}

.destination-box.not-approved-box {
    background-color: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.4);
}

.destination-box.not-approved-box.drag-over {
    /* background-color: rgba(244, 67, 54, 0.4); */
    /* border-color: #f44336; */
}

.destination-box.not-interested-box {
    background-color: rgba(158, 158, 158, 0.2);
    border-color: rgba(158, 158, 158, 0.4);
}

.destination-box.not-interested-box.drag-over {
    /* background-color: rgba(158, 158, 158, 0.4); */
    /* border-color: #9e9e9e; */
}

.destination-box.unresponsive-box {
    background-color: rgba(96, 96, 96, 0.2);
    border-color: rgba(96, 96, 96, 0.4);
}

.destination-box.unresponsive-box.drag-over {
    /* background-color: rgba(96, 96, 96, 0.4); */
    /* border-color: #606060; */
}

/* ==========================================
   PROFESSIONAL TABLE VIEW STYLES
   ========================================== */

/* Leads Section Header - Clean and Modern */
.leads-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    margin-bottom: 24px;
    box-shadow: none;
}

.leads-section h2 {
    color: #1a202c;
    font-weight: 600;
    font-size: 1.875rem;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.leads-section .btn-primary {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: white;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.leads-section .btn-primary:hover {
    background-color: #004080;
    border-color: #004080;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.leads-section .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Table Container Card */
.table-responsive {
    background: #ffffff;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
}

/* Modern Table Styling */
.table {
    margin-bottom: 0;
    font-size: 0.9375rem;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead {
    background: #2d3748;
    border-bottom: 2px solid #1a202c;
}

.table thead th {
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 16px;
    border-bottom: none;
    white-space: nowrap;
    background: transparent;
}

.table tbody tr {
    border-bottom: 1px solid #e1e4e8;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody td {
    padding: 16px;
    vertical-align: middle;
    color: #24292f;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Clickable Row Styling - Clean and Modern */
.clickable-row {
    cursor: pointer;
    transition: all 0.15s ease;
}

.clickable-row:hover {
    background-color: #f8f9fa !important;
    box-shadow: inset 0 0 0 1px #e1e4e8;
}

.clickable-row:active {
    background-color: #f6f8fa !important;
}

/* Table Action Buttons */
.table .btn-sm {
    padding: 5px 12px;
    font-size: 0.8125rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.table .btn-outline-primary {
    border: 1.5px solid var(--main-color);
    color: var(--main-color);
    background-color: #ffffff;
}

.table .btn-outline-primary:hover {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Table Email and Phone Links */
.table a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.table a:hover {
    color: #004080;
    text-decoration: underline;
}

/* Empty State Styling */
.table tbody tr.empty-state td {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* Clean Status Text - No Badges */
.status-badge {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    padding: 0;
    border: none;
    background: none;
}

.status-new_lead {
    color: #003366;
}

.status-viewing_scheduled {
    color: #1e8449;
}

.status-post_appointment {
    color: #6c3483;
}

.status-working_application {
    color: #b8860b;
}

.status-approved {
    color: #1e7e34;
}

.status-not_approved {
    color: #a71d2a;
}

.status-not_interested {
    color: #5d6d7e;
}

.status-unresponsive {
    color: #424242;
}

/* Lead Detail Page Styles */
.lead-detail-container {
    padding: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

.back-button {
    background-color: #ffffff;
    color: var(--main-color);
    border: 1px solid #e1e4e8;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.back-button:hover {
    background-color: #f6f8fa;
    border-color: var(--main-color);
    color: var(--main-color);
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.lead-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.lead-header h1 {
    margin: 0;
    color: #1a202c;
    font-weight: 600;
    font-size: 1.875rem;
}

.lead-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.lead-stage {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
    background-color: #f6f8fa;
    color: #57606a;
    border: 1px solid #d0d7de;
}

.action-button {
    padding: 9px 16px;
    border: 1.5px solid #d0d7de;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #24292f;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-button:hover {
    background-color: #f6f8fa;
    border-color: #57606a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.email-button {
    border-color: var(--main-color);
    color: var(--main-color);
}

.email-button:hover {
    background-color: var(--main-color);
    color: white;
}

.tour-button {
    border-color: var(--main-color);
    color: var(--main-color);
}

.tour-button:hover {
    background-color: var(--main-color);
    color: white;
}

.application-button {
    border-color: var(--main-color);
    color: var(--main-color);
}

.application-button:hover {
    background-color: var(--main-color);
    color: white;
}

.archive-button {
    border-color: #d0d7de;
    color: #57606a;
}

.archive-button:hover {
    background-color: #f6f8fa;
    border-color: #8c959f;
}

.delete-button {
    border-color: #d0d7de;
    color: #57606a;
}

.delete-button:hover {
    background-color: #fff1f0;
    border-color: #cf222e;
    color: #cf222e;
}

/* Manual Action Buttons */
.manual-actions {
    margin-bottom: 12px;
    padding: 12px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.action-btn {
    background-color: #ffffff;
    color: #24292f;
    border: 1px solid #d0d7de;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.action-btn .fa-sparkles {
    color: #8b5cf6;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.action-btn:hover {
    background-color: #f6f8fa;
    border-color: #57606a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Action button variants */
.action-btn-primary {
    border-color: var(--main-color);
    color: var(--main-color);
}

.action-btn-primary:hover {
    background-color: var(--main-color);
    color: white;
}

.action-btn-success {
    border-color: #1a7f37;
    color: #1a7f37;
}

.action-btn-success:hover {
    background-color: #1a7f37;
    color: white;
}

/* Quick Explanations Dropdown */
#quick-explanations-dropdown {
    white-space: nowrap;
}

.action-buttons .dropdown-menu {
    border: 1px solid #d0d7de;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 4px 0;
    margin-top: 4px;
    min-width: 200px;
}

.action-buttons .dropdown-item {
    padding: 8px 16px;
    color: #24292f;
    font-size: 14px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
}

.action-buttons .dropdown-item:hover {
    background-color: #f6f8fa;
    color: #8b5cf6;
}

.action-buttons .dropdown-item:active {
    background-color: #e1e4e8;
}

.action-buttons .dropdown-item i {
    width: 20px;
    text-align: center;
}

.action-buttons .dropdown-item i.fa-spinner {
    color: #8b5cf6;
}

/* Specific button colors - now use outline style */
#send-docupass-btn {
    border-color: var(--main-color);
    color: var(--main-color);
}

#send-docupass-btn:hover {
    background-color: var(--main-color);
    color: white;
}

#send-application-btn {
    border-color: #1a7f37;
    color: #1a7f37;
}

#send-application-btn:hover {
    background-color: #1a7f37;
    color: white;
}

#explain-id-process-btn,
#send-tour-instructions-btn,
#send-application-instructions-btn {
    border-color: #d0d7de;
    color: #57606a;
}

#explain-id-process-btn:hover,
#send-tour-instructions-btn:hover,
#send-application-instructions-btn:hover {
    background-color: #f6f8fa;
    border-color: #8c959f;
}

.lead-content {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    min-height: calc(100vh - 200px);
    height: calc(100vh - 200px);
}

/* Responsive breakpoint for medium screens (tablets, smaller laptops, windowed browsers) */
@media (max-width: 1400px) {
    .lead-content {
        min-height: calc(100vh - 180px);
        height: auto;
        max-height: calc(100vh - 180px);
    }
    
    .lead-info {
        flex: 0 0 320px;
        min-width: 320px;
        max-width: 320px;
    }
    
    .lead-conversation {
        flex: 1 1 auto;
        min-width: 400px;
    }
}

/* Additional breakpoint for tablets and mobile only - Changed from 1024px to 768px */
@media (max-width: 768px) {
    .lead-content {
        flex-wrap: wrap;
        height: auto;
        min-height: auto;
        max-height: none;
    }
    
    .lead-info {
        flex: 1 1 100%;
        max-width: 100%;
        min-height: auto;
        max-height: 500px;
    }
    
    .lead-conversation {
        flex: 1 1 100%;
        min-width: 100%;
        min-height: 600px;
    }
    
    .lead-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .lead-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.lead-info {
    flex: 0 0 calc(30% - 10px);
    min-width: 280px;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e1e4e8;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lead-info h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #1a202c;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 10px;
    font-size: 1.0625rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lead-info .btn-sm {
    padding: 5px 12px;
    font-size: 0.8125rem;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    background-color: #ffffff;
    color: #24292f;
    transition: all 0.2s ease;
}

.lead-info .btn-sm:hover {
    background-color: #f6f8fa;
    border-color: #8c959f;
    transform: translateY(-1px);
}

.lead-info .btn-primary {
    background-color: var(--main-color);
    color: white;
    border-color: var(--main-color);
}

.lead-info .btn-primary:hover {
    background-color: #004080;
    border-color: #004080;
}

.lead-info .btn-secondary {
    background-color: #ffffff;
    color: #57606a;
    border-color: #d0d7de;
}

.lead-info .btn-secondary:hover {
    background-color: #f6f8fa;
    border-color: #8c959f;
}

.info-row {
    display: flex;
    margin-bottom: 14px;
    align-items: flex-start;
    padding-bottom: 6px;
}

.info-label {
    width: 140px;
    font-weight: 500;
    color: #57606a;
    flex-shrink: 0;
    font-size: 0.8125rem;
}

.info-value {
    flex: 1;
    color: #24292f;
    font-size: 0.875rem;
}

.info-value a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.info-value a:hover {
    color: #004080;
}

/* Inline Status Select */
.status-select-inline {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 6px 32px 6px 12px;
    font-size: 0.875rem;
    color: #24292f;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23586069' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 180px;
    font-weight: 500;
}

.status-select-inline:hover {
    border-color: var(--main-color);
    background-color: #f6f8fa;
}

.status-select-inline:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

/* Appointment Status Indicators */
.appointment-status-indicator {
    font-weight: 500;
    font-size: 0.875rem;
}

.appointment-status-indicator.scheduled {
    color: #28a745;
}

.appointment-status-indicator.past {
    color: #6c757d;
}

.appointment-status-none {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Appointment Display with Cancel Button */
.appointment-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel-appointment {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.btn-cancel-appointment:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #c82333;
}

.btn-cancel-appointment:active {
    transform: scale(0.95);
}

.btn-cancel-appointment i {
    font-size: 0.75rem;
}

/* Send Access Code Button */
.btn-send-access-code {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.btn-send-access-code:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-send-access-code:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.btn-send-access-code:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-send-access-code i {
    font-size: 0.875rem;
}

#lead-info-view, #lead-info-edit {
    flex: 1;
    overflow-y: auto;
}

#lead-info-edit .form-control {
    border: 1.5px solid #d0d7de;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

#lead-info-edit .form-control:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

#lead-info-edit .form-label {
    font-weight: 500;
    color: #24292f;
    font-size: 0.875rem;
    margin-bottom: 6px;
}

#lead-info-edit .d-flex.gap-2 {
    gap: 8px !important;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e1e4e8;
}

#lead-info-edit .btn {
    padding: 9px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lead-conversation {
    flex: 0 0 calc(70% - 10px);
    min-width: 420px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.conversation-header {
    padding: 15px;
    background-color: var(--main-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.conversation-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.conversation-tabs {
    display: flex;
    gap: 5px;
    align-items: center;
}

.conversation-tab {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.conversation-tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.conversation-tab.active {
    background: white;
    color: var(--main-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.conversation-tab i {
    font-size: 0.85rem;
}

.conversation-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.ai-toggle, .sms-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* iPhone Messages Style Conversation */
.conversation-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}

.message {
    margin-bottom: 6px;
    max-width: 85%;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
}

/* Lead messages (left side - like incoming iPhone messages) */
.message-incoming {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
    margin-right: auto;
    margin-left: 0;
    text-align: left;
}

.message-incoming .message-content {
    background-color: #e5e5ea;
    color: #000000;
    padding: 10px 14px 6px 14px;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    max-width: fit-content;
    margin-right: auto;
}

/* User/Staff messages (right side - like outgoing iPhone messages) */
.message-outgoing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-self: flex-end;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.message-outgoing .message-content {
    background-color: #007aff;
    color: white;
    padding: 10px 14px 6px 14px;
    border-radius: 18px;
    border-bottom-right-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    max-width: fit-content;
    margin-left: auto;
}

/* AI messages (right side - blue like iPhone messages) */
.message-ai {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-self: flex-end;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.message-ai .message-content {
    background-color: #007aff;
    color: white;
    padding: 10px 14px 6px 14px;
    border-radius: 18px;
    border-bottom-right-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    max-width: fit-content;
    margin-left: auto;
}

/* Add AI indicator */
.message-ai .message-content::before {
    content: "🤖";
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
    background: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* System messages */
.message-system {
    background-color: #fff3cd;
    border: 1px dashed #ffeaa7;
    color: #856404;
    text-align: center;
    max-width: 90%;
    margin: 8px auto;
    font-style: italic;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.message-system .message-content {
    padding: 0;
    background: none;
}

/* Message meta styling - now inside bubble */
.message-meta {
    margin-top: 4px;
    font-size: 10px;
    opacity: 0.75;
    align-self: inherit;
    display: block;
}

.message-outgoing .message-meta,
.message-ai .message-meta {
    text-align: right;
}

.message-incoming .message-meta {
    text-align: left;
}

.message-meta small {
    font-weight: 400;
    font-size: 10px;
}

/* Different styling for message meta inside bubbles */
.message-incoming .message-meta small {
    color: #666666 !important;
}

.message-outgoing .message-meta small,
.message-ai .message-meta small {
    color: rgba(255, 255, 255, 0.8) !important;
}

.message-meta i {
    font-size: 9px;
    margin-left: 2px;
    margin-right: 2px;
}

/* Empty state styling */
.conversation-empty-state {
    margin: 20px auto !important;
    text-align: center;
    font-style: italic;
}

.conversation-input {
    padding: 16px;
    border-top: 1px solid #e1e4e8;
    background-color: #f6f8fa;
}

.input-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.textarea-wrapper {
    flex: 1;
    position: relative;
}

.textarea-wrapper textarea {
    width: 100%;
    resize: vertical;
    min-height: 44px;
    max-height: 120px;
    border: 1.5px solid #d0d7de;
    border-radius: 6px;
    padding: 10px 140px 10px 12px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.input-container button {
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-end;
}

.input-container button:hover {
    background-color: #004080;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.input-container button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#ai-assist-btn,
#send-message-btn {
    margin-bottom: 6px;
}

#ai-assist-btn {
    background-color: #ffffff;
    color: var(--main-color);
    border: 1.5px solid var(--main-color);
    padding: 9px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#ai-assist-btn:hover {
    background-color: var(--main-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#ai-assist-btn:active {
    transform: translateY(0);
}

/* Stage update form */
.stage-update-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e4e8;
    display: flex;
    gap: 10px;
    align-items: center;
}

.stage-select {
    flex: 1;
    padding: 9px 12px;
    border: 1.5px solid #d0d7de;
    border-radius: 6px;
    background-color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #24292f;
    transition: all 0.2s ease;
    cursor: pointer;
}

.stage-select:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.update-button {
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.update-button:hover {
    background-color: #004080;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.update-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .kanban-board {
        max-width: 100%;
        padding: 15px 5px;
        gap: 15px;
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .kanban-column {
        min-width: 320px;
        width: 320px;
    }
    
    .destination-boxes-wrapper {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .kanban-board {
        padding: 10px 5px;
        gap: 10px;
        justify-content: flex-start;
    }
    
    .kanban-column {
        min-width: 280px;
        width: 280px;
    }
    
    .destination-boxes-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .destination-box {
        min-width: 200px;
        width: 100%;
        max-width: 300px;
    }
    
    .lead-content {
        flex-direction: column;
        height: calc(100vh - 150px);
    }
    
    .lead-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .conversation-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .conversation-tabs {
        width: 100%;
        justify-content: space-between;
    }
    
    .conversation-tab {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .conversation-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .input-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .input-options {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .kanban-board {
        padding: 5px;
        gap: 8px;
    }
    
    .kanban-column {
        min-width: 250px;
        width: 250px;
    }
    
    .destination-box {
        min-width: 120px;
        height: 60px;
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .lead-actions {
        justify-content: center;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-label {
        width: auto;
        font-weight: 600;
    }
}

/* Professional View Switching Buttons */
.btn-group .btn {
    transition: all 0.2s ease;
    border: 1.5px solid #d0d7de;
    background-color: #ffffff;
    color: #57606a;
    padding: 9px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-group .btn:hover {
    background-color: #f6f8fa;
    border-color: #8c959f;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-group .btn.active {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 51, 102, 0.2);
}

.btn-group .btn.active:hover {
    background-color: #004080;
    border-color: #004080;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom scrollbar for webkit browsers */
.kanban-column-body::-webkit-scrollbar,
.conversation-messages::-webkit-scrollbar {
    width: 8px;
}

.kanban-column-body::-webkit-scrollbar-track,
.conversation-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.kanban-column-body::-webkit-scrollbar-thumb,
.conversation-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.kanban-column-body::-webkit-scrollbar-thumb:hover,
.conversation-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 51, 102, 0.8);
}

/* Table Sorting Styles */
.sortable {
    position: relative;
    user-select: none;
    transition: background-color 0.2s ease;
}

.sortable:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sort-icon {
    margin-left: 8px;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.sortable:hover .sort-icon {
    opacity: 1;
}

.sortable .fa-sort-up,
.sortable .fa-sort-down {
    opacity: 1;
    color: #ffffff;
}

/* Active sort indicator */
.sortable[data-sort] .fa-sort-up,
.sortable[data-sort] .fa-sort-down {
    color: #ffc107;
}

/* Professional Filter Controls - Compact Combined Layout */
.filter-controls {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Board view filter - more compact, no box */
#boardViewLeads .filter-controls {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 12px;
    box-shadow: none;
}

#boardViewLeads .filter-controls .row {
    margin: 0;
}

#boardViewLeads .filter-controls .form-label {
    font-size: 0.8125rem;
    margin-bottom: 4px;
}

#boardViewLeads .filter-controls .form-control,
#boardViewLeads .filter-controls .btn {
    font-size: 0.875rem;
    padding: 6px 10px;
}

.filter-controls .form-label {
    font-weight: 600;
    color: #24292f;
    margin-bottom: 6px;
    font-size: 0.8125rem;
}

/* Unified Filter Row - Single Compact Filter Bar */
.filter-controls .unified-filter-row {
    display: flex;
    align-items: center;
}

.filter-controls .unified-filter-row .form-label {
    margin: 0;
    white-space: nowrap;
    font-size: 0.875rem;
}

/* Filter Type Toggle Buttons */
.filter-type-toggle {
    background: #f6f8fa;
    border-radius: 6px;
    padding: 2px;
}

.filter-type-toggle .btn {
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: #57606a;
    transition: all 0.2s ease;
}

.filter-type-toggle .btn:hover {
    color: #24292f;
    background: rgba(255, 255, 255, 0.5);
}

.filter-type-toggle .btn.active {
    background: white;
    color: var(--main-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* Filter Input Container */
.filter-input-container {
    position: relative;
    min-width: 300px;
    max-width: 600px;
}

.filter-input {
    display: none;
    animation: fadeIn 0.2s ease;
}

.filter-input.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive filter layout */
@media (max-width: 768px) {
    .filter-controls .unified-filter-row .d-flex {
        flex-wrap: wrap;
    }
    
    .filter-controls .unified-filter-row .form-label {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .filter-type-toggle {
        order: 1;
        width: 100%;
        margin-bottom: 12px;
    }
    
    .filter-input-container {
        order: 2;
        width: 100%;
        min-width: auto;
        max-width: none;
    }
    
    .filter-controls .unified-filter-row .btn {
        order: 3;
        margin-top: 12px;
    }
}

.filter-controls .btn-group {
    background: #f6f8fa;
    border-radius: 6px;
    padding: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.filter-controls .btn-group .btn {
    background: transparent;
    border: 1px solid transparent;
    color: #57606a;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 0.8125rem;
    white-space: nowrap;
    box-shadow: none;
}

.filter-controls .btn-group .btn:hover {
    background: #ffffff;
    color: #24292f;
    border-color: #d0d7de;
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.filter-controls .btn-group .btn.active {
    background: var(--main-color);
    color: white;
    border-color: var(--main-color);
    box-shadow: 0 2px 4px rgba(0, 51, 102, 0.2);
}

.filter-controls .btn-group .btn.active:hover {
    background: #004080;
    border-color: #004080;
    transform: translateY(-1px);
}

.filter-controls .btn-group .btn i {
    font-size: 0.75rem;
    margin-right: 2px;
}

.filter-controls .form-control,
.filter-controls .form-select {
    border: 1.5px solid #d0d7de;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #24292f;
}

.filter-controls .form-control:focus,
.filter-controls .form-select:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    background-color: #ffffff;
}

.filter-controls .form-control:hover,
.filter-controls .form-select:hover {
    border-color: #8c959f;
}

.filter-controls .btn {
    padding: 9px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.filter-controls .btn-primary {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: white;
}

.filter-controls .btn-primary:hover {
    background-color: #004080;
    border-color: #004080;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.filter-controls .btn-outline-secondary {
    background-color: #ffffff;
    border: 1.5px solid #d0d7de;
    color: #57606a;
}

.filter-controls .btn-outline-secondary:hover {
    background-color: #f6f8fa;
    border-color: #8c959f;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Custom Time Selector Styling */
#appointment-time {
    cursor: pointer;
    height: auto;
    min-height: 38px;
}

#appointment-time option {
    padding: 8px 12px;
}

#appointment-time option:disabled,
#appointment-time option.time-unavailable {
    color: #999;
    background-color: #f5f5f5;
    font-style: italic;
}

.filter-controls .btn {
    white-space: nowrap;
}

.filter-controls .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Results Count */
#resultsCount {
    font-size: 0.9rem;
    font-style: italic;
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 10px;
}

/* Filter Active Indicator */
.filter-active-badge {
    background-color: var(--main-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

/* Mobile Responsive for Filters */
@media (max-width: 768px) {
    .filter-controls .row {
        margin: 0;
    }
    
    .filter-controls .col-md-3,
    .filter-controls .col-md-2 {
        margin-bottom: 15px;
    }
    
    .filter-controls .d-flex {
        justify-content: center;
    }
}



/* AI Toggle Styles */
.ai-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
}

.ai-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #003366;
}

.ai-toggle label {
    font-size: 14px;
    font-weight: 500;
    color: white !important;
    margin: 0;
    cursor: pointer;
}

/* Dev Tools */
.btn-dev-clear {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.btn-dev-clear:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

.btn-dev-clear i {
    font-size: 0.7rem;
}

/* Dev ID Verification Simulation */
.dev-id-verification {
    border-left: 1px solid #dee2e6;
    padding-left: 10px;
}

.dev-id-verification .form-select {
    border: 1px solid #ced4da;
    padding: 2px 8px;
    height: 28px;
}

/* Test Mode Styles */
.test-mode-container {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #d0d7de;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.test-mode-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #17a2b8;
    cursor: pointer;
}

.test-mode-container label {
    font-size: 12px;
    font-weight: 500;
    color: #17a2b8;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

/* Enhanced scrollbar for iPhone Messages style */
.conversation-messages::-webkit-scrollbar {
    width: 6px;
}

.conversation-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.conversation-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.conversation-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Message animations */
.message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification styles */
.alert.position-fixed {
    min-width: 300px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Voice API Call Buttons - Clean Style */
.voice-call-btn {
    background: none;
    border: none;
    color: var(--main-color);
    padding: 0;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline;
    font-weight: 500;
}

.voice-call-btn:hover {
    color: #004080;
    text-decoration: underline;
}

.voice-call-btn:active {
    color: #002244;
}

/* Voice ready indicator */
.voice-call-btn.voice-ready::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0, 255, 0, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Ensure buttons don't interfere with card dragging */
.kanban-card .voice-call-btn {
    pointer-events: auto;
    z-index: 10;
}

.kanban-card.dragging .voice-call-btn {
    pointer-events: none;
}

/* Enhanced Calling Modal Styles */
#callingModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#callingModal .modal-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

#callingModal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

#callingModal .btn-close {
    filter: brightness(0) invert(1);
}

#callingModal .calling-options {
    padding: 10px 0;
}

#callingModal .calling-options .btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#callingModal .calling-options .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#callingModal .calling-options .btn i {
    width: 20px;
    text-align: center;
}

#callingModal .calling-options .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    animation: pulse-green 2s infinite;
}

#callingModal .calling-options .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

#callingModal .calling-options .btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

#callingModal .calling-options .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #545b62);
}

#callingModal .calling-options .btn-outline-dark {
    border: 2px solid #343a40;
    color: #343a40;
    background: transparent;
}

#callingModal .calling-options .btn-outline-dark:hover {
    background: #343a40;
    color: white;
}

/* Calling animations */
@keyframes pulse-green {
    0% {
        box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
    }
    50% {
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    }
    100% {
        box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
    }
}

/* Enhanced notification styles */
.alert.position-fixed {
    min-width: 300px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Call status alerts */
.call-status-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Kanban card phone styling - Clean */
.kanban-card-phone {
    background: none !important;
    border: none !important;
    color: var(--main-color) !important;
    padding: 0 !important;
    font-size: 0.8125rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline !important;
    font-weight: 500 !important;
}

.kanban-card-phone:hover {
    color: #004080 !important;
    text-decoration: underline !important;
}

/* Status Tabs Container - Now merged into filter-controls above */
/* This section kept for backward compatibility with board view */
.status-tabs-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #e1e4e8;
    margin-bottom: 20px;
}

.status-tabs-container .d-flex {
    align-items: center;
    gap: 12px;
}

.status-tabs-container .fw-bold {
    color: #24292f;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.status-tabs-container .btn-group {
    background: #f6f8fa;
    border-radius: 6px;
    padding: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.status-tabs-container .btn {
    background: transparent;
    border: 1px solid transparent;
    color: #57606a;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    white-space: nowrap;
    box-shadow: none;
}

.status-tabs-container .btn:hover {
    background: #ffffff;
    color: #24292f;
    border-color: #d0d7de;
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.status-tabs-container .btn.active {
    background: var(--main-color);
    color: white;
    border-color: var(--main-color);
    box-shadow: 0 2px 4px rgba(0, 51, 102, 0.2);
}

.status-tabs-container .btn.active:hover {
    background: #004080;
    border-color: #004080;
    transform: translateY(-1px);
}

.status-tabs-container .btn i {
    font-size: 0.8rem;
    margin-right: 2px;
}

/* Responsive status tabs */
@media (max-width: 768px) {
    .status-tabs-container .nav-pills {
        flex-direction: column;
        gap: 4px;
    }
    
    .status-tabs-container .nav-item {
        flex: none;
        min-width: auto;
    }
    
    .status-tabs-container .nav-link {
        font-size: 13px;
        padding: 10px 12px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .status-tabs-container {
        padding: 10px;
    }
    
    .status-tabs-container .nav-link {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* Inline Destination Boxes (moved to top controls) */
.destination-boxes-container-inline {
    display: flex;
    gap: 12px;
    align-items: center;
}

.destination-boxes-container-inline .destination-box {
    padding: 12px 20px;
    border-radius: 8px;
    color: #212529;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    min-width: 130px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 14px;
    border: 2px solid transparent;
}

.destination-boxes-container-inline .destination-box h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.destination-boxes-container-inline .destination-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.destination-boxes-container-inline .destination-box.drag-over {
    /* transform: scale(1.08); */
    /* box-shadow: 0 0 12px rgba(0, 0, 0, 0.3); */
    /* border-style: dashed; */
    /* border-width: 3px; */
}

.destination-boxes-container-inline .approved-box {
    background-color: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
}

.destination-boxes-container-inline .approved-box.drag-over {
    /* background-color: rgba(76, 175, 80, 0.4); */
    /* border-color: #4caf50; */
}

.destination-boxes-container-inline .not-approved-box {
    background-color: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.4);
}

.destination-boxes-container-inline .not-approved-box.drag-over {
    /* background-color: rgba(244, 67, 54, 0.4); */
    /* border-color: #f44336; */
}

.destination-boxes-container-inline .not-interested-box {
    background-color: rgba(158, 158, 158, 0.2);
    border-color: rgba(158, 158, 158, 0.4);
}

.destination-boxes-container-inline .not-interested-box.drag-over {
    /* background-color: rgba(158, 158, 158, 0.4); */
    /* border-color: #9e9e9e; */
}

/* Responsive design for inline destination boxes */
@media (max-width: 768px) {
    .destination-boxes-container-inline {
        flex-direction: column;
        gap: 8px;
        margin: 10px 0;
    }
    
    .destination-boxes-container-inline .destination-box {
        min-width: 110px;
        height: 42px;
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .destination-boxes-container-inline .destination-box h5 {
        font-size: 13px;
    }

    .kanban-board {
        min-height: 550px;
    }

    .kanban-column {
        max-height: 75vh;
    }

    .kanban-column-body {
        max-height: 65vh;
        justify-content: flex-start !important;
        align-items: stretch !important;
        align-content: flex-start !important;
    }
}

/* Top controls layout enhancement */
.d-flex.justify-content-between.align-items-center {
    gap: 15px;
}

@media (max-width: 768px) {
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .destination-boxes-container-inline {
        order: 2;
        justify-content: center;
        margin: 10px 0;
    }
}

/* Property Autocomplete Styles */
.property-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.property-suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.property-suggestion-item:hover,
.property-suggestion-item.highlighted {
    background-color: rgba(0, 51, 102, 0.1);
}

.property-suggestion-item:last-child {
    border-bottom: none;
}

.property-suggestion-address {
    font-weight: 500;
    color: #343a40;
    margin-bottom: 4px;
}

.property-suggestion-details {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    gap: 15px;
    align-items: center;
}

.property-suggestion-rent {
    color: #28a745;
    font-weight: 600;
}

.property-suggestion-specs {
    display: flex;
    gap: 8px;
}

.property-suggestions::-webkit-scrollbar {
    width: 6px;
}

.property-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.property-suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.property-suggestions::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading state for property input */
.property-suggestions.loading {
    padding: 15px;
    text-align: center;
    color: #6c757d;
}

.property-suggestions.loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #003366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.property-suggestions.loading::after {
    content: 'Searching listings...';
}

.property-suggestions.no-results {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.property-suggestions.no-results::after {
    content: 'No active listings found';
}

/* ==========================================
   ARCHIVE MODAL STYLING
   ========================================== */

#archiveModal .archive-option {
    padding: 12px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
    border: 1.5px solid #d0d7de;
    background-color: #ffffff;
    color: #24292f;
}

#archiveModal .archive-option:hover {
    background-color: #f6f8fa;
    border-color: #8c959f;
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

#archiveModal .archive-option:active {
    transform: translateX(2px);
}

#archiveModal .archive-option i {
    color: #57606a;
}

/* ==========================================
   PROFESSIONAL MODAL STYLING
   ========================================== */

.modal-content {
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background-color: #f6f8fa;
    border-bottom: 1px solid #e1e4e8;
    padding: 20px 24px;
}

.modal-title {
    color: #1a202c;
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 24px;
}

.modal-body .form-label {
    font-weight: 600;
    color: #24292f;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.modal-body .form-control,
.modal-body .form-select {
    border: 1.5px solid #d0d7de;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #24292f;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.modal-body .form-control:hover,
.modal-body .form-select:hover {
    border-color: #8c959f;
}

.modal-body .form-text {
    color: #57606a;
    font-size: 0.8125rem;
    margin-top: 4px;
}

.modal-footer {
    background-color: #f6f8fa;
    border-top: 1px solid #e1e4e8;
    padding: 16px 24px;
}

.modal-footer .btn {
    padding: 9px 18px;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.modal-footer .btn-primary {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: white;
}

.modal-footer .btn-primary:hover {
    background-color: #004080;
    border-color: #004080;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.modal-footer .btn-secondary {
    background-color: #ffffff;
    border: 1.5px solid #d0d7de;
    color: #57606a;
}

.modal-footer .btn-secondary:hover {
    background-color: #f6f8fa;
    border-color: #8c959f;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* ==============================================
   ID VERIFICATION STATUS STYLING
   ============================================== */

/* Verification Status Row */
.verification-status-row {
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
    margin-top: 12px;
}

/* Verification Badge Styling */
.verification-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.verification-badge.verified {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.verification-badge.failed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.verification-badge.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.verification-badge.not-requested {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* Verification Details Styling */
.verification-details {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.875rem;
    margin-top: 8px;
}

.verification-details .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding: 2px 0;
}

.verification-details .detail-item:last-child {
    margin-bottom: 0;
}

.verification-details .detail-label {
    font-weight: 600;
    color: #495057;
    margin-right: 8px;
    min-width: 80px;
}

.verification-details .detail-value {
    color: #6c757d;
    text-align: right;
}

/* Verification Actions Dropdown */
.verification-actions-dropdown {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 200px;
    overflow: hidden;
}

.verification-actions-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
}

.verification-actions-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.verification-actions-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.verification-actions-dropdown .dropdown-item i {
    color: #6c757d;
    width: 16px;
    text-align: center;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .verification-status-row .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .verification-actions-dropdown {
        min-width: 180px;
        font-size: 0.8rem;
    }
    
    .verification-details .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .verification-details .detail-label {
        min-width: auto;
    }
    
    .verification-details .detail-value {
        text-align: left;
    }
}

/* Property Search Dropdown Styling */
#propertySearchDropdown,
#boardPropertySearchDropdown {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #ccc;
    background: white;
}

#propertySearchDropdown .dropdown-item,
#boardPropertySearchDropdown .dropdown-item {
    cursor: pointer;
    padding: 8px 12px;
    transition: background-color 0.2s;
}

#propertySearchDropdown .dropdown-item:hover,
#boardPropertySearchDropdown .dropdown-item:hover {
    background-color: #f0f0f0;
}

#propertySearchDropdown .dropdown-item.text-muted,
#boardPropertySearchDropdown .dropdown-item.text-muted {
    cursor: default;
} 
/* ==========================================
   APPOINTMENT BOOKING STYLES
   ========================================== */

.appointment-item {
    font-size: 14px;
    line-height: 1.6;
}

.appointment-item i {
    font-size: 16px;
}

.appointment-item .badge {
    font-size: 11px;
    padding: 3px 8px;
}

#appointments-list {
    max-height: 200px;
    overflow-y: auto;
}

.no-appointments {
    font-size: 14px;
    padding: 8px 0;
}

#bookAppointmentModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#appointment-conflict-warning {
    margin-top: 15px;
    border-left: 4px solid #ffc107;
}

.cancel-appointment-btn {
    padding: 2px 8px;
    font-size: 12px;
}

.cancel-appointment-btn:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

/* ==========================================
   ACTIVITY HISTORY MODAL STYLES
   ========================================== */

.activity-button {
    background-color: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.activity-button:hover {
    background-color: #138496;
    border-color: #138496;
    color: white;
}

.activity-stats-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.activity-section-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.activity-stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-stats-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.activity-stats-list li:last-child {
    border-bottom: none;
}

.activity-stats-list li strong {
    color: #2d3748;
    font-weight: 600;
    margin-right: 8px;
}

.activity-stats-list li ul {
    margin-left: 20px;
    font-size: 0.9rem;
    color: #718096;
}

.activity-ai-summary-section {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.activity-ai-summary {
    background-color: #f7fafc;
    border-left: 4px solid #4299e1;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #2d3748;
}

#activityHistoryModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#activityHistoryModal .modal-dialog {
    max-width: 700px;
}

/* Loading and error states */
#activity-loading {
    padding: 40px 0;
}

#activity-error {
    margin: 20px 0;
}

/* ============================================
   ID Verification Simulation Modal (Dev)
   ============================================ */

#idVerificationSimModal .modal-title {
    display: flex;
    align-items: center;
}

.dev-tool-notice {
    background-color: #fff8e1;
    border: 1.5px solid #ffe082;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #24292f;
}

.dev-tool-notice i {
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

.verification-buttons {
    display: grid;
    gap: 12px;
}

.verification-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #d0d7de;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.verification-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.verification-btn-success {
    border-color: #28a745;
}

.verification-btn-success:hover {
    background: #f0fdf4;
    border-color: #22863a;
}

.verification-btn-danger {
    border-color: #dc3545;
}

.verification-btn-danger:hover {
    background: #fef2f2;
    border-color: #b91c1c;
}

.verification-btn-icon {
    font-size: 2rem;
    margin-right: 16px;
    flex-shrink: 0;
}

.verification-btn-success .verification-btn-icon {
    color: #28a745;
}

.verification-btn-danger .verification-btn-icon {
    color: #dc3545;
}

.verification-btn-content {
    flex: 1;
}

.verification-btn-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 4px;
}

.verification-btn-subtitle {
    font-size: 0.875rem;
    color: #57606a;
}

.ai-response-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #e1e4e8;
}

.ai-response-header {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 12px;
}

.ai-response-header i {
    color: var(--main-color);
}

.ai-response-card {
    background: #f6f8fa;
    border: 1.5px solid #d0d7de;
    border-radius: 8px;
    padding: 16px 20px;
    min-height: 120px;
    position: relative;
}

#ai-response-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f6f8fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ai-response-text {
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #24292f !important;
    display: block !important;
    min-height: 80px;
    background: white;
    padding: 16px;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ai-response-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.ai-response-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 500;
}

.ai-response-actions .btn i {
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .activity-stats-list li {
        font-size: 0.9rem;
    }
    
    .activity-ai-summary {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    #activityHistoryModal .modal-dialog {
        margin: 10px;
    }
}