﻿/* Modern Premium Style Design System for Doral Inn PMS */

:root {
    /* Colors */
    --primary-blue: #bf860d;
    --primary-blue-hover: #a3700b;
    --sidebar-bg: #1a160c;
    /* Deepest blue for premium elegant feel */
    --accent-orange: #f48c25;
    --accent-orange-hover: #db761a;

    /* Semantic Status Colors */
    --status-reserved: #f5b041;
    /* Yellow */
    --status-checkedin: #2ecc71;
    /* Green */
    --status-checkedout: #e74c3c;
    /* Red */


    /* Neutrals */
    --bg-main: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;

    /* Typograpy */
    --font-family: 'Inter', sans-serif;

    /* Variables */
    --sidebar-width: 250px;
    --border-radius: 10px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    /* App-like feel */
}

.dashboard-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: width 0.3s ease;
}

/* Sidebar Collapsed State */
.sidebar.sidebar-collapsed {
    width: 70px;
}

.sidebar.sidebar-collapsed .sidebar-header h2 {
    display: none;
}

.sidebar.sidebar-collapsed .sidebar-header {
    justify-content: center;
    padding: 24px 0;
}

.sidebar.sidebar-collapsed .sidebar-nav li a {
    justify-content: center;
    padding: 14px 0;
}

.sidebar.sidebar-collapsed .sidebar-nav li a span {
    display: none;
}

.sidebar.sidebar-collapsed .sidebar-footer a {
    justify-content: center;
}

.sidebar.sidebar-collapsed .sidebar-footer a span {
    display: none;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent-orange);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sidebar-nav li a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-nav li:hover a {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-nav li.active a {
    color: #fff;
    background-color: var(--primary-blue);
    position: relative;
}

.sidebar-nav li.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--accent-orange);
}

.nav-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    margin: 15px 20px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.sidebar-footer a:hover {
    color: #fff;
}


/* MAIN CONTENT */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    min-width: 0;
}

