/**
 * Shared Styles for Payment Fee Calculator
 * Additional styles beyond Tailwind CSS
 */

/* Custom styles for better financial UI */
.result-card {
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.final-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #059669;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .final-amount {
        font-size: 2.5rem;
    }
}

/* Top navigation styles */
nav {
    transition: all 0.3s ease;
}

/* Smooth scroll for sticky nav */
html {
    scroll-padding-top: 4rem;
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Searchable Select Styles */
.searchable-select-wrapper {
    position: relative;
    z-index: 1;
}

.searchable-select-wrapper.active {
    z-index: 9999;
    position: relative;
}

.select-dropdown {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    position: absolute !important;
    z-index: 9999 !important;
}

.select-option {
    transition: background-color 0.15s ease;
}

.select-option:hover {
    background-color: #eff6ff !important;
}

.select-arrow {
    transition: transform 0.2s ease;
    font-size: 10px;
    margin-left: 8px;
}

.searchable-select-wrapper.active .select-arrow {
    transform: rotate(180deg);
}

.select-display-text {
    flex: 1;
    text-align: left;
}

/* Focus styles for searchable select */
.searchable-select-wrapper:focus-within .select-display {
    border-color: #93c5fd;
    box-shadow: 0 0 0 1px #93c5fd;
}

/* Ensure dropdown can overlap elements below */
.input-group {
    position: relative;
    z-index: 1;
}

.input-group:has(.searchable-select-wrapper.active) {
    z-index: 9999;
}
