/* ===================================
   Умный НДС-калькулятор - Styles
   =================================== */

/* Material Symbols Configuration */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* Rate Button States */
.rate-btn {
    transition: all 0.2s ease-in-out;
}

.rate-btn:not(.active):hover {
    transform: translateY(-1px);
}

.rate-btn.active {
    border-width: 2px;
    border-color: #1D4ED8;
    background-color: #EFF6FF;
    color: #1D4ED8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}

.dark .rate-btn.active {
    border-color: #1E40AF;
    background-color: rgba(30, 64, 175, 0.2);
    color: #BFDBFE;
}

/* Copy Button Animation */
.copy-btn {
    transition: all 0.15s ease-in-out;
}

.copy-btn:active {
    transform: scale(0.9);
}

.copy-btn.copied {
    color: #10B981 !important;
}

.copy-btn.copied .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* Input Focus Animation */
#amountInput {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#amountInput:focus {
    border-color: #1D4ED8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

/* Results Panel Highlight Animation */
@keyframes pulse-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(29, 78, 216, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(29, 78, 216, 0);
    }
}

.result-updated {
    animation: pulse-highlight 0.6s ease-out;
}

/* Smooth Number Transitions */
#resultBase,
#resultVat,
#resultTotal {
    transition: color 0.2s ease;
}

/* Error State */
#amountInput.error {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* Words Block Styling */
#wordsBase,
#wordsVat,
#wordsTotal {
    min-height: 44px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    #resultTotal {
        font-size: 1.75rem;
    }
    
    .rate-btn {
        padding: 0.625rem 0.75rem;
    }
}

/* Selection Color */
::selection {
    background-color: rgba(29, 78, 216, 0.2);
    color: inherit;
}

/* Scrollbar Styling (for webkit browsers) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

.dark ::-webkit-scrollbar-track {
    background: #1F2937;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4B5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}
