/* CSRD Analytics Dashboard - Custom Styles */

/* CSS Variables */
:root {
    --primary-color: #6c5ce7;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #e84393;
    --info-color: #0984e3;
    --dark-color: #2d3748;
    --muted-color: #636e72;
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --card-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Main Dashboard Container */
.main-container {
    background: white;
    min-height: 100vh;
    padding: 20px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Modern Dashboard Header */
.dashboard-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Filter and Control Tiles */
.filter-tile {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    /* Allow dropdown menus to overflow */
    overflow: visible !important;
}

.filter-tile h5 {
    color: #495057;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Document Info Tile */
.document-tile {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

/* KPI Cards */
.kpi-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: white;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0.5rem 0;
    line-height: 1;
}

.kpi-label {
    font-size: 0.875rem;
    color: var(--muted-color);
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-growth {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.kpi-growth.positive {
    color: var(--success-color);
}

.kpi-growth.negative {
    color: var(--danger-color);
}

.kpi-growth.neutral {
    color: var(--muted-color);
}

.kpi-growth-icon {
    width: 10px;
    height: 10px;
    margin-right: 0.2rem;
}

/* KPI Icons */
.kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem auto;
    font-size: 16px;
}

.kpi-icon-primary {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
}

.kpi-icon-success {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success-color);
}

.kpi-icon-warning {
    background: rgba(253, 203, 110, 0.1);
    color: var(--warning-color);
}

.kpi-icon-danger {
    background: rgba(232, 67, 147, 0.1);
    color: var(--danger-color);
}

.kpi-icon-info {
    background: rgba(9, 132, 227, 0.1);
    color: var(--info-color);
}

/* Environmental KPI Cards - White background with green accent */
.kpi-card.environmental {
    background: white;
    border-left: 4px solid #00b894;
}

.kpi-card.environmental::before {
    background: #00b894;
}

.kpi-card.environmental:hover {
    background: white;
    border-left-color: #00a085;
}

/* Social KPI Cards - White background with blue accent */
.kpi-card.social {
    background: white;
    border-left: 4px solid #6c5ce7;
}

.kpi-card.social::before {
    background: #6c5ce7;
}

.kpi-card.social:hover {
    background: white;
    border-left-color: #5a4fcf;
}

/* Governance KPI Cards - White background with orange accent */
.kpi-card.governance {
    background: white;
    border-left: 4px solid #fdcb6e;
}

.kpi-card.governance::before {
    background: #fdcb6e;
}

.kpi-card.governance:hover {
    background: white;
    border-left-color: #fdb94e;
}

/* Gap Analysis KPI Cards - White background with colored accents */
.kpi-card.gap-critical {
    background: white;
    border-left: 4px solid #e84393;
}

.kpi-card.gap-critical::before {
    background: #e84393;
}

.kpi-card.gap-critical:hover {
    background: white;
    border-left-color: #e32d7f;
}

.kpi-card.gap-important {
    background: white;
    border-left: 4px solid #fdcb6e;
}

.kpi-card.gap-important::before {
    background: #fdcb6e;
}

.kpi-card.gap-important:hover {
    background: white;
    border-left-color: #fdb94e;
}

.kpi-card.gap-moderate {
    background: white;
    border-left: 4px solid #0984e3;
}

.kpi-card.gap-moderate::before {
    background: #0984e3;
}

.kpi-card.gap-moderate:hover {
    background: white;
    border-left-color: #0770c4;
}

/* Chart Containers */
.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

/* Professional Chart Card Styles */
.chart-wrapper {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    overflow: hidden;
}

.chart-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.chart-header > div:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.chart-header .chart-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0 0 4px 0;
    line-height: 1.3;
    text-align: left;
    width: 100%;
}

.chart-header .chart-subtitle {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
    opacity: 0.9;
    text-align: left;
    width: 100%;
}

.chart-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-body {
    padding: 20px;
    background-color: white;
}

/* Data Tables */
.data-table-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.data-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.data-table-title {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.table-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Custom Data Table Styles */
.dash-table-container {
    overflow-x: auto;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.dash-table-container .dash-spreadsheet-container {
    max-height: 500px;
    overflow-y: auto;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table {
    border-collapse: collapse;
    width: 100%;
}

.dash-table-container .dash-header {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #495057;
    text-align: left;
    padding: 12px 8px;
    border-bottom: 2px solid #dee2e6;
}

.dash-table-container .dash-cell {
    padding: 8px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    vertical-align: top;
    min-width: 100px;
    max-width: 200px;
    white-space: normal;
    word-wrap: break-word;
}

/* Table Row Highlighting */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Gap Analysis Specific Styles */
.gap-threshold-container {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.gap-threshold-container h6 {
    color: #1976d2;
    margin-bottom: 10px;
    font-weight: 600;
}

.gap-threshold-container p {
    color: #424242;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* Threshold Slider */
.threshold-slider .rc-slider-track {
    background-color: #2196f3;
}

.threshold-slider .rc-slider-handle {
    border-color: #2196f3;
    background-color: #2196f3;
}

.threshold-slider .rc-slider-handle:hover {
    border-color: #1976d2;
    background-color: #1976d2;
}

/* Mode Selector */
.mode-selector {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

/* Radio Button Groups */
.radio-group .form-check {
    margin-bottom: 8px;
}

.radio-group .form-check-input:checked {
    background-color: #2196f3;
    border-color: #2196f3;
}

/* Dropdown Selectors */
.dropdown-selector .Select-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.dropdown-selector .Select-control:hover {
    border-color: #2196f3;
}

.dropdown-selector .Select-control.is-focused {
    border-color: #2196f3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Button Styles */
.custom-button {
    background-color: #2196f3;
    border-color: #2196f3;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
}

.custom-button:hover {
    background-color: #1976d2;
    border-color: #1976d2;
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.custom-button-outline {
    background-color: transparent;
    border: 1px solid #6c757d;
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
}

.custom-button-outline:hover {
    background-color: #6c757d;
    color: white !important;
    text-decoration: none;
}

/* Success/Error States */
.success-indicator {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.error-indicator {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.warning-indicator {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

/* Loading Spinners */
.loading-container {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196f3;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 10px 1rem;
    }
    
    .filter-tile, .document-tile, .chart-container, .data-table-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .kpi-card h3 {
        font-size: 1.5rem;
    }
    
    .data-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .table-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .main-container {
        padding: 10px 0.75rem;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .chart-container {
        padding: 10px;
    }
    
    .kpi-card {
        padding: 15px;
    }
    
    .kpi-card h3 {
        font-size: 1.25rem;
    }
}

/* Plotly Chart Customizations */
.js-plotly-plot .plotly .main-svg {
    border-radius: 8px;
}

/* Global Plotly Chart Styling */
.js-plotly-plot {
    border-radius: var(--border-radius) !important;
}

.js-plotly-plot .plotly .main-svg {
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
}

/* Plotly text styling */
.js-plotly-plot .plotly .main-svg text {
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
    fill: var(--dark-color, #2d3748) !important;
}

/* Plotly axis styling */
.js-plotly-plot .plotly .main-svg .xaxislayer-above text,
.js-plotly-plot .plotly .main-svg .yaxislayer-above text {
    font-size: 12px !important;
    fill: var(--muted-color, #636e72) !important;
}

/* Plotly legend styling */
.js-plotly-plot .plotly .main-svg .legend text {
    font-size: 12px !important;
    fill: var(--dark-color, #2d3748) !important;
}

/* Plotly Hover Tooltip Styling */
.js-plotly-plot .plotly .hovertext {
    background-color: white !important;
    color: #2d3748 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    font-family: var(--font-family) !important;
    font-size: 12px !important;
    padding: 8px !important;
}

.js-plotly-plot .plotly .hovertext text {
    fill: #2d3748 !important;
    color: #2d3748 !important;
}

/* Plotly hover box styling */
.js-plotly-plot .plotly .hoverlayer .hovertext {
    background: white !important;
    color: #2d3748 !important;
    border: 1px solid #e2e8f0 !important;
}

/* Plotly hover labels */
.js-plotly-plot .plotly .hoverlayer .hovertext .name {
    color: #2d3748 !important;
}

/* Plotly heatmap hover styling */
.js-plotly-plot .plotly .hoverlayer .hovertext path {
    fill: white !important;
    stroke: #e2e8f0 !important;
}

/* Force white background on all Plotly hover elements */
.js-plotly-plot .plotly .hoverlayer * {
    background-color: white !important;
    color: #2d3748 !important;
}

/* Additional Plotly hover force styling */
.js-plotly-plot .plotly .hoverlayer .hovertext,
.js-plotly-plot .plotly .hoverlayer .hovertext *,
.js-plotly-plot .plotly .hoverlayer tspan,
.js-plotly-plot .plotly .hoverlayer text {
    background-color: white !important;
    fill: #2d3748 !important;
    color: #2d3748 !important;
    stroke: none !important;
}

/* Override Plotly's default hover colors completely */
.js-plotly-plot .plotly g.hovertext,
.js-plotly-plot .plotly g.hovertext path,
.js-plotly-plot .plotly g.hovertext rect {
    fill: white !important;
    stroke: #e2e8f0 !important;
    stroke-width: 1px !important;
}

/* Ensure heatmap hover text is always visible */
.js-plotly-plot .plotly .hoverlayer .hovertext tspan {
    fill: #2d3748 !important;
    font-weight: 500 !important;
    font-size: 12px !important;
}

/* Force tooltip container styling */
.js-plotly-plot .plotly .hoverlayer {
    pointer-events: none;
}

.js-plotly-plot .plotly .hoverlayer .hovertext > text,
.js-plotly-plot .plotly .hoverlayer .hovertext > text > tspan {
    fill: #2d3748 !important;
    color: #2d3748 !important;
}

/* Plotly modebar (toolbar) styling */
.js-plotly-plot .modebar {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.js-plotly-plot .modebar-btn {
    color: #2d3748 !important;
    background-color: transparent !important;
}

.js-plotly-plot .modebar-btn:hover {
    background-color: #f8f9fa !important;
    color: #2d3748 !important;
}

/* Custom Scrollbar for Tables */
.dash-table-container .dash-spreadsheet-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dash-table-container .dash-spreadsheet-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dash-table-container .dash-spreadsheet-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dash-table-container .dash-spreadsheet-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .main-container {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .filter-tile, .document-tile, .chart-container, .data-table-container {
        background-color: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
    }
    
    .dashboard-title {
        color: #ffffff;
    }
    
    .chart-title, .data-table-title {
        color: #ffffff;
    }
}

/* Print Styles */
@media print {
    .filter-tile, .mode-selector {
        display: none;
    }
    
    .chart-container, .data-table-container {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .main-container {
        background-color: white;
        color: black;
    }
}

/* Ensure all KPI text remains visible */
.kpi-card .kpi-value,
.kpi-card:hover .kpi-value {
    color: var(--dark-color) !important;
}

.kpi-card .kpi-label,
.kpi-card:hover .kpi-label {
    color: var(--muted-color) !important;
}

/* Table hover states */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table tbody tr:hover {
    background-color: #f8f9fa !important;
    color: var(--dark-color) !important;
}

/* Modern Filter Cards */
.modern-filter-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f7;
    transition: all 0.3s ease;
    min-height: 140px;  /* Changed from fixed height to min-height */
    position: relative;
    overflow: visible !important;  /* Force overflow visible */
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out;
    z-index: 10;  /* Add z-index to ensure dropdowns appear above other elements */
}

.modern-filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7, #00b894, #fdcb6e, #e84393);
}

.modern-filter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.filter-card-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

/* Modern Filter Card Content Area */
.modern-filter-card > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    overflow: visible;
}

/* Prevent filter cards from stretching too much */
.modern-filter-card .modern-radio-group,
.modern-filter-card .modern-dropdown,
.modern-filter-card .modern-slider {
    flex-shrink: 0;
    max-height: 60px;
    overflow: visible;
}

/* Icon styling in filter card headers */
.modern-filter-card .d-flex.align-items-center {
    flex-shrink: 0;
    margin-bottom: 1rem;
    height: 30px;
}

/* Ensure dropdowns have proper spacing */
.modern-filter-card .modern-dropdown {
    margin-top: auto;
}

/* Text content in filter cards */
.modern-filter-card .text-muted {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-top: 0.5rem;
}

/* Modern Dropdown Styling */
.modern-dropdown .Select-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    min-height: 42px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.modern-dropdown .Select-control:hover {
    border-color: #6c5ce7;
    background: white;
}

.modern-dropdown .Select-control.is-focused {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    background: white;
}

.modern-dropdown .Select-value-label {
    font-weight: 500;
    color: #2c3e50;
}

.modern-dropdown .Select-placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Ensure dropdown menus are visible and have proper z-index */
.modern-dropdown .Select-menu-outer {
    z-index: 1050 !important;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    position: absolute !important;
}

/* Dash Dropdown specific fixes for visibility */
.modern-dropdown .Select__menu {
    z-index: 9999 !important;
    position: absolute !important;
}

.modern-dropdown .Select__menu-list {
    max-height: 200px !important;
    overflow-y: auto !important;
}

/* Ensure the dropdown container allows overflow */
.modern-filter-card .modern-dropdown {
    position: relative;
    overflow: visible !important;
}

/* Parent container should not clip dropdowns */
.row > div[class*="col"] {
    overflow: visible !important;
}

.modern-dropdown .Select-menu {
    max-height: 180px;
    overflow-y: auto;
    z-index: 1051 !important;
}

.modern-dropdown .Select-option {
    padding: 8px 12px;
    transition: background-color 0.2s ease;
    cursor: pointer !important;
}

.modern-dropdown .Select-option:hover {
    background-color: #f8f9fa;
}

.modern-dropdown .Select-option.is-focused {
    background-color: #e3f2fd;
    color: #2c3e50;
}

.modern-dropdown .Select-option.is-selected {
    background-color: #6c5ce7;
    color: white;
}

/* Ensure dropdown controls are clickable */
.modern-dropdown .Select-control {
    cursor: pointer !important;
    position: relative;
    z-index: 100;
}

.modern-dropdown .Select-arrow-zone {
    cursor: pointer !important;
}

/* Modern Radio Group Styling */
.modern-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modern-radio-group .form-check {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.modern-radio-group .form-check:hover {
    background: #e9ecef;
    border-color: #6c5ce7;
}

.modern-radio-group .form-check-input:checked + .form-check-label {
    color: #6c5ce7;
    font-weight: 600;
}

.modern-radio-group .form-check-input:checked {
    background-color: #6c5ce7;
    border-color: #6c5ce7;
}

.modern-radio-group .form-check-input {
    margin-top: 0.2rem;
}

.modern-radio-group .form-check-label {
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Modern Slider Styling */
.modern-slider {
    margin: 1rem 0;
}

.modern-slider .rc-slider-track {
    background: linear-gradient(90deg, #00b894, #6c5ce7);
    height: 6px;
}

.modern-slider .rc-slider-rail {
    background: #e9ecef;
    height: 6px;
}

.modern-slider .rc-slider-handle {
    border: 3px solid #6c5ce7;
    background: white;
    width: 20px;
    height: 20px;
    margin-top: -7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Animation for card loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Container - Glass Effect */
.hero-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6c5ce7, #00b894, #fdcb6e, #e84393);
}

/* Hero Logo */
.hero-logo-container {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.hero-logo {
    height: 60px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.hero-logo:hover {
    opacity: 1;
}

/* Logout Button */
.logout-button {
    background: #dc3545 !important;
    border: none !important;
    color: white !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.logout-button:hover {
    background: #c82333 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.logout-button:active {
    transform: translateY(0);
}

/* Hero Title Section */
.hero-title-section {
    text-align: left;
    margin-bottom: 2rem;
    margin-right: 120px; /* Space for logo */
}

.hero-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 3rem;
    margin: 0 0 1rem 0;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    color: #6c757d;
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
}

/* Hero Section Titles */
.hero-section-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

/* Hero Filters Section */
.hero-filters-section {
    margin-bottom: 2rem;
}

/* Hero Document Section */
.hero-document-section {
    text-align: left;
}

.hero-document-info {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(222, 226, 230, 0.6);
    text-align: left;
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
    .hero-container {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-logo-container {
        top: 1rem;
        right: 1.5rem;
    }
    
    .hero-logo {
        height: 45px;
    }
    
    .hero-title-section {
        margin-right: 80px; /* Reduced space for smaller logo */
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-section-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-filters-section {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-logo-container {
        top: 0.75rem;
        right: 1rem;
    }
    
    .hero-logo {
        height: 35px;
    }
    
    .hero-title-section {
        margin-right: 60px; /* Further reduced space */
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section-title {
        font-size: 1rem;
    }
}

/* ===== LOGIN PAGE STYLES ===== */

.login-page-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: white;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-split-container {
    display: flex;
    width: 100%;
    height: auto;
    max-width: 900px;
    max-height: 600px;
    margin: 0 auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    overflow: hidden;
    background: white;
    position: relative;
}

.login-left-panel {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 3rem;
    position: relative;
    min-height: 500px;
}

.login-right-panel {
    flex: 1;
    position: relative;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    overflow: hidden;
    min-height: 500px;
}

.login-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/login_photo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Video background for login page */
.login-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    /* Optimize rendering performance */
    will-change: transform;
    /* Prevent video controls from showing */
    pointer-events: none;
    /* Smooth fade-in when video loads */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Show video when loaded */
.login-background-video[autoplay] {
    opacity: 1;
}

.login-logo-container {
    margin-bottom: 2rem;
}

.login-logo {
    height: 40px;
    width: auto;
}

.login-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: left;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-field {
    position: relative;
}

.login-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: var(--dark-color);
}

.login-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.login-input::placeholder {
    color: #9ca3af;
}

.login-input-icon {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    z-index: 2;
    font-size: 1rem;
}

.login-password-toggle {
    position: absolute;
    right: 1rem;
    color: #9ca3af;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
}

.login-password-toggle:hover {
    color: var(--primary-color);
}

.login-submit-button {
    background: #a9c081;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(169, 192, 129, 0.3);
    margin-top: 0.5rem;
}

.login-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(169, 192, 129, 0.4);
    background: #9ab470;
}

.login-submit-button:active {
    transform: translateY(0);
}

.login-error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    border: 1px solid #fecaca;
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

/* Responsive Design for Login */
@media (max-width: 768px) {
    .login-page-container {
        padding: 1rem;
    }
    
    .login-split-container {
        flex-direction: column;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
        border-radius: 16px;
    }
    
    .login-right-panel {
        display: none;
    }
    
    .login-left-panel {
        min-height: auto;
        padding: 2rem;
    }
    
    .login-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .login-form-container {
        justify-content: flex-start;
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .login-page-container {
        padding: 0.5rem;
    }
    
    .login-left-panel {
        padding: 1.5rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .login-input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }
    
    .login-input-icon {
        left: 0.875rem;
    }
}

/* Animation for login page */
@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-split-container {
    animation: loginFadeIn 0.5s ease-out;
}

/* Hide dashboard when login is active */
.login-active .main-container {
    display: none !important;
}

/* ===== DROPDOWN FIXES FOR CROSS-BROWSER COMPATIBILITY ===== */

/* Force explicit background and text colors for dropdowns */
.modern-dropdown .Select__control {
    background-color: #ffffff !important;
    color: #333333 !important;
}

.modern-dropdown .Select__single-value {
    color: #333333 !important;
}

.modern-dropdown .Select__placeholder {
    color: #666666 !important;
}

/* Webkit-specific fixes for Safari */
.modern-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Force light theme for Dash components */
.dash-dropdown {
    background-color: #ffffff !important;
    color: #333333 !important;
}

.Select-menu-outer {
    background-color: #ffffff !important;
}

/* CSS reset for form elements */
input, select, textarea {
    background-color: #ffffff;
    color: #333333;
}

/* Disable dark mode interference */
@media (prefers-color-scheme: dark) {
    .modern-dropdown,
    .dash-dropdown,
    .modern-dropdown .Select-control,
    .modern-dropdown .Select__control {
        background-color: #ffffff !important;
        color: #333333 !important;
    }
    
    .modern-dropdown .Select__single-value,
    .modern-dropdown .Select-value-label {
        color: #333333 !important;
    }
    
    .modern-dropdown .Select__placeholder,
    .modern-dropdown .Select-placeholder {
        color: #666666 !important;
    }
}

/* Additional fixes for Dash dropdowns */
.Select-control {
    background-color: #ffffff !important;
    color: #333333 !important;
}

.Select-value {
    color: #333333 !important;
}

.Select-value-label {
    color: #333333 !important;
}

.Select-placeholder {
    color: #666666 !important;
}

/* Ensure dropdown options are visible */
.Select-option {
    background-color: #ffffff !important;
    color: #333333 !important;
}

.Select-option.is-focused {
    background-color: #e3f2fd !important;
    color: #333333 !important;
}

.Select-option.is-selected {
    background-color: #6c5ce7 !important;
    color: #ffffff !important;
}

/* ===== HEADER MENU STYLES (MATCHING CSRD PIPELINE UI) ===== */

.header-link {
    transition: all 0.3s ease;
}

.header-link:hover {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    text-decoration: none;
}

/* ===== FOOTER STYLES (MATCHING CSRD PIPELINE UI) ===== */

footer {
    background-color: white !important;
    border-top: 1px solid #e5e7eb !important;
    width: 100% !important;
    position: relative !important;
    margin-top: auto !important;
}

/* Ensure proper page layout */
#react-entry-point, #_dash-app-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main container should grow but not overflow */
.main-container {
    flex: 1 0 auto;
    overflow-x: hidden;
    padding-bottom: 2rem;
}

/* Footer container matches CSRD UI */
footer > div {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 1rem;
}

/* Responsive footer padding to match CSRD UI */
@media (min-width: 640px) {
    footer > div {
        padding: 1.5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    footer > div {
        padding: 1.5rem 2rem;
    }
}

/* Footer text styles */
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-gray-500 {
    color: #6b7280;
}

.text-primary-600 {
    color: #2563eb;
}

/* ===== SETTINGS PAGE STYLES (TAILWIND-LIKE) ===== */

/* Input field styling to match CSRD UI */
input[type="text"],
input[type="password"],
input[type="email"] {
    border: 1px solid #d1d5db !important;
    background-color: #ffffff !important;
    color: #111827 !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder {
    color: #9ca3af !important;
}

/* Tailwind Utility Classes */
.min-h-screen {
    min-height: 100vh;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-white {
    background-color: #ffffff;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-900 {
    color: #111827;
}

.text-blue-400 {
    color: #60a5fa;
}

.text-blue-700 {
    color: #1d4ed8;
}

.text-blue-800 {
    color: #1e40af;
}

.text-green-400 {
    color: #4ade80;
}

.text-green-800 {
    color: #166534;
}

.text-red-400 {
    color: #f87171;
}

.text-red-800 {
    color: #991b1b;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-blue-200 {
    border-color: #bfdbfe;
}

.border-green-200 {
    border-color: #bbf7d0;
}

.border-red-200 {
    border-color: #fecaca;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Layout Classes */
.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.my-6 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Grid System */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

.space-y-1 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.25rem;
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.75rem;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1rem;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1.5rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

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

/* Typography */
.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

/* Form Elements */
.block {
    display: block;
}

.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.h-10 {
    height: 2.5rem;
}

.h-16 {
    height: 4rem;
}

.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-transparent {
    border-color: transparent;
}

.focus\:ring-blue-500:focus {
    --ring-color: #3b82f6;
}

.focus\:border-blue-500:focus {
    border-color: #3b82f6;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.focus\:ring-offset-2:focus {
    --ring-offset-width: 2px;
}

/* Button Gradient */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--gradient-from-color), var(--gradient-to-color));
}

.from-blue-600 {
    --gradient-from-color: #2563eb;
}

.to-indigo-600 {
    --gradient-to-color: #4f46e5;
}

.hover\:from-blue-700:hover {
    --gradient-from-color: #1d4ed8;
}

.hover\:to-indigo-700:hover {
    --gradient-to-color: #4338ca;
}

.hover\:bg-blue-100:hover {
    background-color: #dbeafe;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.hover\:text-gray-700:hover {
    color: #374151;
}

/* Transition */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Group hover */
.group:hover .hover\:bg-blue-100 {
    background-color: #dbeafe;
}

/* Badge/Pill Styles */
.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-2\.5 {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

.py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Responsive breakpoints */
@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .sm\:text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }
    
    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===== ADMIN BUTTON OPACITY FIXES ===== */

/* Fix greyed out buttons - force full opacity */
#update-access-btn,
#remove-access-btn,
#create-user-btn,
button.bg-gradient-to-r {
    opacity: 1 !important;
}

/* Ensure buttons maintain opacity on all states */
#update-access-btn:not(:disabled),
#remove-access-btn:not(:disabled),
#create-user-btn:not(:disabled) {
    opacity: 1 !important;
    cursor: pointer !important;
}

/* Specific styling for Remove All Access button - make it red */
#remove-access-btn {
    background: linear-gradient(to right, #dc2626, #b91c1c) !important;
    opacity: 1 !important;
    color: white !important;
}

#remove-access-btn:hover {
    background: linear-gradient(to right, #b91c1c, #991b1b) !important;
    transform: translateY(-1px);
}

/* Update Access button - blue gradient */
#update-access-btn {
    background: linear-gradient(to right, #2563eb, #4f46e5) !important;
    opacity: 1 !important;
    color: white !important;
}

#update-access-btn:hover {
    background: linear-gradient(to right, #1d4ed8, #4338ca) !important;
    transform: translateY(-1px);
}

/* Create User button - green gradient */
#create-user-btn {
    background: linear-gradient(to right, #16a34a, #15803d) !important;
    opacity: 1 !important;
    color: white !important;
}

#create-user-btn:hover {
    background: linear-gradient(to right, #15803d, #166534) !important;
    transform: translateY(-1px);
}

/* Disabled state should be visually distinct */
#update-access-btn:disabled,
#remove-access-btn:disabled,
#create-user-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ===== ROLE PILL STYLING FIXES ===== */

/* Admin role pill - purple theme to distinguish from status pills */
.bg-purple-100 {
    background-color: #f3e8ff !important;
}

.text-purple-800 {
    color: #6b21a8 !important;
}

.border-purple-200 {
    border-color: #e9d5ff !important;
}

/* User role pill - neutral gray theme */
.bg-gray-100 {
    background-color: #f3f4f6 !important;
}

.text-gray-800 {
    color: #1f2937 !important;
}

.border-gray-200 {
    border-color: #e5e7eb !important;
}

/* Ensure role pills have consistent styling */
span[class*="rounded-full"][class*="px-2"] {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1rem;
    padding: 0.125rem 0.625rem;
    border-width: 1px;
    border-style: solid;
}

/* Status pills - ensure they're visually distinct from role pills */
/* Active status - green */
.bg-green-100 {
    background-color: #dcfce7 !important;
}

.text-green-800 {
    color: #166534 !important;
}

.border-green-200 {
    border-color: #bbf7d0 !important;
}

/* Inactive status - red */
.bg-red-100 {
    background-color: #fee2e2 !important;
}

.text-red-800 {
    color: #991b1b !important;
}

.border-red-200 {
    border-color: #fecaca !important;
} 
/* DROPDOWN VISIBILITY FIXES - Added to fix dropdown menu being hidden */
.modern-filter-card {
    overflow: visible !important;
    position: relative;
}

.modern-dropdown {
    position: relative !important;
}

.modern-dropdown .Select-menu-outer,
.modern-dropdown .Select__menu {
    z-index: 99999 !important;
    position: absolute !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* Ensure parent containers don't clip dropdowns */
.filter-section,
.filter-card,
.card-body,
.modern-filter-card {
    overflow: visible !important;
}

/* Fix for React Select v2 components */
.Select__menu-list {
    max-height: 300px !important;
    overflow-y: auto !important;
}

.Select__menu {
    z-index: 99999 !important;
}

/* Ensure dropdown appears above other elements */
.Select.is-open .Select__menu,
.Select--is-open .Select__menu {
    z-index: 99999 !important;
}
