/* Additional styles beyond Tailwind */

.tab-button.active {
    background-color: #1d4ed8; /* bg-blue-700 - darker for better contrast */
    color: white;
}

.calculator-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.calculator-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.basic-form,
.change-form,
.difference-form,
.manipulation-form,
.applied-form,
.conversion-form {
    display: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.basic-form.active,
.change-form.active,
.difference-form.active,
.manipulation-form.active,
.applied-form.active,
.conversion-form.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.basic-type-btn.active,
.change-type-btn.active,
.difference-type-btn.active,
.manipulation-type-btn.active,
.applied-type-btn.active,
.conversion-type-btn.active {
    background-color: #1d4ed8; /* bg-blue-700 - darker for better contrast */
    color: white;
}

.result-box {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.result-box.visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.5s ease;
}

/* Input focus styles */
input:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Button styles */
button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
    box-shadow: none;
}

.tab-button {
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Ensure consistent hover behavior for all tab buttons */
.tab-button.active:hover {
    background-color: #1e40af !important; /* bg-blue-800 - darker on hover */
    color: white !important;
}

/* Ensure active state buttons maintain their color */
.basic-type-btn.active:hover,
.change-type-btn.active:hover,
.difference-type-btn.active:hover,
.manipulation-type-btn.active:hover,
.applied-type-btn.active:hover,
.conversion-type-btn.active:hover {
    background-color: #1e40af !important; /* bg-blue-800 - darker on hover */
    color: white !important;
}

/* Copy button animation */
[id^="copy-"].copied {
    background-color: #10b981;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .tab-button {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}