/* TOP HEADER */
.top-header {
    min-height: 70px;
    height: auto;
    padding: 10px 30px;
    background-color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.header-left {
    display: flex;
    align-items: center;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.search-bar {
    position: relative;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    padding: 10px 10px 10px 35px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    outline: none;
    font-family: var(--font-family);
    width: 100%;
    max-width: 250px;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    border-color: var(--primary-blue);
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--primary-blue);
}

.active-notification::after {
    content: '';
    position: absolute;
    top: 0px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: var(--status-checkedout);
    border-radius: 50%;
    border: 2px solid var(--bg-white);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}

.user-profile img {
    height: 36px;
    width: 36px;
    border-radius: 50%;
}

/* WORKSPACE */
.workspace {
    flex: 1;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    gap: 20px;
    min-height: 0;
    min-width: 0;
}

/* CALENDAR CONTROLS */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters {
    display: flex;
    gap: 10px;
}

.filter-pill {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-white);
    border-radius: 20px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-pill:hover {
    background-color: var(--bg-main);
}

.filter-pill.active {
    background-color: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-yellow {
    background-color: var(--status-reserved);
}

.dot-green {
    background-color: var(--status-checkedin);
}

.dot-red {
    background-color: var(--status-checkedout);
}

.dot-grey {
    background-color: var(--status-cleaning);
}

.actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
}

/* CALENDAR WRAPPER */
.calendar-wrapper {
    flex: 1;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-legend {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    padding: 0;
    border: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.color-yellow {
    color: var(--status-reserved);
}

.color-green {
    color: var(--status-checkedin);
}

.color-red {
    color: var(--status-checkedout);
}



/* CALENDAR GRID */
.calendar-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.grid-header {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    background-color: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 10;
}

.room-column-header {
    width: 160px;
    padding: 15px 10px;
    font-weight: 600;
    color: var(--text-muted);
    border-right: 1px solid var(--border-light);
    flex-shrink: 0;
    position: sticky;
    left: 0;
    z-index: 15;
    background-color: var(--bg-main);
}

.days-container {
    display: flex;
    flex: 1;
}

.day-col {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-weight: 600;
    border-right: 1px solid var(--border-light);
}

.day-col.current-day {
    color: var(--primary-blue);
    background-color: rgba(19, 91, 236, 0.05);
    border-bottom: 3px solid var(--primary-blue);
}

.grid-body {
    flex: 1;
}

.floor-label {
    padding: 10px 20px;
    background-color: var(--bg-main);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-light);
}

.room-row {
    display: flex;
    height: 48px;
    border-bottom: 1px solid var(--border-light);
}

.room-info {
    width: 160px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    border-right: 1px solid var(--border-light);
    flex-shrink: 0;
    background-color: var(--bg-white);
    position: sticky;
    left: 0;
    z-index: 5;
}

.room-number {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.room-type {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

.room-status {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-ready {
    color: var(--status-checkedin);
}



.timeline {
    display: flex;
    flex: 1;
    position: relative;
    background-color: var(--bg-white);
}

.timeline-day {
    flex: 1;
    border-right: 1px solid var(--border-light);
    cursor: pointer;
}

.timeline-day:hover {
    background-color: rgba(19, 91, 236, 0.05);
}

.timeline-today {
    background-color: rgba(19, 91, 236, 0.03);
}

/* RESERVATION BLOCKS */
.res-block {
    position: absolute;
    top: 6px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-shadow: var(--shadow-sm);
    cursor: grab;
    transition: transform 0.1s, box-shadow 0.2s;
    user-select: none;
    z-index: 2;
}

.res-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    z-index: 3;
}

.res-block:active {
    cursor: grabbing;
}

.res-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.res-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.res-yellow {
    background-color: var(--status-reserved);
}

.res-green {
    background-color: var(--status-checkedin);
}

.res-red {
    background-color: var(--status-checkedout);
}



.res-lock {
    font-size: 0.8rem;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 4px;
    border-radius: 4px;
}

/* Utilities */
.w-100 {
    width: 100%;
}

.mt-0 {
    margin-top: 0;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mb-4 {
    margin-bottom: 24px;
}

.pt-2 {
    padding-top: 8px;
}

.pb-2 {
    padding-bottom: 8px;
}

.pb-4 {
    padding-bottom: 24px;
}

.p-2 {
    padding: 10px;
}

.p-3 {
    padding: 15px;
}

.p-4 {
    padding: 24px;
}

.m-0 {
    margin: 0;
}

.my-3 {
    margin-top: 15px;
    margin-bottom: 15px;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.justify-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.gap-2 {
    gap: 10px;
}

.gap-4 {
    gap: 20px;
}

.text-muted {
    color: var(--text-muted);
}

.text-main {
    color: var(--text-main);
}

.text-success {
    color: var(--status-checkedin);
}

.text-danger {
    color: var(--status-checkedout);
}

.text-primary {
    color: var(--primary-blue);
}

.text-warning {
    color: var(--accent-orange);
}

.text-sm {
    font-size: 0.8rem;
}

.fw-bold {
    font-weight: 700;
}

.border {
    border: 1px solid var(--border-light);
}

.border-top {
    border-top: 1px solid var(--border-light);
}

.border-dashed {
    border: 2px dashed var(--border-light);
    border-style: dashed;
}

.border-light {
    border-color: var(--border-light);
    border-style: solid;
    border-width: 1px;
}

.border-bottom {
    border-bottom: 1px solid var(--border-light);
}

.border-bottom-light {
    border-bottom: 1px solid var(--border-light);
}

.bg-white {
    background: var(--bg-white);
}

.bg-main {
    background: var(--bg-main);
}

.rounded {
    border-radius: var(--border-radius);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.cursor-pointer {
    cursor: pointer;
}

/* Estilos para las vistas */
.view-section {
    display: none;
}

.view-section.active-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Housekeeping styles */
.hk-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.hk-main {
    display: flex;
    gap: 20px;
    flex: 1;
    overflow: hidden;
}

.hk-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    overflow-y: auto;
    align-content: start;
}

.hk-room-card {
    background: var(--bg-white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--border-light);
}

.hk-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn-report {
    background: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    font-weight: 600;
}

.btn-report:hover {
    background: #e2e8f0;
}

.hk-sidebar {
    flex: 1;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border: 1px solid var(--border-light);
}

.hk-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.alert-feed-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Reports */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.report-select {
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    font-family: var(--font-family);
    background: #fff;
}

.reports-charts {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 300px;
}

.chart-container {
    min-height: 250px;
}

/* Drawers & Modals */
.drawer-overlay,
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
    justify-content: flex-end;
    align-items: center;
}

.modal-overlay {
    justify-content: center;
}

.drawer {
    background: var(--bg-white);
    width: 450px;
    max-width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.drawer.open {
    transform: translateX(0);
}

.modal {
    background: var(--bg-white);
    width: 500px;
    max-width: 90vw;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.2s ease;
}

.modal.open {
    transform: scale(1);
    opacity: 1;
}

.modal-lg {
    width: 800px;
}

.drawer-header,
.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h2,
.modal-header h2 {
    font-size: 1.25rem;
    color: var(--sidebar-bg);
}

.drawer-body,
.modal-body {
    padding: 25px;
    flex: 1;
    overflow-y: auto;
}

.drawer-footer,
.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-main);
}

/* Forms */
.form-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-layout label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
    margin-top: 5px;
    display: block;
}

.form-layout input,
.form-layout select,
.form-layout textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg-white);
}

.form-layout input:focus,
.form-layout select:focus,
.form-layout textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #fff;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    /* Added flex-wrap for smaller screens */
}

