/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --accent: #ed8936;
    --background: #f7fafc;
    --card-bg: #ffffff;
    --text: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --success: #38a169;
    --warning: #d69e2e;
    --danger: #e53e3e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 2rem;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header .subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
}

header .work-in-progress {
    opacity: 0.8;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

header .work-in-progress a {
    color: inherit;
    text-decoration: underline;
}

header .work-in-progress a:hover {
    opacity: 0.8;
}

header .contact-line {
    opacity: 0.85;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

header .contact-line a {
    color: #fbd38d;
    text-decoration: none;
}

header .contact-line a:hover {
    text-decoration: underline;
}

.about-btn {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.about-btn:hover {
    background: rgba(255,255,255,0.3);
}

header {
    position: relative;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    margin: 1rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--text);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.modal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

.modal-content p {
    margin-bottom: 0.75rem;
}

.modal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content li {
    margin-bottom: 0.25rem;
}

.modal-content code {
    background: #f1f5f9;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.modal-content pre {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.85rem;
}

/* Main Layout */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Search Section */
#search-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.search-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

#search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

#search-input:focus {
    border-color: var(--primary);
}

#result-count {
    color: var(--text-light);
    white-space: nowrap;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters select {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

/* Statistics Section */
#stats-section {
    margin-bottom: 1rem;
}

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

.stat-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

#histograms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.histogram {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: 200px;
}

/* Content Section */
#content-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Planet Grid */
#planet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.planet-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--primary);
}

.planet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.planet-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.planet-card h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary);
}

.analysis-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.analysis-badge.analyzed {
    background: #c6f6d5;
    color: #22543d;
}

.analysis-badge.pending {
    background: #e2e8f0;
    color: #718096;
}

.planet-card.pending {
    border-left-color: #a0aec0;
    opacity: 0.85;
}

.planet-card.analyzed {
    border-left-color: var(--success);
}

.planet-card .tic-id {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.planet-card .meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.planet-card .meta span {
    color: var(--text-light);
}

.planet-card .meta strong {
    color: var(--text);
}

.disposition-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.disposition-badge.KP { background: #c6f6d5; color: #22543d; }
.disposition-badge.CP { background: #bee3f8; color: #2a4365; }
.disposition-badge.PC { background: #feebc8; color: #744210; }
.disposition-badge.EB { background: #fed7d7; color: #742a2a; }
.disposition-badge.FP { background: #e2e8f0; color: #4a5568; }

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Detail Panel */
#detail-panel {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

#detail-panel.hidden {
    display: none;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: var(--border);
}

#detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

#detail-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
}

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

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-section table {
    width: 100%;
    font-size: 0.9rem;
}

.detail-section table td {
    padding: 0.4rem 0;
}

.detail-section table td:first-child {
    color: var(--text-light);
}

.detail-section table td:last-child {
    text-align: right;
    font-weight: 500;
}

/* Stacked Lightcurve Chart */
#stacked-lightcurve-chart {
    width: 100%;
    height: 350px;
}

/* O-C Chart */
#oc-chart {
    width: 100%;
    height: 350px;
}

/* Transit Times Table */
.table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 4px;
}

#transits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

#transits-table th,
#transits-table td {
    padding: 0.5rem 0.75rem;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

#transits-table th {
    background: var(--background);
    font-weight: 600;
    position: sticky;
    top: 0;
}

#transits-table td:first-child,
#transits-table th:first-child {
    text-align: left;
}

#transits-table tbody tr:hover {
    background: var(--background);
}

.download-btn {
    padding: 0.4rem 0.8rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.download-btn:hover {
    background: var(--primary-light);
}

/* O-C Comparison Layout */
.oc-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.oc-model {
    background: var(--background);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.oc-model h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.model-comparison-result {
    background: linear-gradient(135deg, #ebf8ff, #e6fffa);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #81e6d9;
}

.model-comparison-result h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.model-comparison-result p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Derived Properties Table */
#derived-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

#derived-table th,
#derived-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

#derived-table th {
    background: var(--background);
    font-weight: 600;
    color: var(--primary);
}

#derived-table td:nth-child(2),
#derived-table td:nth-child(3),
#derived-table td:nth-child(4) {
    text-align: right;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
}

/* Parameters Table */
#params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

#params-table th,
#params-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

#params-table th {
    background: var(--background);
    font-weight: 600;
    color: var(--primary);
}

#params-table code {
    background: #edf2f7;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
}

/* Model Info */
#model-info {
    background: var(--background);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

