body {
    background-color: #1a202c;
    color: #f7fafc;
    font-family: 'Helvetica', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
}

.container {
    background-color: #16418c43;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 10 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 768px;
    width: 100%;
}

h1 {
    font-size: 25px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #219bec;
}

.description {
    font-size: 16px;
    font-style: italic;
    text-align: center;
    color: #8facd3;
    margin-bottom: 20px;
}

p.note {
    font-size: 12px;
    color: #cbd5e0;
    text-align: center;
    margin-bottom: 20px;
}



.resistor-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.resistor-visualizer .resistor-lead {
    width: 40px;
    height: 4px;
    background-color: #a1a1aa;
}

.resistor-visualizer .resistor-body {
    height: 50px;
    width: 250px;
    background-color: #d1d5db;
    border-radius: 8px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.resistor-band {
    width: 14px;
    height: 100%;
    position: absolute;
    top: 0;
}

.band-1 { left: 20px; }
.band-2 { left: 50px; }
.band-3 { left: 80px; }
.band-4 { left: 120px; }
.band-5 { right: 20px; }

.input-grid {
    display: grid;
    grid-template-columns: 250px;
    gap: 15px;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 0.25rem;
}

.custom-select {
    width: 100%;
    padding: 0.75rem;
    background-color: #4a5568;
    border: 1px solid #4a5568;
    border-radius: 0.375rem;
    color: #f7fafc;
    font-size: 1rem;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.custom-select:focus {
    border-color: #63b3ed;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

.result-display {
    background-color: #4a5568;
    padding: 1rem;
    border-radius: 0.375rem;
    text-align: center;
}

.result-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #89bada;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #af7af9;
    margin-bottom: 0.25rem;
}

.result-tolerance, .result-temp-coeff {
    font-size: 1rem;
    color: #c9bad8;
}

@media (min-width: 640px) {
    h1 {
        font-size: 2.25rem;
    }
    .input-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .input-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}