/* ===============================
   Sidebar – Command Panel (Enhanced & Compact)
   =============================== */

.command-sidebar {
    position: sticky;
    top: 16px;
    height: calc(100vh - 32px);
    overflow-y: auto;
    background: linear-gradient(180deg, #0d1117 0%, #0a0e13 100%);
    border-right: 1px solid var(--border-subtle);
    padding: 0 12px;
}

/* Hide scrollbar but keep functionality */
.command-sidebar::-webkit-scrollbar {
    width: 4px;
}

.command-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Section titles */
.command-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #E67E22;
    margin: 16px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(230, 126, 34, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Compact labels */
.command-label-sm {
    font-size: 9px;
    font-weight: 600;
    color: #8b949e;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
    margin-top: 6px;
    display: block;
    text-transform: uppercase;
}

/* Link actions (All / Clear) - smaller */
.link-action {
    font-size: 7px;
    color: #E67E22;
    cursor: pointer;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.link-action:hover {
    opacity: 1;
    text-decoration: underline;
    color: #E67E22;
}

/* Compact dropdown */
.dropdown-compact .Select-control {
    min-height: 32px !important;
    height: 32px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
}

.dropdown-compact .Select-placeholder,
.dropdown-compact .Select-value-label {
    line-height: 30px !important;
    font-size: 12px !important;
    padding-left: 10px !important;
}

.dropdown-compact .Select-input {
    height: 30px !important;
}

.dropdown-compact .Select-input > input {
    padding: 6px 0 !important;
    font-size: 12px !important;
}

/* Multi-select compact tags - GLOBAL for all multi-select dropdowns */
.Select--multi .Select-value,
.dropdown-compact .Select--multi .Select-value {
    font-size: 9px !important;
    padding: 0px 2px !important;
    margin: 1px !important;
    line-height: 1.2 !important;
    background-color: rgba(230, 126, 34, 0.15) !important;
    border: 1px solid rgba(230, 126, 34, 0.3) !important;
    border-radius: 3px !important;
    color: #E67E22 !important;
    max-width: 80px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.Select--multi .Select-value-label,
.dropdown-compact .Select--multi .Select-value-label {
    font-size: 9px !important;
    padding: 0 3px !important;
    color: #c9d1d9 !important;
}

.Select--multi .Select-value-icon,
.dropdown-compact .Select--multi .Select-value-icon {
    padding: 0px 3px !important;
    font-size: 10px !important;
    border-right: 1px solid rgba(230, 126, 34, 0.2) !important;
    color: #E67E22 !important;
}

.Select--multi .Select-value-icon:hover {
    background-color: rgba(230, 126, 34, 0.3) !important;
    color: #fff !important;
}

/* Menu items compact */
.dropdown-compact .Select-option {
    padding: 6px 10px !important;
    font-size: 12px !important;
}

/* Sidebar command buttons - base class */
.sidebar-cmd-btn {
    display: block;
    width: 100%;
    height: 38px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-align: center;
    line-height: 36px;
}

/* Primary (orange) */
.sidebar-cmd-btn-primary {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    border: 1px solid #D35400;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.25);
}

.sidebar-cmd-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.35);
}

/* Secondary (gray) */
.sidebar-cmd-btn-secondary {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
}

.sidebar-cmd-btn-secondary:hover {
    background: #30363d;
    border-color: #484f58;
    color: #ffffff;
}

/* Data tools collapse container - ensure full width alignment */
#collapse-data-tools {
    width: 100% !important;
    padding: 4px 0 0 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

#collapse-data-tools .btn {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    font-size: 10px !important;
    height: 28px !important;
    padding: 0 8px !important;
}

/* Data Info Panel */
.data-info-panel {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.08) 0%, rgba(230, 126, 34, 0.03) 100%);
    border: 1px solid rgba(230, 126, 34, 0.2);
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: 6px;
}

.data-info-panel:empty {
    display: none;
}

.data-info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.data-info-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.data-info-value {
    font-size: 16px;
    font-weight: 700;
    color: #E67E22;
    font-family: 'SF Mono', 'Roboto Mono', monospace;
}

.data-info-label {
    font-size: 10px;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-info-date {
    font-size: 11px;
    font-weight: 600;
    color: #c9d1d9;
    font-family: 'SF Mono', 'Roboto Mono', monospace;
}

.data-info-title {
    font-size: 11px;
    font-weight: 600;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-info-subtitle {
    font-size: 10px;
    color: #6e7681;
    margin-top: 2px;
}

.data-info-added {
    font-size: 10px;
    font-weight: 600;
    color: #22c55e;
    margin-left: 2px;
}

.data-info-reduced {
    font-size: 10px;
    font-weight: 600;
    color: #f59e0b;
    margin-left: 2px;
}

.data-info-date-new {
    font-size: 10px;
    font-weight: 600;
    color: #22c55e;
}

/* Date range buttons - compact */
.btn-group .btn-sm {
    padding: 4px 8px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    height: 26px !important;
}

/* Slider compact */
.rc-slider {
    margin: 8px 0 !important;
}

.rc-slider-mark-text {
    font-size: 9px !important;
    color: #6e7681 !important;
}

/* HR dividers */
.command-sidebar hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 12px 0;
}

/* Guide styles moved to guide_tutorial.css */

/* Card header compact */
.card-header {
    padding: 10px 14px !important;
    font-size: 11px !important;
}

/* Portfolio buttons - consistent styling */
.portfolio-btn {
    display: block;
    width: 100%;
    height: 44px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    border: 1px solid transparent;
    text-align: center;
    line-height: 42px;
}

.portfolio-btn-primary {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    border-color: #D35400;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.3);
}

.portfolio-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.portfolio-btn-secondary {
    background: #30363d;
    border-color: #484f58;
    color: #c9d1d9;
}

.portfolio-btn-secondary:hover {
    background: #3d444d;
    border-color: #6e7681;
    color: #ffffff;
}

.portfolio-btn-outline {
    background: transparent;
    border: 1px solid #484f58;
    color: #8b949e;
}

.portfolio-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #6e7681;
    color: #c9d1d9;
}

.portfolio-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-color: #c82333;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.portfolio-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}
