/* Стили для страницы проверки документов */

/* Область загрузки файла */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    background-color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.drop-zone:hover, .drop-zone.highlight {
    border-color: var(--light-blue);
    background-color: rgba(110, 142, 251, 0.05);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--light-blue);
}

.upload-text {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.file-format {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Информация о выбранном файле */
.selected-file {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.file-name {
    font-weight: 500;
    color: var(--light-blue);
}

/* Кнопка отправки */
.submit-button {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    margin-top: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.submit-button:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Блок обработки */
.processing-block {
    display: none;
    text-align: center;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    max-width: 600px;
}

.loader {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid rgba(110, 142, 251, 0.1);
    border-top: 5px solid var(--light-blue);
    animation: spin 1.5s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Блок ошибки */
.error-block {
    display: none;
    text-align: center;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(255, 248, 248, 0.8);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--accent-color);
    max-width: 600px;
}

.error-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.error-block h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.error-block p {
    margin-bottom: 0.5rem;
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Возможности сервиса */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Шаги проверки */
.step-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

/* Стили для переключателей стандартов (слайдеры) */
.standards-selector {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    border: 1px solid rgba(110, 142, 251, 0.2);
}

.standards-selector h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.standard-slider {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    transition: all var(--transition-speed);
}

.standard-slider:hover {
    border-color: rgba(110, 142, 251, 0.3);
    background: rgba(110, 142, 251, 0.05);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    position: relative;
}

/* Стиль скрытого чекбокса */
.slider-container input[type="checkbox"] {
    display: none;
}

/* Стиль переключателя (слайдера) */
.slider-toggle {
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 26px;
    position: relative;
    transition: background var(--transition-speed);
    flex-shrink: 0;
}

.slider-toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform var(--transition-speed);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Активное состояние слайдера */
.slider-container input[type="checkbox"]:checked + .slider-toggle {
    background: var(--light-blue);
}

.slider-container input[type="checkbox"]:checked + .slider-toggle::after {
    transform: translateX(24px);
}

/* Текстовая метка с подсказкой */
.slider-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.slider-label strong {
    color: var(--text-dark);
    font-size: 1rem;
}

.slider-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Подсветка активного слайдера */
.standard-slider:has(input[type="checkbox"]:checked) {
    border-color: var(--light-blue);
    background: rgba(110, 142, 251, 0.08);
    box-shadow: 0 2px 8px rgba(110, 142, 251, 0.15);
}

.standard-slider:has(input[type="checkbox"]:checked) .slider-label strong {
    color: var(--light-blue);
}

/* Список правил в details */
.rules-preview {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(110, 142, 251, 0.2);
}

.rules-preview details {
    background: white;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    border: 1px solid rgba(110, 142, 251, 0.1);
}

.rules-preview summary {
    cursor: pointer;
    padding: 0.5rem;
    font-weight: 600;
    color: var(--light-blue);
    user-select: none;
}

.rules-preview summary:hover {
    background: rgba(110, 142, 251, 0.05);
    border-radius: 4px;
}

.rules-preview ul {
    margin-top: 0.5rem;
    padding: 0 0 0 1.5rem;
    list-style: disc;
}

.rules-preview li {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.rules-link-container {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
}

.rules-link {
    display: inline-flex;
    align-items: center;
    color: var(--light-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-speed);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.rules-link:hover {
    color: var(--dark-blue);
    background: rgba(110, 142, 251, 0.05);
    text-decoration: none;
}

/* Адаптивность для слайдеров */
@media (max-width: 768px) {
    .slider-container {
        gap: 0.75rem;
    }
    
    .slider-toggle {
        width: 44px;
        height: 24px;
    }
    
    .slider-toggle::after {
        width: 18px;
        height: 18px;
        top: 3px;
        left: 3px;
    }
    
    .slider-container input[type="checkbox"]:checked + .slider-toggle::after {
        transform: translateX(20px);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }
    
    .drop-zone {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
.gost-options {
flex-direction: column;
}

.gost-option {
flex-direction: row;
align-items: flex-start;
}
}

/* ============================================
* Стили для результатов проверки
* Перенесено из check-page-styles.css
* ============================================ */

/* Стили для блока помощи в случае ошибки */
.error-help {
margin: 20px 0;
padding: 15px;
background: #f8f9fa;
border-left: 4px solid var(--light-blue);
border-radius: 4px;
}

.error-help p:first-child {
margin: 0 0 10px 0;
font-weight: bold;
color: var(--light-blue);
}

.error-help p:last-child {
margin: 0;
color: var(--text-light);
}

.error-help a {
color: var(--light-blue);
text-decoration: none;
}

.error-help a:hover {
text-decoration: underline;
}

/* Прогресс-бар с этапами */
.progress-stages {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 15px;
margin-top: 25px;
padding: 20px;
background: rgba(255, 255, 255, 0.9);
border-radius: 12px;
}

.progress-stage {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 15px;
background: #f8f9fa;
border-radius: 8px;
font-size: 14px;
color: var(--text-light);
transition: all 0.3s ease;
}

.progress-stage.completed {
background: #d4edda;
color: #155724;
}

.progress-stage.completed .stage-icon {
content: "✓";
}

.progress-stage.active {
background: #fff3cd;
color: #856404;
font-weight: 600;
}

.progress-stage .stage-icon {
font-size: 16px;
}

/* Блок результата */
.result-block {
display: none;
padding: 30px;
margin-top: 20px;
}

.result-block.active {
display: block;
}

.result-summary {
display: flex;
justify-content: center;
gap: 30px;
margin: 25px 0;
flex-wrap: wrap;
}

.summary-item {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px 30px;
border-radius: 12px;
min-width: 120px;
}

.summary-item.critical {
background: #f8d7da;
border: 2px solid #dc3545;
}

.summary-item.important {
background: #fff3cd;
border: 2px solid #ffc107;
}

.summary-item.recommendation {
background: #d1ecf1;
border: 2px solid #17a2b8;
}

.summary-count {
font-size: 36px;
font-weight: 700;
}

.summary-item.critical .summary-count {
color: #dc3545;
}

.summary-item.important .summary-count {
color: #856404;
}

.summary-item.recommendation .summary-count {
color: #0c5460;
}

.summary-label {
font-size: 14px;
color: var(--text-light);
margin-top: 5px;
}

/* Кнопки действий */
.result-actions {
display: flex;
justify-content: center;
gap: 15px;
margin: 25px 0;
flex-wrap: wrap;
}

.secondary-button {
padding: 12px 24px;
font-size: 16px;
background: #f8f9fa;
border: 2px solid var(--text-light);
color: var(--text-light);
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
}

.secondary-button:hover {
background: #e9ecef;
border-color: #495057;
color: #495057;
}

/* Список ошибок */
.errors-list {
margin-top: 30px;
}

.error-item {
background: #fff;
border-radius: 12px;
margin-bottom: 20px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.error-item.critical {
border-left: 5px solid #dc3545;
}

.error-item.important {
border-left: 5px solid #ffc107;
}

.error-item.recommendation {
border-left: 5px solid #17a2b8;
}

.error-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background: #f8f9fa;
flex-wrap: wrap;
gap: 10px;
}

.error-severity {
font-weight: 700;
font-size: 14px;
padding: 5px 12px;
border-radius: 4px;
}

.error-item.critical .error-severity {
background: #dc3545;
color: #fff;
}

.error-item.important .error-severity {
background: #ffc107;
color: #212529;
}

.error-item.recommendation .error-severity {
background: #17a2b8;
color: #fff;
}

.error-location {
font-size: 14px;
color: var(--text-light);
}

.error-body {
padding: 20px;
}

.error-body p {
margin: 10px 0;
line-height: 1.6;
}

.error-body p strong {
color: #495057;
}

.error-problem {
color: #212529;
}

.error-found {
color: #dc3545;
}

.error-expected {
color: #28a745;
}

.error-rule {
font-size: 14px;
color: var(--text-light);
}

.error-fix {
background: #d4edda;
padding: 12px 15px;
border-radius: 8px;
color: #155724;
}

/* Donation блок */
.donation-block {
margin-top: 40px;
padding: 30px;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border-radius: 16px;
text-align: center;
border: 2px dashed #dee2e6;
}

.donation-block h3 {
color: #28a745;
margin-bottom: 15px;
}

.donation-block p {
color: #495057;
margin: 15px 0;
line-height: 1.7;
}

.donation-button {
display: inline-block;
padding: 14px 32px;
font-size: 18px;
font-weight: 600;
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
color: #fff;
border-radius: 30px;
text-decoration: none;
margin: 15px 0;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.donation-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.donation-note {
font-size: 14px;
color: var(--text-light);
font-style: italic;
}
