/* ============================================================
   PICKING HIGHLIGHT PANEL - Glassmorphism Design
   Extends unified-panel-design.css with Picking-specific styling
   ============================================================ */

/* Position panel with relative positioning for stacking behavior - No gaps */
#pickingHighlightPanelContainer {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    background: var(--glass-bg-primary);
    border: 2px solid rgba(255, 152, 0, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow),
                0 0 40px var(--picking-glow);
    font-family: var(--font-body);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    overflow: hidden;

    /* Picking-specific custom properties */
    --panel-primary: var(--picking-primary);
    --panel-secondary: var(--picking-secondary);
    --panel-glow: var(--picking-glow);
}

#pickingHighlightPanelContainer:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6),
                0 0 60px var(--picking-glow);
    border-color: rgba(255, 152, 0, 0.5);
    transform: translateY(-2px);
}

/* Panel header styling - Glassmorphism with shimmer effect */
#pickingHighlightPanelContainer .panel-header {
    background: linear-gradient(135deg,
        rgba(255, 152, 0, 0.25),
        rgba(251, 140, 0, 0.15));
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#pickingHighlightPanelContainer .panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 152, 0, 0.2),
        transparent);
    transition: left 0.5s ease;
}

#pickingHighlightPanelContainer .panel-header:hover::before {
    left: 100%;
}

#pickingHighlightPanelContainer .panel-header:hover {
    background: linear-gradient(135deg,
        rgba(255, 152, 0, 0.35),
        rgba(251, 140, 0, 0.25));
    border-bottom-color: rgba(255, 152, 0, 0.5);
}

#pickingHighlightPanelContainer .panel-header h3 {
    margin: 0;
    background: linear-gradient(135deg, #FF9800, #FB8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px var(--picking-glow);
}

/* Panel content area - Enhanced spacing with smart scrollbar */
#pickingHighlightPanelContainer .panel-content {
    padding: var(--spacing-xl);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

/* Custom scrollbar styling for picking panel - Orange theme */
#pickingHighlightPanelContainer .panel-content::-webkit-scrollbar {
    width: 8px;
}

#pickingHighlightPanelContainer .panel-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

#pickingHighlightPanelContainer .panel-content::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg,
        rgba(255, 152, 0, 0.6),
        rgba(251, 140, 0, 0.6));
    border-radius: 4px;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

#pickingHighlightPanelContainer .panel-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg,
        rgba(255, 152, 0, 0.8),
        rgba(251, 140, 0, 0.8));
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.5);
}

/* Picking panel button styles - Single row flex layout */
.picking-panel-buttons {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.picking-panel-buttons button {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Primary buttons (Highlight, Unhighlight) - Larger */
#highlightPickingButton,
#resetPickingButton {
    flex: 1.3;
    font-size: 12px;
}

#highlightPickingButton {
    background: linear-gradient(135deg, #FF9800, #FB8C00);
    color: white;
    border: 2px solid rgba(255, 152, 0, 0.5);
}

#highlightPickingButton:hover {
    background: linear-gradient(135deg, #FB8C00, #F57C00);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
    transform: translateY(-2px);
}

#resetPickingButton {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.8), rgba(123, 31, 162, 0.8));
    color: white;
    border: 2px solid rgba(156, 39, 176, 0.5);
}

#resetPickingButton:hover {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.9), rgba(106, 27, 154, 0.9));
    box-shadow: 0 6px 16px rgba(156, 39, 176, 0.4);
    transform: translateY(-2px);
}

/* Secondary buttons (Refresh, Clear) - Smaller with two-line text */
#refreshPickingDataButton,
#unselectPickingDropdownsButton {
    flex: 1.0;
    font-size: 10px;
    white-space: normal;
    line-height: 1.2;
}

#refreshPickingDataButton {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.8), rgba(30, 136, 229, 0.8));
    color: white;
    border: 2px solid rgba(33, 150, 243, 0.5);
}

#refreshPickingDataButton:hover {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.9), rgba(25, 118, 210, 0.9));
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

