/* vertical.css */

.vertical-layout {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
    padding-bottom: 40px;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xs);
}

.form-group label {
    font-size: var(--fs-sm);
    color: var(--text-dim);
}

.card-header .toolbar {
    display: flex;
    gap: var(--gap-sm);
    flex-wrap: wrap;
    margin-top: var(--gap-sm);
}

.canvas-container-wrapper {
    background: #ffffff; /* Canvas should be white for drawing */
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: var(--gap-sm);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

/* Standings */
.standing-card {
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--gap);
    margin-bottom: var(--gap);
}

.standing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--gap);
    padding-bottom: var(--gap-sm);
    border-bottom: 1px solid var(--border);
}

.standing-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text);
}

.distance-input {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}
.distance-input input {
    width: 100px;
}

/* Measurements Table */
.measurements-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    background: var(--bg-primary);
}

.measurements-table th, .measurements-table td {
    border: 1px solid var(--border);
    padding: 6px;
    text-align: center;
}

.measurements-table th {
    background: var(--bg-secondary);
    color: var(--text-dim);
    font-weight: 500;
}

.measurements-table input[type="number"] {
    width: 60px;
    padding: 4px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    border-radius: var(--radius-sm);
    text-align: center;
}

.measurements-table input[type="number"]:focus {
    border-color: var(--accent);
    outline: none;
}

.belt-label {
    text-align: left !important;
    padding-left: 10px !important;
}

.calc-cell {
    color: var(--info);
    font-family: var(--font-mono);
}

.chart-section {
    min-height: 500px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--gap-lg);
}


.chart-wrapper {
    background: #ffffff; /* White background for charts to export nicely */
    border-radius: var(--radius);
    padding: var(--gap);
}

/* Spinner and Loading states */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

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