#model-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Periodic Analysis */
#periodic-info {
    background: var(--background);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

#periodic-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

#periodic-peak-table {
    width: 100%;
    margin-bottom: 1rem;
}

#periodogram-chart {
    width: 100%;
    height: 300px;
    margin-top: 1rem;
}

/* Section Headers */
.detail-section h3 {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.detail-section h4 {
    font-size: 0.9rem;
    color: var(--text);
    margin: 1rem 0 0.5rem 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

/* Content Wrapper with Sidebar */
#content-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

#main-content {
    flex: 1;
    min-width: 0;
}

/* Navigation Sidebar */
#nav-sidebar {
    width: 280px;
    min-width: 280px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 8px 8px 0 0;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1rem;
}

.sidebar-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Tree Toggle Buttons */
.tree-toggle {
    display: flex;
    padding: 0.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--background);
}

.tree-toggle button {
    flex: 1;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s;
}

.tree-toggle button:hover {
    background: var(--background);
}

.tree-toggle button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Tree Navigation */
#nav-tree {
    padding: 0.5rem 0;
}

.tree-node {
    user-select: none;
}

.tree-node-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.tree-node-header:hover {
    background: var(--background);
}

.tree-node-header.selected {
    background: #ebf8ff;
    border-left-color: var(--primary);
}

.tree-expand-icon {
    width: 16px;
    margin-right: 0.5rem;
    font-size: 0.65rem;
    color: var(--text-light);
    text-align: center;
}

.tree-node-label {
    flex: 1;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-node-count {
    font-size: 0.7rem;
    color: var(--text-light);
    background: var(--background);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    margin-left: 0.5rem;
}

.tree-children {
    display: none;
    padding-left: 1rem;
}

.tree-node.expanded > .tree-children {
    display: block;
}

/* Highlight badges */
.highlight-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    margin-left: 0.3rem;
    font-weight: 600;
}

.highlight-badge.ttv {
    background: #fed7e2;
    color: #97266d;
}

.highlight-badge.period-change {
    background: #feebc8;
    color: #744210;
}

.highlight-badge.precision {
    background: #c6f6d5;
    color: #22543d;
}

.highlight-badge.earth-like {
    background: #bee3f8;
    color: #2a4365;
}

.highlight-badge.variable {
    background: #e9d8fd;
    color: #553c9a;
}

.highlight-badge.precession {
    background: #fefcbf;
    color: #744210;
}

/* Highlights Section */
.highlights-section {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.highlights-section h4 {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.highlight-item {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.5rem;
    margin: 0.25rem 0;
    background: var(--background);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.15s;
}

.highlight-item:hover {
    background: #ebf8ff;
}

.highlight-item .name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.highlight-item .value {
    font-size: 0.7rem;
    color: var(--text-light);
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Responsive */
@media (max-width: 1024px) {
    #nav-sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        height: 100vh;
        max-height: 100vh;
        z-index: 1000;
        border-radius: 0;
        transition: left 0.3s ease;
    }

    #nav-sidebar.open {
        left: 0;
    }

    .sidebar-toggle-btn {
        display: block;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    #content-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .filters {
        flex-direction: column;
    }

    .filters select {
        width: 100%;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    #stacked-lightcurve-chart {
        height: 250px;
    }

    #oc-chart {
        height: 250px;
    }
}

/* ============================================
   LOGIN SCREEN STYLES
   ============================================ */

#login-screen {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.login-container .work-in-progress {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.login-container .work-in-progress a {
    color: #94a3b8;
    text-decoration: underline;
}

.login-container .work-in-progress a:hover {
    color: #cbd5e1;
}

#login-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #64748b;
    pointer-events: none;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.form-group input::placeholder {
    color: #64748b;
}

.form-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.login-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.login-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

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

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.login-footer {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 1.5rem;
}

/* Model Toggle Styles */
.model-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: var(--background);
    padding: 0.25rem;
    border-radius: 8px;
    width: fit-content;
}

.model-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s;
}

.model-btn:hover {
    color: var(--primary);
}

.model-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.model-info-panel {
    transition: opacity 0.2s;
}

.model-info-panel.hidden {
    display: none;
}

.info-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    color: #92400e;
    font-size: 0.9rem;
}

.info-box.hidden {
    display: none;
}

#ma-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

#ma-results-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
}

#ma-results-table td:first-child {
    font-weight: 500;
    color: var(--text-light);
    width: 40%;
}

/* Mandel-Agol badge for planets with both analyses */
.ma-badge {
    display: inline-block;
    background: #059669;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}
