.fusebuddy-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #1f2937;
}

.fusebuddy-app .fusebuddy-calculator-container {
    width: 100%;
    box-sizing: border-box;
}

.fusebuddy-app .fusebuddy-main {
    width: 100%;
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.fusebuddy-app .fusebuddy-card {
    width: 100%;
    max-width: 720px;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.fusebuddy-app .fusebuddy-card-body {
    padding: 2rem;
}

.fusebuddy-app .fusebuddy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.fusebuddy-app .fusebuddy-title {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.fusebuddy-app .fusebuddy-voltage-toggle {
    display: flex;
    gap: 0.5rem;
}

.fusebuddy-app .fusebuddy-toggle-button {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    background: #e5e7eb;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.fusebuddy-app .fusebuddy-toggle-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.fusebuddy-app .fusebuddy-toggle-active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.fusebuddy-app .fusebuddy-toggle-inactive {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

.fusebuddy-app .fusebuddy-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fusebuddy-app .fusebuddy-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.fusebuddy-app .fusebuddy-label {
    font-size: 0.925rem;
    color: #374151;
    font-weight: 600;
}

.fusebuddy-app .fusebuddy-input,
.fusebuddy-app .fusebuddy-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 1rem;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.fusebuddy-app .fusebuddy-input:focus,
.fusebuddy-app .fusebuddy-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.fusebuddy-app .fusebuddy-submit {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0.9rem;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.fusebuddy-app .fusebuddy-submit:hover {
    background: #1d4ed8;
}

.fusebuddy-app .fusebuddy-submit:active {
    transform: translateY(1px);
}

.fusebuddy-app .fusebuddy-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.fusebuddy-app .fusebuddy-submit-icon {
    width: 1.1em;
    height: 1.1em;
}

.fusebuddy-app .fusebuddy-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #eff6ff;
    border-radius: 0.9rem;
    border: 1px solid #bfdbfe;
    animation: fusebuddy-fade-in 0.25s ease-out;
}

.fusebuddy-app .fusebuddy-hidden {
    display: none;
}

.fusebuddy-app .fusebuddy-results-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.fusebuddy-app .fusebuddy-result-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fusebuddy-app .fusebuddy-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.975rem;
    color: #4b5563;
}

.fusebuddy-app .fusebuddy-result-value {
    font-weight: 700;
    color: #2563eb;
    text-align: right;
}

.fusebuddy-app .fusebuddy-advisory {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.fusebuddy-app .fusebuddy-feedback-wrapper {
    margin-top: 2rem;
    text-align: center;
}

.fusebuddy-app .fusebuddy-feedback {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #2563eb;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.fusebuddy-app .fusebuddy-feedback:hover {
    color: #1d4ed8;
    background: #eff6ff;
}

.fusebuddy-app .fusebuddy-feedback:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.fusebuddy-app .fusebuddy-feedback-icon {
    width: 1rem;
    height: 1rem;
}

@keyframes fusebuddy-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .fusebuddy-app .fusebuddy-main {
        padding: 2rem 1rem;
    }

    .fusebuddy-app .fusebuddy-card-body {
        padding: 1.5rem;
    }

    .fusebuddy-app .fusebuddy-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fusebuddy-app .fusebuddy-voltage-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .fusebuddy-app .fusebuddy-toggle-button {
        flex: 1;
        text-align: center;
    }

    .fusebuddy-app .fusebuddy-result-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .fusebuddy-app .fusebuddy-result-value {
        text-align: left;
    }
}
