/* static/css/adcs_pid_control.css */

/* Overall container */
.pid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 5px;
    height: calc(100vh - 150px); /* Adjust if header height changes */
}

/* Left control panel */
.control-panel {
    flex: 0 0 280px;
    background: #f5f5f5;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.control-panel h2 {
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 12px;
    column-gap: 12px;
}

.form-grid label {
    align-self: center;
}

.form-grid input {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.button-group {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-group button {
    padding: 10px;
    font-size: 1rem;
    border: none;
    background: #007acc;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.button-group button:hover {
    background: #005fa3;
}

.equations-card {
    margin-top: 16px;
    border-top: 1px solid #ddd;
    width: auto;
}


/* Right panel */
.right-panel {
    flex: 1 1 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Common card style */
.card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Top-row cards */
.viz-card {
    flex: auto;
}

/* Plot cards container */
.plot-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.plot-card {
    flex: 1 1 calc(25% - 15px);
}

/* Headings inside cards */
.card h3 {
    margin-top: 0;
}

.card h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .viz-card,
    .plot-card {
        flex: 1 1 100%;
    }
}
