/**
 * Field Sales Tracker - Custom Stylesheet
 * Enhances Bootstrap 5 with clean modern SaaS typography and responsive sidebar layout
 */

:root {
    --fst-sidebar-width: 260px;
    --fst-primary: #0d6efd;
    --fst-primary-dark: #0a58ca;
    --fst-sidebar-bg: #1e293b;
    --fst-sidebar-hover: #334155;
    --fst-sidebar-text: #cbd5e1;
    --fst-sidebar-active: #2563eb;
    --fst-topbar-height: 64px;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

/* Authentication pages wrapper (Login, Register, Accept Invite) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    background: #ffffff;
    overflow: hidden;
}

.auth-card.register-card {
    max-width: 580px;
}

.auth-header {
    padding: 2rem 2rem 1.25rem;
    text-align: center;
}

.auth-header .brand-icon {
    width: 54px;
    height: 54px;
    background: #e0e7ff;
    color: #3730a3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 26px;
    margin-bottom: 1rem;
}

.auth-body {
    padding: 0.5rem 2rem 2rem;
}

/* App Shell (Dashboard & Internal Pages) */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.app-sidebar {
    width: var(--fst-sidebar-width);
    background-color: var(--fst-sidebar-bg);
    color: var(--fst-sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    transition: transform 0.3s ease-in-out;
    z-index: 1045;
}

/* Custom sleek scrollbar for sidebar if content overflows */
.app-sidebar::-webkit-scrollbar {
    width: 4px;
}
.app-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.app-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.sidebar-brand {
    height: var(--fst-topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand i {
    font-size: 1.35rem;
    color: #60a5fa;
    margin-right: 0.75rem;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0.75rem;
    margin: 0;
    flex-grow: 1;
}

.sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 0.75rem 0.75rem 0.25rem;
    font-weight: 600;
}

.sidebar-item {
    margin-bottom: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    color: var(--fst-sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.925rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-link .link-content {
    display: flex;
    align-items: center;
}

.sidebar-link i {
    font-size: 1.15rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.sidebar-link:hover:not(.disabled) {
    background-color: var(--fst-sidebar-hover);
    color: #ffffff;
}

.sidebar-link.active {
    background-color: var(--fst-sidebar-active);
    color: #ffffff;
    font-weight: 600;
}

.sidebar-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #94a3b8;
}

.badge-coming-soon {
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.25em 0.5em;
    background-color: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 4px;
}

/* Sidebar Backdrop on Mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

/* Main Content Area */
.app-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-left: var(--fst-sidebar-width);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Topbar */
.app-topbar {
    height: var(--fst-topbar-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: background-color 0.2s ease;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
}

.topbar-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #334155;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.topbar-toggle:hover,
.topbar-toggle:active {
    background-color: #f1f5f9;
}

.topbar-company {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.topbar-company-name {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.topbar-role-badge {
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.925rem;
    color: #1e293b;
}

/* PWA Topbar Install Button - strictly desktop/tablet only, hidden on mobile screens */
#pwaInstallTopbarBtn,
.pwa-topbar-install-btn {
    display: none !important;
}

@media (min-width: 768px) {
    #pwaInstallTopbarBtn.ready,
    .pwa-topbar-install-btn.ready {
        display: inline-flex !important;
    }
}

/* User Avatar & Dropdown Menu */
.topbar-user-btn {
    background: transparent;
    border: none;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 50rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.topbar-user-btn:hover,
.topbar-user-btn:focus-visible {
    background-color: #f1f5f9;
    outline: none;
}

.user-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    border: 2px solid #ffffff;
    user-select: none;
    -webkit-user-select: none;
}

.user-dropdown-menu {
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

.user-dropdown-menu .dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    border-radius: 8px;
    margin: 2px 6px;
    width: auto;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.user-dropdown-menu .dropdown-item:hover,
.user-dropdown-menu .dropdown-item:focus {
    background-color: #f1f5f9;
    color: #0f172a;
}

/* Content Container */
.app-content {
    padding: 1.75rem;
    flex-grow: 1;
}

/* Metric Cards */
.stat-card {
    border: none;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    padding: 1.25rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-top: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* Tables */
.table-card {
    border: none;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table thead th {
    background-color: #f8fafc;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.table tbody td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    font-size: 0.925rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Copy Link Toast / Banner */
.invite-link-banner {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.show {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-backdrop.show {
        display: block;
    }

    .topbar-toggle {
        display: inline-flex;
    }

    .app-content {
        padding: 1rem;
    }

    .user-name {
        display: none;
    }
}

/* ==========================================================================
   Chat & Real-Time Messaging Styles
   ========================================================================== */

.chat-app-container {
    height: calc(100vh - 170px);
    min-height: 560px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
}

.chat-contacts-panel {
    width: 340px;
    min-width: 300px;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.chat-conversation-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    position: relative;
}

/* Avatar & Online status indicator */
.chat-avatar-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
}

.chat-avatar.role-admin {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.chat-avatar.role-field_sales {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.chat-avatar.role-office {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.chat-status-pip {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.chat-status-pip.online {
    background-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.chat-status-pip.offline {
    background-color: #94a3b8;
}

/* Contact List Item */
.contact-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    background-color: #f8fafc;
}

.contact-item.active {
    background-color: #eff6ff;
    border-left: 3px solid #0d6efd;
}

.contact-item .contact-info {
    flex: 1;
    min-width: 0;
}

.contact-item .contact-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.contact-item .contact-snippet {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chat Messages Stream */
.chat-stream-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble-row {
    display: flex;
    flex-direction: column;
    max-width: 72%;
}

.chat-bubble-row.me {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-bubble-row.them {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-bubble {
    padding: 10px 15px;
    border-radius: 14px;
    position: relative;
    word-break: break-word;
    font-size: 0.92rem;
    line-height: 1.45;
}

.chat-bubble.me {
    background-color: #0d6efd;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-bubble.them {
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.chat-meta {
    font-size: 0.72rem;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-meta.me {
    color: #64748b;
}

.chat-meta.them {
    color: #64748b;
}

/* Date separator in chat */
.chat-date-divider {
    text-align: center;
    margin: 12px 0;
    position: relative;
}

.chat-date-divider span {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Chat Input Bar */
.chat-input-bar {
    padding: 14px 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .chat-app-container {
        height: calc(100vh - 150px - env(safe-area-inset-bottom, 0px));
        border-radius: 10px;
        margin-bottom: 8px;
    }

    .chat-contacts-panel {
        width: 100%;
        border-right: none;
    }

    .chat-contacts-panel.d-mobile-hidden {
        display: none !important;
    }

    .chat-conversation-panel.d-mobile-hidden {
        display: none !important;
    }

    .chat-bubble-row {
        max-width: 88%;
    }
}

/* ==========================================================================
   Progressive Web App (PWA) & Mobile App Navigation
   ========================================================================== */

/* Touch & Smooth mobile app feel */
html, body {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Standalone PWA mode tweaks (installed app) */
body.pwa-standalone {
    overscroll-behavior-y: contain;
    -webkit-user-select: none;
    user-select: none;
}

body.pwa-standalone input,
body.pwa-standalone textarea,
body.pwa-standalone select,
body.pwa-standalone [contenteditable="true"],
body.pwa-standalone .stat-card,
body.pwa-standalone .table {
    -webkit-user-select: text;
    user-select: text;
}

/* Safe area insets for notches & home bars */
.app-topbar {
    padding-top: max(0.5rem, env(safe-area-inset-top));
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1040;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: color 0.15s ease, transform 0.1s ease;
    user-select: none;
    -webkit-user-select: none;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 3px;
    transition: transform 0.15s ease;
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

.bottom-nav-item.active {
    color: #0d6efd;
    font-weight: 700;
}

.bottom-nav-item.active i {
    transform: translateY(-1px);
}

.bottom-nav-item .bottom-nav-badge {
    position: absolute;
    top: 3px;
    right: calc(50% - 18px);
    font-size: 0.65rem;
    padding: 0.2em 0.45em;
    border-radius: 10rem;
}

/* Center Elevated Action Button (Add Lead) */
.bottom-nav-item.nav-action-center {
    position: relative;
    top: -10px;
}

.nav-action-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    border: 3px solid #ffffff;
    margin-bottom: 2px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-action-circle i {
    font-size: 1.35rem;
    margin-bottom: 0;
    color: #ffffff !important;
}

.bottom-nav-item.nav-action-center:active .nav-action-circle {
    transform: scale(0.9);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

.bottom-nav-item.nav-action-center.active .nav-action-circle {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.5);
}

/* Floating PWA Mobile Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    max-width: 460px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    z-index: 1050;
    animation: pwaSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Haptic active state for buttons */
button:active:not(:disabled),
.btn:active:not(:disabled) {
    transform: scale(0.97);
    transition: transform 0.08s ease;
}

/* Responsive adjustments for mobile app experience */
@media (max-width: 767.98px) {
    /* Mobile App Bar Header */
    .app-topbar {
        height: 56px;
        padding: 0 0.75rem;
        padding-top: env(safe-area-inset-top, 0px);
    }

    .topbar-toggle {
        display: inline-flex;
    }

    .topbar-company {
        font-size: 0.95rem;
        gap: 0.35rem;
    }

    .topbar-company-name {
        max-width: 120px;
        font-size: 0.925rem;
    }

    .topbar-right {
        gap: 0.35rem;
    }

    .topbar-role-badge .badge {
        font-size: 0.72rem !important;
        padding: 0.3em 0.55em !important;
        letter-spacing: -0.01em;
    }

    /* Prevent iOS auto-zoom on form inputs by ensuring font-size >= 16px */
    input, select, textarea, .form-control, .form-select {
        font-size: 16px !important;
    }

    /* Touch-friendly stat metrics (2x2 grid) */
    .stat-card {
        padding: 0.85rem;
        border-radius: 12px;
    }

    .stat-value {
        font-size: 1.35rem;
        margin-top: 0.25rem;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
        border-radius: 8px;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Mobile Page Padding with Bottom Nav Clearance */
    .app-content {
        padding: 0.75rem;
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .pwa-install-banner {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    /* Mobile card adjustments */
    .card {
        border-radius: 14px;
    }

    .card-body {
        padding: 1rem;
    }
}

/* ==========================================================================
   Add Lead & Field CRM Form Styles
   ========================================================================== */

/* Step Card Headers */
.lead-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 700;
    font-size: 0.82rem;
}

/* Service Multi-Select Chips */
.lead-service-check:checked + label {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.3) !important;
}

.lead-service-check:checked + label .chip-check-icon {
    display: inline-block !important;
}

/* Interest Level Radios */
.btn-check:checked + label[for="intHot"] {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.btn-check:checked + label[for="intWarm"] {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.btn-check:checked + label[for="intCold"] {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* Card Scan Upload Box */
.card-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.card-upload-box:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

/* AI Prefilled Highlight Animation */
.ai-highlight-field {
    background-color: #fefce8 !important;
    border-color: #facc15 !important;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* Form inputs & cards polish */
.card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 0.62rem 0.85rem;
    font-size: 0.925rem;
    color: #1e293b;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-group-text {
    border-radius: 10px 0 0 10px;
    border: 1px solid #cbd5e1;
    border-right: none;
    font-weight: 600;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
}
