/* ============================================= */
/*          СТИЛИ СТРАНИЦЫ "ПРОВЕРКА ИНН"        */
/* ============================================= */

/* --- Общие стили страницы --- */
main.tin-checker-page {
    padding-top: 70px;
    padding-bottom: 40px;
    display: flex;
    align-items: flex-start;
}
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}
.page-title-section {
    text-align: center;
    margin-bottom: 30px;
}
.page-title-section h1 { font-size: 2.8rem; font-weight: 700; }
.page-title-section p { font-size: 1.1rem; color: #6c757d; }

/* --- Обертка приложения --- */
.tin-app-wrapper {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

/* --- Поле для ввода ИНН --- */
.tin-input-group {
    position: relative;
    margin-bottom: 15px;
}
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1.2rem;
}
.tin-input {
    width: 100%;
    padding: 15px 50px 15px 50px;
    font-size: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 4px;
    text-align: center;
    border: 2px solid #ced4da;
    border-radius: 12px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.tin-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}
.tin-input.valid {
    border-color: #28a745;
}
.tin-input.invalid {
    border-color: #dc3545;
}
.char-counter {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.9rem;
}

/* --- Сообщение об ошибке --- */
.error-message {
    color: #dc3545;
    text-align: center;
    font-size: 0.9rem;
    height: 20px;
}

/* --- Контейнер с результатами --- */
.results-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.result-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.result-icon {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 5px;
}
.result-label {
    font-size: 0.85rem;
    color: #6c757d;
}
.result-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Анимация появления результатов --- */
.slide-fade-enter-active {
    transition: all 0.5s ease;
}
.slide-fade-leave-active {
    transition: all 0.3s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}
.slide-fade-enter-from,
.slide-fade-leave-to {
    transform: translateY(20px);
    opacity: 0;
}


/* ============================================= */
/*          АДАПТАЦИЯ ДЛЯ ТЕМНОЙ ТЕМЫ            */
/* ============================================= */
.dark-theme .page-title-section p { color: #a0a0a0; }
.dark-theme .tin-app-wrapper {
    background-color: #2c2c2e;
    border-color: #444;
}
.dark-theme .input-icon, .dark-theme .char-counter { color: #8e8e93; }
.dark-theme .tin-input {
    background-color: #1c1c1e;
    border-color: #555;
    color: #fff;
}
.dark-theme .tin-input.valid { border-color: #28a745; }
.dark-theme .tin-input.invalid { border-color: #dc3545; }
.dark-theme .tin-input:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.25);
}
.dark-theme .error-message { color: #ff4d4d; }
.dark-theme .result-card {
    background-color: #3a3a3c;
    border-color: #555;
}
.dark-theme .result-icon { color: #58a6ff; }
.dark-theme .result-label { color: #a0a0a0; }
.dark-theme .result-value { color: #f2f2f7; }