/* =====================================================
   va-styles.css
   Standalone stylesheet for the Virtual Assistant system.
   Does not depend on styles.css or any other project file.
   Matches OVD brand: navy rgb(1,26,58) + cyan #41c6e7
   ===================================================== */

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: #f4f8fb;
    color: #2c3e50;
    line-height: 1.7;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    background-color: rgb(1, 26, 58);
    padding: 1.5rem 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 9999;
}

.navbar-logo img {
    width: 220px;
    height: auto;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.navbar-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: #41c6e7;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Mobile nav */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-links {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: rgba(1, 26, 58, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        display: none;
        flex-direction: column;
        padding: 0.75rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
        z-index: 10000;
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-links li {
        width: 100%;
    }

    .navbar-links a {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.05rem;
        text-align: center;
        letter-spacing: 0.02em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: background 0.25s ease, color 0.25s ease;
    }

    .navbar-links a:hover {
        background: rgba(65, 198, 231, 0.12);
        color: #41c6e7;
    }

    .navbar-links li:last-child a {
        border-bottom: none;
    }
}

/* =====================================================
   GLOBAL INPUTS & BUTTONS
   ===================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background-color: #fff;
    color: #2c3e50;
    transition: border-color 0.25s ease;
    outline: none;
    width: 100%;
    max-width: 400px;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #41c6e7;
}

select { cursor: pointer; }

button {
    font-family: inherit;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
    border: none;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* =====================================================
   VA LANDING PAGE
   ===================================================== */
.va-page {
    min-height: calc(100vh - 76px);
    background: #f4f8fb;
    display: flex;
    flex-direction: column;
}

/* --- Option Selection --- */
.va-landing {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 4rem;
    text-align: center;
}

.va-landing.hidden {
    display: none;
}

