/* TappyCalc Custom CSS */

/* Additional styles beyond what's in the header inline styles */

/* Calculator result styles */
.result-box {
    background-color: #f8fafc;
    border-left: 4px solid #4F46E5;
    transition: all 0.3s ease;
}

.dark-mode .result-box {
    background-color: #1e293b;
    border-left: 4px solid #6366F1;
}

.result-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Form control styles */
.form-control {
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
}

.dark-mode .form-control {
    background-color: #334155;
    border-color: #475569;
    color: #f8fafc;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #4F46E5;
    color: white;
}

.btn-primary:hover {
    background-color: #4338CA;
}

.btn-secondary {
    background-color: #6B7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4B5563;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #4F46E5;
    color: #4F46E5;
}

.btn-outline:hover {
    background-color: #4F46E5;
    color: white;
}

/* Footer enhancements */
.footer-link {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #4F46E5;
    text-decoration: underline;
}

.dark-mode .footer-link {
    color: #9CA3AF;
}

.dark-mode .footer-link:hover {
    color: #818CF8;
}

/* Calculator card badge */
.calculator-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-new {
    background-color: #10B981;
    color: white;
}

.badge-popular {
    background-color: #F59E0B;
    color: white;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #1F2937;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