.form-row .col {
    flex: 1 1 120px;
    /* Base width before wrapping */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Buttons */
.btn-secondary {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: var(--font-family);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-main);
}

.dropzone:hover {
    border-color: var(--primary-blue);
    background: rgba(19, 91, 236, 0.05);
}

/* Charges list */
.charges-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.charges-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

/* Receipt */
.receipt-layout {
    display: flex;
    gap: 30px;
}

.receipt-layout .col {
    flex: 1;
    background: transparent;
}

.receipt-layout h4 {
    color: var(--sidebar-bg);
}

.receipt-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Action Menu & Popovers */
.action-menu {
    position: absolute;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 220px;
    border: 1px solid var(--border-light);
    display: none;
    z-index: 2000;
    flex-direction: column;
    padding: 5px 0;
}

.action-menu.show {
    display: flex;
}

.action-menu-header {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.qa-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.qa-btn:hover {
    background: var(--bg-main);
}

.qa-btn i {
    width: 16px;
    text-align: center;
}

.popover-panel {
    position: absolute;
    top: 40px;
    right: 0;
    width: 350px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: none;
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
}

.popover-panel.show {
    display: flex;
}

.popover-header {
    padding: 15px 20px;
    background: var(--sidebar-bg);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.popover-content {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.alert-card {
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--status-checkedout);
    background: var(--bg-white);
}

.alert-card h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--sidebar-bg);
}

.alert-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Caja View Specific */
#caja-movements-list tr {
    transition: background-color 0.2s ease;
}

#caja-movements-list tr:hover {
    background-color: #f8fafc;
}

#caja-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.view-section {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
    padding-right: 10px; /* Make room for scrollbar */
}

.view-section.active-view {
    display: flex;
}

#view-config.active-view,
#view-editor-web.active-view {
    display: block; /* Overrides display: flex to prevent flex constraints */
    flex: none;
    height: auto;
    overflow: visible;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SEARCH SELECT COMPONENTS */
.search-select-wrapper {
    position: relative;
    width: 100%;
}

.search-results-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    margin-top: 4px;
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    border-bottom: 1px solid var(--bg-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--bg-main);
    color: var(--primary-blue);
}

.search-result-item .item-price {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* MOTOR ALERT STYLES */
#motor-alert-container {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.motor-alert-item {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
    animation: slideDownIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), pulseBorder 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.motor-alert-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.motor-alert-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.motor-alert-text h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.motor-alert-text p {
    margin: 3px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.motor-alert-actions {
    display: flex;
    gap: 10px;
}

.btn-alert-action {
    background: white;
    color: #4f46e5;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-alert-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-alert-dismiss {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

@keyframes slideDownIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

@keyframes slideUpOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-20px); opacity: 0; }
}



/* ==========================================================================
   Collapsible Config Sections
   ========================================================================== */
.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.2s ease;
}

.collapsible-header:hover {
    color: var(--primary-blue, #2563eb);
}

.collapsible-header .chevron-icon {
    transition: transform 0.3s ease;
    color: #64748b;
    font-size: 1.1rem;
}

.collapsible-header.collapsed .chevron-icon {
    transform: rotate(-90deg);
}

.collapsible-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
}