.va-landing-icon {
    width: 72px;
    height: 72px;
    background: rgba(116, 128, 143, 0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(1, 26, 58, 0.25);
    font-size: 2rem;
    overflow: hidden;
}

.va-landing-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.va-landing h1 {
    font-size: 2rem;
    color: rgb(1, 26, 58);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.va-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.va-options {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.va-option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    text-align: left;
    transition: all 0.22s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.va-option-btn:hover {
    border-color: #41c6e7;
    background: #f0fbfe;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(65, 198, 231, 0.18);
}

.va-opt-icon {
    width: 42px;
    height: 42px;
    background: #f0fbfe;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
}

.va-opt-text {
    flex: 1;
}

.va-opt-label {
    font-weight: 600;
    color: rgb(1, 26, 58);
    display: block;
    font-size: 1rem;
}

.va-opt-desc {
    font-size: 0.82rem;
    color: #6c757d;
    margin-top: 2px;
}

.va-opt-arrow {
    color: #41c6e7;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* =====================================================
   NAME CAPTURE
   ===================================================== */
.va-name-capture {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.va-name-capture.active {
    display: flex;
}

.va-name-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.va-name-card h2 {
    font-size: 1.5rem;
    color: rgb(1, 26, 58);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.va-name-card > p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.va-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.va-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.va-input-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.va-input-group input {
    max-width: 100%;
}

.va-input-group.full input {
    max-width: 100%;
}

.va-start-btn {
    background: #41c6e7;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.22s ease;
}

.va-start-btn:hover {
    background: #35b5d6;
    transform: translateY(-1px);
}

.va-privacy-note {
    font-size: 0.78rem;
    color: #adb5bd;
    margin-top: 0.75rem;
    text-align: center;
}

.va-back-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}

.va-back-link:hover {
    color: #2c3e50;
}

/* =====================================================
   CHAT INTERFACE
   ===================================================== */
.va-chat-wrap {
    display: none;
    flex-direction: column;
    height: calc(100vh - 76px);
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

.va-chat-wrap.active {
    display: flex;
}

.va-chat-header {
    background: rgb(1, 26, 58);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.va-chat-avatar {
    width: 40px;
    height: 40px;
    background: rgb(255, 255, 255);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.va-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.va-chat-header-info h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.va-chat-header-info p {
    color: #41c6e7;
    font-size: 0.78rem;
    margin: 0;
}

.va-status-dot {
    width: 8px;
    height: 8px;
    background: #41c6e7;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    animation: vaPulse 2s infinite;
}

@keyframes vaPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* Messages area */
.va-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f4f8fb;
}

.va-msg {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    max-width: 85%;
    animation: vaFadeUp 0.25s ease;
}

@keyframes vaFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.va-msg.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.va-msg-avatar {
    width: 32px;
    height: 32px;
    background: rgba(1, 26, 58, 0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #41c6e7;
    flex-shrink: 0;
    font-weight: 700;
    overflow: hidden;
}

.va-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.va-msg.user .va-msg-avatar {
    background: #41c6e7;
    color: #fff;
}

.va-msg-bubble {
    background: #ffffff;
    border-radius: 18px 18px 18px 4px;
    padding: 0.875rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    white-space: pre-wrap;
}

.va-msg.user .va-msg-bubble {
    background: rgb(1, 26, 58);
    color: #fff;
    border-radius: 18px 18px 4px 18px;
}

/* Typing indicator */
.va-typing {
    display: none;
    align-items: flex-end;
    gap: 0.6rem;
    padding: 0 1.25rem 0.5rem;
    flex-shrink: 0;
}

.va-typing.active {
    display: flex;
}

.va-typing-bubble {
    background: #fff;
    border-radius: 18px 18px 18px 4px;
    padding: 0.75rem 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 4px;
    align-items: center;
}

.va-typing-dot {
    width: 7px;
    height: 7px;
    background: #adb5bd;
    border-radius: 50%;
    animation: vaTyping 1.2s infinite;
}

.va-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.va-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes vaTyping {
    0%, 100% { transform: translateY(0); }
    33%       { transform: translateY(-5px); }
}

/* Chat input */
.va-chat-input-area {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-shrink: 0;
}

.va-chat-input {
    flex: 1;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #2c3e50;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    max-height: 120px;
    line-height: 1.4;
    max-width: 100%;
}

.va-chat-input:focus {
    border-color: #41c6e7;
}

.va-send-btn {
    background: #41c6e7;
    border: none;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: all 0.2s ease;
}

.va-send-btn:hover {
    background: #35b5d6;
    transform: scale(1.05);
}

.va-send-btn:disabled {
    background: #e8e8e8;
    cursor: not-allowed;
    transform: none;
}

.va-send-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* Limit notice */
.va-limit-notice {
    text-align: center;
    padding: 1.25rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    margin: 0 1.25rem 0.5rem;
    font-size: 0.88rem;
    color: #92400e;
    flex-shrink: 0;
}

.va-limit-notice a {
    color: rgb(1, 26, 58);
    font-weight: 600;
}

/* Quick replies */
.va-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem;
}

.va-quick-reply {
    background: #fff;
    border: 1.5px solid #41c6e7;
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    color: rgb(1, 26, 58);
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s ease;
}

.va-quick-reply:hover {
    background: #41c6e7;
    color: #fff;
}

/* Lead capture card (mid-chat) */
.va-lead-capture-card {
    background: linear-gradient(135deg, rgb(1, 26, 58) 0%, #0d3a6b 100%);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    color: #fff;
    margin: 0.25rem 0;
}

.va-lead-capture-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #41c6e7;
}

.va-lead-capture-card p {
    font-size: 0.88rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.va-capture-fields {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.875rem;
}

.va-capture-fields input {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    max-width: 100%;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.va-capture-fields input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.va-capture-fields input:focus {
    border-color: #41c6e7;
}

.va-capture-submit {
    background: #41c6e7;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.va-capture-submit:hover {
    background: #35b5d6;
}

/* =====================================================
   VA ADMIN — CONVERSATIONS PAGE
   ===================================================== */
.va-admin-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.va-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.va-admin-header h1 {
    font-size: 1.6rem;
    color: rgb(1, 26, 58);
    font-weight: 700;
}

.va-admin-header h1 span {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6c757d;
    display: block;
    margin-top: 2px;
}

.va-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.va-btn-primary {
    background: #41c6e7;
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
    transition: background 0.2s;
}

.va-btn-primary:hover {
    background: #35b5d6;
}

.va-btn-ghost {
    color: #6c757d;
    font-size: 0.85rem;
    text-decoration: none;
}

.va-btn-ghost:hover {
    color: #2c3e50;
}

/* Stats row */
.va-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.va-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #41c6e7;
}

.va-stat-card.red   { border-left-color: #e74c3c; }
.va-stat-card.green { border-left-color: #27ae60; }
.va-stat-card.navy  { border-left-color: rgb(1, 26, 58); }

.stat-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: rgb(1, 26, 58);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Filters bar */
.va-filters {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.va-filters input,
.va-filters select {
    max-width: 200px;
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
}

.va-filter-btn {
    background: rgb(1, 26, 58);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.va-filter-btn:hover {
    background: #0d3a6b;
}

.va-filter-reset {
    color: #6c757d;
    font-size: 0.85rem;
    text-decoration: none;
}

.va-filter-reset:hover {
    color: #2c3e50;
}

/* Main 2-col layout */
.va-main-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.25rem;
    align-items: start;
}

/* Lead list panel */
.va-lead-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-height: 800px;
    overflow-y: auto;
}

.va-lead-list-header {
    background: rgb(1, 26, 58);
    padding: 0.875rem 1.25rem;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.va-lead-item {
    display: block;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.15s;
}

.va-lead-item:hover {
    background: #f8fffe;
}

.va-lead-item.active {
    background: #f0fbfe;
    border-left: 3px solid #41c6e7;
}

.va-lead-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
}

.va-lead-name {
    font-weight: 600;
    color: rgb(1, 26, 58);
    font-size: 0.92rem;
}

.va-lead-time {
    font-size: 0.72rem;
    color: #adb5bd;
}

.va-lead-phone {
    font-size: 0.78rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.va-lead-meta {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Badges */
.va-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.va-badge.new       { background: #e3f9e5; color: #1a7f37; }
.va-badge.contacted { background: #dbeafe; color: #1d4ed8; }
.va-badge.option    { background: #f3f0ff; color: #6d28d9; }
.va-badge.msgs      { background: #f8f4e3; color: #92400e; }
.va-badge.phone     { background: #f0fbfe; color: rgb(1, 26, 58); }
.va-badge.assigned  { background: #dbeafe; color: #1d4ed8; }

/* Lead detail panel */
.va-detail-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    min-height: 600px;
}

.va-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    color: #adb5bd;
    font-size: 1rem;
    gap: 0.5rem;
}

.va-detail-empty span {
    font-size: 2.5rem;
}

.va-detail-header {
    background: rgb(1, 26, 58);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.va-detail-header h3 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.va-detail-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.va-detail-meta-item {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.va-detail-meta-item strong {
    color: #41c6e7;
}

.va-detail-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.va-action-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 6px;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.va-action-btn:hover      { background: rgba(255, 255, 255, 0.22); }
.va-action-btn.green      { background: #27ae60; border-color: #27ae60; }
.va-action-btn.green:hover { background: #219a52; }
.va-action-btn.danger     { border-color: #e74c3c; color: #e74c3c; }
.va-action-btn.danger:hover { background: rgba(231, 76, 60, 0.15); }

.va-action-phone {
    background: rgba(65, 198, 231, 0.15);
    border: 1px solid rgba(65, 198, 231, 0.4);
    color: #41c6e7;
    border-radius: 6px;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

/* Conversation replay */
.va-detail-messages {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 420px;
    overflow-y: auto;
    background: #f4f8fb;
}

.va-replay-msg {
    display: flex;
    gap: 0.6rem;
    max-width: 80%;
}

.va-replay-msg.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.va-replay-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    color: #41c6e7;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.va-replay-msg.user .va-replay-avatar {
    background: #41c6e7;
    color: #fff;
}

.va-replay-bubble {
    background: #fff;
    border-radius: 14px 14px 14px 4px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #2c3e50;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    white-space: pre-wrap;
}

.va-replay-msg.user .va-replay-bubble {
    background: rgb(1, 26, 58);
    color: #fff;
    border-radius: 14px 14px 4px 14px;
}

.va-replay-time {
    font-size: 0.68rem;
    color: #adb5bd;
    padding: 0 0.25rem;
    margin-top: 2px;
}

/* Notes section */
.va-notes-section {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.va-notes-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgb(1, 26, 58);
    margin-bottom: 0.875rem;
}

.va-note-item {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    padding: 0.625rem 0.875rem;
    font-size: 0.85rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.va-note-meta {
    font-size: 0.72rem;
    color: #adb5bd;
    margin-top: 4px;
}

.va-add-note {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.875rem;
}

.va-add-note textarea {
    flex: 1;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 0.6rem 0.875rem;
    font-size: 0.88rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    outline: none;
    color: #2c3e50;
    max-width: 100%;
}

.va-add-note textarea:focus {
    border-color: #41c6e7;
}

.va-add-note-btn {
    background: rgb(1, 26, 58);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    align-self: flex-end;
    transition: background 0.2s;
}

.va-add-note-btn:hover {
    background: #0d3a6b;
}

/* =====================================================
   ADMIN LOGIN PAGE
   ===================================================== */
.va-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f4f8fb;
}

.va-login-card {
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem 2rem;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.va-login-card .login-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.va-login-card .login-icon img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
}

.va-login-card h2 {
    color: rgb(1, 26, 58);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.va-login-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.va-login-card input[type="password"] {
    max-width: 100%;
    margin-bottom: 0.875rem;
}

.va-login-btn {
    background: #41c6e7;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.va-login-btn:hover {
    background: #35b5d6;
}

.va-login-error {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* =====================================================
   ALERTS & MISC
   ===================================================== */
.va-alert {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.va-empty-list {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .va-main-layout {
        grid-template-columns: 1fr;
    }

    .va-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .va-lead-list {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }
}

@media (max-width: 600px) {
    .va-landing h1     { font-size: 1.6rem; }
    .va-option-btn     { padding: 0.9rem 1.1rem; }
    .va-name-row       { grid-template-columns: 1fr; }
    .va-chat-wrap      { height: calc(100vh - 64px); }
    .va-stats          { grid-template-columns: 1fr 1fr; }

    .va-detail-header {
        flex-direction: column;
    }

    .va-admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .va-filters input,
    .va-filters select {
        max-width: 100%;
        width: 100%;
    }
}