.row {
    height: 100vh;
    overflow: hidden;
}

.col-12.col-md-3.col-lg-2 {
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.col-12.col-md-9.col-lg-10 {
    height: 100vh;
    overflow-y: auto;
}

.loading {
    display: none;
}

.loading.active {
    display: block;
}

.spinner {
    border: 4px solid rgba(74, 158, 255, 0.2);
    border-top: 4px solid #4a9eff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    display: none;
}

.error.active {
    display: block;
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 0, 0, 0.4);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.results-container {
    display: none;
}

.results-container.active {
    display: block;
}

.summary {
    background: rgba(74, 158, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary h3 {
    color: #4a9eff;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.summary p {
    margin: 5px 0;
    line-height: 1.6;
}

.visualization-container {
    display: none;
    margin-bottom: 20px;
    text-align: center;
}

.visualization-container.active {
    display: block;
}

#vizImage {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.table-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table thead {
    position: sticky;
    top: 0;
    background: rgba(74, 158, 255, 0.2);
}

.results-table th {
    padding: 10px;
    text-align: left;
    color: #4a9eff;
    font-weight: bold;
    border-bottom: 2px solid rgba(74, 158, 255, 0.3);
}

.results-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.results-table tbody {
    display: block;
    max-height: 500px;
    overflow-y: auto;
}

.results-table thead,
.results-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.status-visible { color: #4caf50; font-weight: 500; }
.status-low { color: #ff9800; font-weight: 500; }
.status-below { color: #f44336; font-weight: 500; }

.comet-badge {
    background: linear-gradient(135deg, #1a3a6b, #2d6a9f);
    border: 1px solid rgba(74, 158, 255, 0.4);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 12px;
    text-align: center;
}

.comet-badge .comet-name {
    color: #4a9eff;
    font-size: 0.95em;
    font-weight: bold;
}

.comet-badge .comet-sub {
    color: #aaa;
    font-size: 0.78em;
    margin-top: 2px;
}