/* ================================================
   AutoAgent Production Theme
   Edit ONLY this file for visual changes.
   Never touch AppPanelProvider.php for styling.
   ================================================ */

/* ── Blue primary color override ── */
:root {
    --color-primary-50:  #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;
    --color-primary-950: #172554;
}

/* ── Hide system theme option ── */
.fi-dropdown-list-item:has(span[class*="system"]),
.fi-theme-switcher-system {
    display: none !important;
}

/* ── User avatar in topbar ── */
.fi-user-menu .fi-avatar {
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* ── Brand logo ── */
.fi-logo.fi-logo-light img,
.fi-logo.fi-logo-dark img,
.fi-logo img {
    height: 4rem;
    width: auto;
    object-fit: contain;
    max-width: 160px;
}

/* ── Clean topbar ── */
.fi-topbar {
    border-bottom: 1px solid rgb(226 232 240) !important;
}
.dark .fi-topbar {
    border-bottom: 1px solid rgb(30 41 59) !important;
}

/* ── Logo bigger ── */
.fi-logo img {
    height: 3.5rem !important;
    width: auto !important;
    object-fit: contain !important;
}

/* ── Sidebar scrollbar — Gmail style (thin, auto-hide, no arrows) ── */
.fi-sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color .3s;
}
.fi-sidebar-nav:hover {
    scrollbar-color: rgba(148,163,184,.4) transparent;
}
/* Webkit (Chrome/Safari) */
.fi-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.fi-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.fi-sidebar-nav::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
    transition: background .3s;
}
.fi-sidebar-nav:hover::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,.4);
}
.fi-sidebar-nav::-webkit-scrollbar-button {
    display: none;
}

/* ── Hamburger hover circle ── */
.fi-topbar-open-sidebar-btn,
.fi-topbar-close-sidebar-btn,
.fi-topbar-open-collapse-sidebar-btn,
.fi-topbar-close-collapse-sidebar-btn {
    border-radius: 50% !important;
    transition: background .15s !important;
    padding: 0.4rem !important;
}
.fi-topbar-open-sidebar-btn:hover,
.fi-topbar-close-sidebar-btn:hover,
.fi-topbar-open-collapse-sidebar-btn:hover,
.fi-topbar-close-collapse-sidebar-btn:hover {
    background: rgba(100,116,139,.12) !important;
}

/* ═══════════════════════════════════════════════
   AutoAgent Brand Colors — Light sidebar
   ═══════════════════════════════════════════════ */

/* ── Left sidebar — light ── */
.fi-sidebar {
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
}
.fi-sidebar-nav {
    background-color: #ffffff;
}

/* Sidebar nav items */
.fi-sidebar-item-button {
    color: #475569;
    border-radius: 0.375rem;
}
.fi-sidebar-item-button:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}
.fi-sidebar-item-button.fi-active,
.fi-sidebar-item-button[aria-current="page"] {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}
.fi-sidebar-item-button.fi-active svg,
.fi-sidebar-item-button[aria-current="page"] svg {
    color: #2563eb;
}

/* Sidebar group labels */
.fi-sidebar-group-label {
    color: #94a3b8;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Sidebar header border */
.fi-sidebar-header {
    border-bottom: 1px solid #f1f5f9;
}

/* ── Topbar — white ── */
.fi-topbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

/* ── Content area — very light gray ── */
.fi-main,
.fi-body {
    background-color: #f8fafc;
}

/* ── Dark mode support ── */
.dark .fi-sidebar,
.dark .fi-sidebar-nav { background-color: #0f172a; border-right-color: #1e293b; }
.dark .fi-topbar { background-color: #1e293b; border-bottom-color: #334155; }
.dark .fi-main,
.dark .fi-body { background-color: #0f172a; }
.dark .fi-sidebar-item-button { color: #94a3b8; }
.dark .fi-sidebar-item-button:hover { background-color: rgba(255,255,255,.06); color: #f1f5f9; }
.dark .fi-sidebar-item-button.fi-active { background-color: rgba(37,99,235,.2); color: #93c5fd; }
.dark .fi-sidebar-group-label { color: #475569; }

/* Hide Livewire progress bar flicker */
#nprogress .bar { display: none !important; }
#nprogress .spinner { display: none !important; }

/* AI Summary widget - force full width */
.fi-wi-widget:has(.fi-wi-widget > div[style*="linear-gradient"]),
div[class*="fi-wi"]:first-child {
    grid-column: 1 / -1 !important;
}

/* AI Summary widget full width */
[wire\:id] > div[style*="linear-gradient(135deg,#1e40af"] {
    grid-column: 1 / -1 !important;
}

/* Force AI summary to full width */
.fi-grid [wire\:id][style*="linear-gradient(135deg,#1e40af"] {
    grid-column: 1 / -1 !important;
}

/* Business hours dropdowns - wider */
[id*="business_hours_structured"] .fi-select-input {
    min-width: 160px !important;
}

/* Business hours - prevent text wrapping in dropdowns */
[id*="business_hours_structured"] select,
[id*="business_hours_structured"] .fi-select-input {
    white-space: nowrap;
    min-width: 140px;
}

/* Import CSV upload area cursor */
.fi-fo-file-upload label,
.fi-dropzone {
    cursor: pointer !important;
}

/* Upload icon on CSV import drop label (all import modals) */
.filepond--drop-label label::before {
    content: '';
    display: inline-block;
    width: 1.15rem;
    height: 1.15rem;
    margin-right: 0.45rem;
    vertical-align: -0.22rem;
    background-color: currentColor;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.8" stroke="black"><path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 7.5 7.5 12M12 7.5V21"/></svg>') no-repeat center / contain;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.8" stroke="black"><path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 7.5 7.5 12M12 7.5V21"/></svg>') no-repeat center / contain;
}

/* CSV upload icon - simple and forceful */
.filepond--drop-label label:before {
    content: "\2191" !important;
    display: inline-block !important;
    margin-right: 0.4rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
}


/* Make the tile itself compact, and let the photo fill it */
.fi-fo-file-upload .filepond--item-panel {
    background-color: #e2e8f0 !important;
    border-radius: 0.5rem !important;
}
.dark .fi-fo-file-upload .filepond--item-panel {
    background-color: #334155 !important;
}
.fi-fo-file-upload .filepond--image-preview-wrapper,
.fi-fo-file-upload .filepond--image-preview {
    border-radius: 0.5rem !important;
}
.fi-fo-file-upload .filepond--image-preview-overlay {
    display: none !important;
}


/* Keep the green success and red failure indicators visible */
.filepond--image-preview-overlay-success {
    color: #10b981 !important;
}
.filepond--image-preview-overlay-failure {
    color: #ef4444 !important;
}
/* Keep the progress ring visible while uploading */
.filepond--file-status,
.filepond--progress-indicator {
    display: block !important;
}

/* Smaller tiles - 6 per row on desktop */
.filepond--root[data-style-panel-layout~="grid"] .filepond--item {
    width: calc(16.666% - 0.5em) !important;
}
@media (max-width: 1280px) {
    .filepond--root[data-style-panel-layout~="grid"] .filepond--item {
        width: calc(25% - 0.5em) !important;
    }
}
@media (max-width: 768px) {
    .filepond--root[data-style-panel-layout~="grid"] .filepond--item {
        width: calc(33.333% - 0.5em) !important;
    }
}

/* Light panel behind the photo instead of black */
.filepond--item-panel {
    background-color: #e2e8f0 !important;
    border-radius: 0.5rem !important;
}
.dark .filepond--item-panel {
    background-color: #334155 !important;
}


