/* Custom styles extracted from HTML files */
* {
    scrollbar-color: #374151 #1f2937;
    scrollbar-width: thin;
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #1f2937;
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}
.input-field { transition: all 0.2s ease; }
.input-field:focus { transform: translateY(-2px); }
.select-group { position: relative; display: contents; }
.select-wrapper { position: relative; }
.select-wrapper::before {
    content: ''; position: absolute; -inset: 0; inset: -1px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 0.5rem; opacity: 0; transition: opacity 0.3s ease;
    pointer-events: none; filter: blur(8px); z-index: 0;
}
.select-wrapper:hover::before { opacity: 0.3; }
.select-wrapper:focus-within::before { opacity: 0.5; }
.select-wrapper select, .input-wrapper input { position: relative; z-index: 1; }
.select-wrapper select {
    appearance: none; background: #1f2937; border: 1px solid #374151;
    padding-right: 2.5rem; color: #f3f4f6;
}
.select-wrapper select option { background: #1f2937; color: #f3f4f6; }
.select-wrapper select:hover { border-color: #3b82f6; box-shadow: 0 0 12px rgba(59, 130, 246, 0.1); }
.select-wrapper select:focus {
    outline: none; border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 0 12px rgba(59, 130, 246, 0.15);
}
.select-wrapper::after {
    content: ''; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px;
    background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>') no-repeat center;
    background-size: contain; color: #9ca3af; pointer-events: none;
    transition: color 0.2s ease; z-index: 2;
}
.select-wrapper:hover::after { color: #3b82f6; }
.input-wrapper { position: relative; display: flex; }
.input-wrapper::before {
    content: ''; position: absolute; -inset: 0; inset: -1px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 0.5rem; opacity: 0; transition: opacity 0.3s ease;
    pointer-events: none; filter: blur(8px); z-index: 0;
}
.input-wrapper:hover::before { opacity: 0.2; }
.input-wrapper:focus-within::before { opacity: 0.35; }
.input-wrapper input {
    position: relative; z-index: 1;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid #374151; padding-right: 2.75rem;
}
.input-wrapper input:hover { border-color: #3b82f6; box-shadow: 0 0 12px rgba(59, 130, 246, 0.1); }
.input-wrapper input:focus {
    outline: none; border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 0 12px rgba(59, 130, 246, 0.15);
}
.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(31, 41, 55, 1) inset !important;
    -webkit-text-fill-color: #f3f4f6 !important;
    color: #f3f4f6 !important; border-color: #374151 !important;
    -webkit-transition: background-color 5000s ease-in-out 0s !important;
    transition: background-color 5000s ease-in-out 0s !important;
}
.input-wrapper input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(31, 41, 55, 1) inset, 0 0 0 4px rgba(59, 130, 246, 0.1), 0 0 12px rgba(59, 130, 246, 0.15) !important;
    border-color: #3b82f6 !important;
}
.clear-input-btn {
    position: absolute; right: 10px; top: 50%; width: 30px; height: 30px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    border: none; color: white; cursor: pointer; font-size: 16px;
    padding: 4px 8px; border-radius: 3px; transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; z-index: 2;
}
.input-wrapper input:not(:placeholder-shown) ~ .clear-input-btn,
.input-wrapper input:focus ~ .clear-input-btn { opacity: 1; pointer-events: auto; }
.clear-input-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.clear-input-btn:active:not(:disabled) { transform: translateY(-50%) scale(0.95); }
.clear-input-btn:disabled { opacity: 0; pointer-events: none; }
@keyframes float-rotate {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}
.clear-input-btn:active:not(:disabled) { animation: float-rotate 0.3s ease-out; }
.animated-logo { display: inline-flex; align-items: center; transition: all 1s ease; }
.animated-logo:hover { transform: rotate(70deg) scale(1.5); }
.animated-logo img {
    filter: brightness(0) saturate(100%) invert(1) sepia(1) saturate(10000%) hue-rotate(180deg);
}
.search-button { position: relative; overflow: hidden; }
.search-button::before {
    content: ''; position: absolute; -inset: 0; inset: -1px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 0.5rem; opacity: 0; transition: opacity 0.3s ease;
    pointer-events: none; filter: blur(8px); z-index: 0;
}
.search-button:hover::before:not(:disabled) { opacity: 0.2; }
.search-button:not(:disabled) { position: relative; z-index: 1; }
.swap-button {
    position: relative; padding: 12px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid #374151; color: #9ca3af; cursor: pointer;
    transition: all 0.2s ease; display: flex; align-items: center; justify-content: center;
    border-radius: 0.5rem; height: 50px; width: 50px; z-index: 10; flex-shrink: 0;
}
.swap-button:hover { border-color: #3b82f6; color: #3b82f6; box-shadow: 0 0 12px rgba(59, 130, 246, 0.1); }
.swap-button:active { transform: scale(0.95); }
.swap-button svg { width: 20px; height: 20px; }
.flag-icon { width: 1.25em; height: 0.95em; display: inline-block; margin-right: 0.4em; vertical-align: -0.125em; line-height: 1em; }
.fi { height: 1em; display: inline-block; margin-right: 0.5em; vertical-align: -0.125em; }
.site-language-footer { position: relative; z-index: 1; }
@media (max-width: 640px) {
    .text-4xl { font-size: 1.875rem; }
}
