#pipad-calculator {
    max-width: 800px;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#pipad-calculator h3, #pipad-calculator h4, #pipad-calculator h5 {
    color: #333;
    margin-bottom: 15px;
}

.pipad-mode-selection {
    margin-bottom: 20px;
    padding: 15px;
    background: #e8f4f8;
    border-left: 4px solid #0073aa;
    border-radius: 3px;
}

.pipad-mode-selection label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    cursor: pointer;
}

.pipad-mode-selection input[type="radio"] {
    margin-right: 8px;
}

.pipad-mode-section {
    margin-bottom: 20px;
}

.pipad-input-section, #pipad-results {
    margin-bottom: 20px;
}

.pipad-row {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pipad-row label {
    min-width: 200px;
    font-weight: bold;
}

.pipad-row input, .pipad-row select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    min-width: 100px;
}

.pipad-button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.pipad-button:hover {
    background: #005a87;
}

.pipad-button-small {
    background: #0073aa;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 5px;
    transition: background 0.3s;
}

.pipad-button-small:hover {
    background: #005a87;
}

.pipad-circuit-diagram {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.pipad-values table, .pipad-performance table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.pipad-values th, .pipad-values td,
.pipad-performance td {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.pipad-values th {
    background: #f0f0f0;
    font-weight: bold;
}

.pipad-performance td:first-child {
    font-weight: bold;
    background: #f9f9f9;
}

.performance-cell {
    text-align: center;
    font-weight: bold;
    vertical-align: middle;
}

.performance-cell.excellent {
    background: #d4edda;
    color: #155724;
}

.performance-cell.good {
    background: #d1ecf1;
    color: #0c5460;
}

.performance-cell.acceptable {
    background: #fff3cd;
    color: #856404;
}

.performance-cell.poor {
    background: #f8d7da;
    color: #721c24;
}

.pipad-notes {
    margin-top: 20px;
    padding: 15px;
    background: #e8f4f8;
    border-left: 4px solid #0073aa;
    border-radius: 3px;
}

.pipad-notes ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.pipad-notes li {
    margin-bottom: 8px;
    line-height: 1.5;
}

#pipad-resistor-list {
    width: 100%;
    font-family: monospace;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    resize: vertical;
}

.inventory-summary {
    margin: 20px 0;
    padding: 15px;
    background: #f0f8ff;
    border: 1px solid #0073aa;
    border-radius: 5px;
}

#combination-results tr.excellent {
    background: #d4edda;
}

#combination-results tr.good {
    background: #d1ecf1;
}

#combination-results tr.acceptable {
    background: #fff3cd;
}

#combination-results tr.poor {
    background: #f8d7da;
}

@media (max-width: 600px) {
    .pipad-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pipad-row label {
        min-width: auto;
    }
    
    .pipad-mode-selection label {
        font-size: 14px;
    }
}