#unselectPickingDropdownsButton {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.8), rgba(229, 57, 53, 0.8));
    color: white;
    border: 2px solid rgba(244, 67, 54, 0.5);
}

#unselectPickingDropdownsButton:hover {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.9), rgba(211, 47, 47, 0.9));
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4);
    transform: translateY(-2px);
}

/* Dropdown section styling - Orange theme accents */
#pickingFiltersSection .dropdown-section {
    margin-bottom: 18px;
}

#pickingFiltersSection .dropdown-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #FF9800;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

#pickingFiltersSection .dropdown-section select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    background: rgba(40, 40, 40, 0.9);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#pickingFiltersSection .dropdown-section select:hover {
    border-color: rgba(255, 152, 0, 0.6);
    background: rgba(50, 50, 50, 0.9);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

#pickingFiltersSection .dropdown-section select:focus {
    outline: none;
    border-color: #FF9800;
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.4);
}

#pickingFiltersSection .dropdown-section select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(255, 152, 0, 0.2);
}

/* Dropdown info text styling - Orange theme */
#pickingFiltersSection .dropdown-info {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 152, 0, 0.7);
    font-style: italic;
}

/* Picking locations list styling */
#pickingLocationsList {
    margin-top: 15px;
}

#pickingLocationsList label {
    font-weight: 600;
    font-size: 14px;
    color: #FF9800;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

#pickingLocationCount {
    color: #FB8C00;
    font-weight: 700;
}

/* List view container - Orange themed */
#pickingLocationListView {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    background: rgba(30, 30, 30, 0.6);
    padding: 8px;
}

#pickingLocationListView::-webkit-scrollbar {
    width: 6px;
}

#pickingLocationListView::-webkit-scrollbar-track {
    background: rgba(255, 152, 0, 0.1);
    border-radius: 3px;
}

#pickingLocationListView::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF9800, #FB8C00);
    border-radius: 3px;
}

#pickingLocationListView .list-empty {
    color: rgba(255, 152, 0, 0.5);
    font-style: italic;
    text-align: center;
    padding: 15px;
}

/* Location item styling - Orange theme */
#pickingLocationListView .location-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: rgba(40, 40, 40, 0.7);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#pickingLocationListView .location-item:hover {
    background: rgba(255, 152, 0, 0.2);
    border-color: rgba(255, 152, 0, 0.5);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

#pickingLocationListView .location-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #FF9800;
}

#pickingLocationListView .location-item span {
    color: #E0E0E0;
    font-size: 13px;
    font-weight: 500;
}

/* Select All/Deselect All buttons - Orange theme */
.picking-select-all-btn,
.picking-deselect-all-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.picking-select-all-btn {
    background: linear-gradient(135deg, #FF9800, #FB8C00);
    color: white;
    border: 1px solid rgba(255, 152, 0, 0.5);
}

.picking-select-all-btn:hover {
    background: linear-gradient(135deg, #FB8C00, #F57C00);
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

.picking-deselect-all-btn {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.8), rgba(123, 31, 162, 0.8));
    color: white;
    border: 1px solid rgba(156, 39, 176, 0.5);
}

.picking-deselect-all-btn:hover {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.9), rgba(106, 27, 154, 0.9));
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.3);
}

/* Summary section styling - Orange theme */
#pickingSummary {
    margin-top: 15px;
    padding: 12px 14px;
    background: rgba(40, 40, 40, 0.7);
    border: 2px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#pickingSummary .summary-info {
    color: #FF9800;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

/* Panel header controls */
.panel-header-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.toggle-icon {
    font-size: 16px;
    color: #FF9800;
    transition: transform 0.3s ease;
}

.close-icon {
    font-size: 18px;
    color: rgba(255, 152, 0, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-icon:hover {
    color: #FF9800;
    transform: rotate(90deg);
}

/* Corridor information display */
.corridor-info {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.4);
    border-radius: 4px;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #FFA726 !important;
    margin: 0 5px;
}

/* Non-pickable location badge */
.non-pickable-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    border-radius: 4px;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #EF5350 !important;
    margin: 0 5px;
}
