/* Dashboard Specific Styles */

/* Status Section */
.status-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--nebula-purple);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-card {
    background: rgba(75, 85, 99, 0.3);
    border: 1px solid rgba(107, 70, 193, 0.3);
    border-radius: 8px;
    padding: 1rem;
    transition: var(--transition-fast);
}

.status-card:hover {
    border-color: var(--nebula-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.3);
}

.status-title {
    color: var(--star-white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
    transition: var(--transition-fast);
}

.status-dot.status-success {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-dot.status-warning {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.status-dot.status-error {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.status-text {
    color: var(--star-white);
    font-size: 0.8rem;
    text-transform: capitalize;
}

/* Data Visualization Section */
.data-visualization-section {
    margin-bottom: 2rem;
}

.viz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(107, 70, 193, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
}

.info-card:hover {
    border-color: var(--nebula-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.3);
}

.info-title {
    color: var(--cosmic-gold);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-content {
    color: var(--star-white);
    line-height: 1.6;
}

.stat-item, .arch-item, .perf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(107, 70, 193, 0.2);
}

.stat-item:last-child, .arch-item:last-child, .perf-item:last-child {
    border-bottom: none;
}

.stat-label, .arch-label, .perf-label {
    color: var(--star-gray);
    font-size: 0.9rem;
}

.stat-value, .arch-value, .perf-value {
    color: var(--star-white);
    font-weight: 600;
    font-size: 0.9rem;
}

.feature-group {
    margin-bottom: 1rem;
}

.feature-group h4 {
    color: var(--cosmic-gold);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.feature-list {
    color: var(--star-gray);
    font-size: 0.8rem;
    line-height: 1.4;
}

.error-text {
    color: #ef4444;
    font-style: italic;
}

/* Result message styles */
.result-message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.result-message.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.result-message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

/* Enhanced Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(17, 24, 39, 0.95);
    border: 2px solid var(--nebula-purple);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    max-width: 95vw;
    max-height: 95vh;
    width: 1000px;
    min-height: 600px;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(107, 70, 193, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(107, 70, 193, 0.1);
    border-radius: 14px 14px 0 0;
}

.modal-title {
    color: var(--cosmic-gold);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    color: var(--star-gray);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
}

.modal-close:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    min-height: 400px;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(107, 70, 193, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--nebula-purple);
    border-radius: 4px;
}

.modal-description {
    color: var(--star-gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Enhanced Dropdown Column Matching Styles */
.column-mapping-container {
    padding: 0.5rem;
}

.mapping-row {
    display: grid;
    grid-template-columns: 120px 1fr 200px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(107, 70, 193, 0.2);
}

.mapping-row:last-child {
    border-bottom: none;
}

.field-label {
    font-weight: 600;
    color: var(--star-white);
    font-size: 0.9rem;
    min-width: 100px;
    transition: color 0.2s ease;
}

.field-label.required::after {
    content: " *";
    color: #ef4444;
    font-weight: bold;
}

.column-select {
    background: rgba(17, 24, 39, 0.8);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: 8px;
    color: var(--star-white);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 200px;
    position: relative;
}

.column-select:focus {
    outline: none;
    border-color: var(--nebula-purple);
}

.column-select:hover {
    border-color: var(--nebula-purple);
}

.column-select.mapped {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.column-select.auto-matched {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    position: relative;
}

.column-select.auto-matched::after {
    content: "🤖";
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
}

.field-description {
    font-size: 0.8rem;
    color: var(--star-gray);
    font-style: italic;
    line-height: 1.3;
    transition: color 0.2s ease;
}

/* Matching Summary Styles */
.matching-summary {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(107, 70, 193, 0.3);
    background: rgba(17, 24, 39, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

.matching-summary.success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.matching-summary.warning {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.summary-success {
    color: #10b981;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-success::before {
    content: "✨";
}

.summary-warning {
    color: #f59e0b;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-optional {
    color: var(--star-gray);
    margin-top: 0.5rem;
}

.summary-progress {
    color: var(--star-gray);
    font-weight: 500;
}

.summary-ready {
    color: var(--cosmic-gold);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Modal Footer Enhancements */
.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid rgba(107, 70, 193, 0.3);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(107, 70, 193, 0.05);
    border-radius: 0 0 14px 14px;
}

.modal-footer .btn {
    min-width: 120px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.modal-footer .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-footer .btn:not(:disabled):hover {
    background-color: rgba(107, 70, 193, 0.8);
}

.modal-footer .btn-primary:not(:disabled) {
    background: linear-gradient(135deg, var(--nebula-purple), #8b5cf6);
    border-color: var(--nebula-purple);
}

.modal-footer .btn-primary:not(:disabled):hover {
    background: linear-gradient(135deg, #8b5cf6, var(--nebula-purple));
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.4);
}

/* Table input styles */
.table-input {
    width: 100%;
    padding: 0.3rem 0.5rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(107, 70, 193, 0.3);
    border-radius: 4px;
    color: var(--star-white);
    font-size: 0.8rem;
}

.table-input:focus {
    outline: none;
    border-color: var(--nebula-purple);
    box-shadow: 0 0 5px rgba(107, 70, 193, 0.3);
}

/* Button enhancements */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.8);
    border: 1px solid #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #ef4444;
    transform: translateY(-1px);
}

/* Loading spinner */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--star-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--nebula-purple);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--star-white);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.dropdown-link:hover {
    background: rgba(107, 70, 193, 0.2);
    color: var(--stellar-blue);
}

/* Main Dashboard Layout */
.dashboard-main {
    min-height: 100vh;
    padding-top: 90px;
    background: transparent;
}

/* Dashboard Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.dashboard-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 900;
    background: var(--nebula-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.dashboard-subtitle {
    font-size: 1.2rem;
    color: var(--star-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* Charts Section */
.charts-section {
    margin-bottom: 4rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.chart-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.chart-card:hover {
    border-color: var(--nebula-purple);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--star-white);
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-filter {
    background: rgba(107, 70, 193, 0.2);
    border: 1px solid var(--nebula-purple);
    border-radius: 6px;
    padding: 0.5rem;
    color: var(--star-white);
    font-size: 0.9rem;
}

.chart-btn {
    background: rgba(107, 70, 193, 0.2);
    border: 1px solid var(--nebula-purple);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: var(--star-white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chart-btn:hover,
.chart-btn.active {
    background: var(--nebula-purple);
    color: var(--star-white);
}

.chart-container {
    height: 300px;
}

.chart-container canvas {
    max-height: 100%;
}

/* Prediction Section */
.prediction-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-warning {
    background: var(--mars-red);
    color: var(--star-white);
    border: 1px solid var(--mars-red);
}

.btn-warning:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--star-white);
    border: 1px solid #10b981;
    margin-left: 0.5rem;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.file-upload-container {
    position: relative;
}

/* Table Styles */
.table-container {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    backdrop-filter: blur(10px);
}

.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(107, 70, 193, 0.1);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--nebula-purple);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--stellar-blue);
}

.prediction-table {
    width: 100%;
    min-width: 1700px;
    border-collapse: collapse;
    color: var(--star-white);
    table-layout: fixed;
}

.prediction-table th {
    background: rgba(107, 70, 193, 0.3);
    padding: 1rem;
    text-align: left;
    font-family: var(--font-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--nebula-purple);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Specific column widths */
.checkbox-column { width: 60px; min-width: 60px; text-align: center; }
.ra-deg-column { width: 120px; min-width: 120px; }
.dec-deg-column { width: 120px; min-width: 120px; }
.mag-column { width: 100px; min-width: 100px; }
.period-days-column { width: 130px; min-width: 130px; }
.duration-hrs-column { width: 130px; min-width: 130px; }
.depth-ppm-column { width: 120px; min-width: 120px; }
.period-err-up-column { width: 140px; min-width: 140px; }
.period-err-low-column { width: 140px; min-width: 140px; }
.duration-err-up-column { width: 140px; min-width: 140px; }
.duration-err-low-column { width: 140px; min-width: 140px; }
.depth-err-up-column { width: 130px; min-width: 130px; }
.depth-err-low-column { width: 130px; min-width: 130px; }
.actions-column { width: 120px; min-width: 120px; text-align: center; }

.prediction-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(107, 70, 193, 0.1);
    vertical-align: middle;
}

.prediction-table tbody tr:hover {
    background: rgba(107, 70, 193, 0.1);
}

.prediction-table input {
    background: transparent;
    border: 1px solid rgba(107, 70, 193, 0.3);
    border-radius: 4px;
    padding: 0.5rem;
    color: var(--star-white);
    font-size: 0.9rem;
    width: 100%;
    min-width: 80px;
}

.prediction-table input:focus {
    outline: none;
    border-color: var(--stellar-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.delete-row-btn {
    background: var(--mars-red);
    border: none;
    border-radius: 4px;
    color: var(--star-white);
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.8rem;
}

.delete-row-btn:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

/* Predict Section Styles */
.predict-section {
    margin-top: 2rem;
    text-align: center;
    padding: 2rem 0;
}

.btn-predict {
    position: relative;
    min-width: 200px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--nebula-purple), var(--stellar-blue));
    border: none;
    border-radius: 8px;
    color: var(--star-white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.btn-predict:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

.btn-predict:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--star-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.predict-results {
    margin-top: 2rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.results-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--stellar-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.results-content {
    color: var(--star-white);
}

.result-item {
    background: rgba(107, 70, 193, 0.1);
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.result-star-id {
    font-weight: 600;
    color: var(--stellar-blue);
}

.result-prediction {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.result-prediction.confirmed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.result-prediction.candidate {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.result-prediction.false-positive {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    border: 1px solid #dc2626;
}

.result-confidence {
    font-size: 0.9rem;
    color: var(--star-dim);
}

.error-message {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    padding: 1rem;
    color: #dc2626;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--nebula-purple);
    border-radius: 12px;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(107, 70, 193, 0.2);
    background: rgba(107, 70, 193, 0.1);
}

.modal-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--star-white);
    margin: 0;
}

.modal-close {
    color: var(--star-dim);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--star-white);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.modal-description {
    color: var(--star-dim);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.matching-container {
    width: 100%;
}

.matching-grid {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 2rem;
    align-items: start;
}

.matching-column h3 {
    font-family: var(--font-primary);
    color: var(--stellar-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.column-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.column-item {
    background: rgba(107, 70, 193, 0.2);
    border: 1px solid var(--nebula-purple);
    border-radius: 6px;
    padding: 0.8rem;
    color: var(--star-white);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    font-size: 0.9rem;
}

.column-item:hover {
    background: rgba(107, 70, 193, 0.4);
    transform: translateX(5px);
}

.column-item.selected {
    background: var(--nebula-purple);
    border-color: var(--stellar-blue);
}

.matching-arrows {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.arrow-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(107, 70, 193, 0.2);
    background: rgba(107, 70, 193, 0.05);
}

/* Touch and Accessibility Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .table-row {
        min-height: 44px;
    }
    
    .checkbox-column input[type="checkbox"] {
        min-height: 20px;
        min-width: 20px;
    }
    
    .upload-area {
        min-height: 200px;
    }
    
    .modal-content {
        min-height: 200px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .chart-container canvas {
        transition: none;
    }
    
    .btn {
        transition: none;
    }
    
    .table-row {
        transition: none;
    }
}

/* Enhanced Responsive Design */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .dashboard-main {
        padding-top: 100px;
    }
    
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .chart-container {
        height: 400px;
    }
    
    .prediction-table {
        min-width: 1900px;
    }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .dashboard-main {
        padding-top: 100px;
    }
    
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .chart-container {
        height: 350px;
    }
    
    .prediction-table {
        min-width: 1800px;
    }
}

/* Tablet Landscape (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .dashboard-main {
        padding-top: 90px;
    }
    
    .dashboard-title {
        font-size: 2.5rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .chart-card {
        padding: 1.5rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .section-controls {
        justify-content: center;
    }
    
    .table-container {
        overflow-x: auto;
        max-height: 500px;
    }
    
    .prediction-table {
        min-width: 1500px;
    }
    
    .matching-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .matching-arrows {
        display: none;
    }
    
    .modal-content {
        width: 90%;
        margin: 2% auto;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

/* Tablet Portrait and Mobile Landscape (576px to 767px) */
@media (max-width: 767px) {
    .dashboard-main {
        padding-top: 80px;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .chart-card {
        padding: 1rem;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .section-controls {
        justify-content: center;
    }
    
    .table-container {
        overflow-x: auto;
        max-height: 400px;
    }
    
    .prediction-table {
        min-width: 1300px;
    }
    
    .matching-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .matching-arrows {
        display: none;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Mobile Portrait (320px to 575px) */
@media (max-width: 575px) {
    .dashboard-main {
        padding-top: 70px;
    }
    
    .dashboard-title {
        font-size: 1.8rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .chart-card {
        padding: 0.8rem;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .section-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .table-container {
        overflow-x: auto;
        max-height: 350px;
    }
    
    .prediction-table {
        min-width: 1200px;
    }
    
    .matching-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .matching-arrows {
        display: none;
    }
    
    .modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .modal-body {
        padding: 0.8rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-primary, .btn-secondary, .btn-warning {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
    .dashboard-main {
        padding-top: 60px;
    }
    
    .dashboard-title {
        font-size: 1.6rem;
    }
    
    .chart-container {
        height: 180px;
    }
    
    .table-container {
        max-height: 300px;
    }
    
    .prediction-table {
        min-width: 1100px;
    }
    
    .modal-content {
        width: 99%;
        margin: 0.5% auto;
    }
    
    .modal-body {
        padding: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
}


