/* styles.css */
:root {
    --primary: #2563eb;
    --surface: #ffffff;
    --background: #f8fafc;
    --border: #e2e8f0;
    --text: #1e293b;
    --error: #dc2626;
    --success: #16a34a;
    --warning: #f59e0b;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 20px;
    background: var(--background);
    color: var(--text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

select, input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

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

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.result-box {
    background: var(--background);
    padding: 1rem;
    border-radius: 4px;
}

.result-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.25rem;
    color: var(--primary);
}

.board-specs {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

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

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-label {
    font-size: 0.875rem;
    color: var(--text);
    opacity: 0.8;
}

.spec-value {
    font-weight: 500;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.limits-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}

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

.limits-table th {
    background: var(--background);
    font-weight: 600;
}

.status-ok {
    color: var(--success);
}

.status-warning {
    color: var(--warning);
}

.status-error {
    color: var(--error);
}
