/* status.css - стили для страницы статуса заказа */

.status-page {
    padding-top: 80px;
}

.page-header {
    margin-top: -80px;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 86, 179, 1) 0%, 
        rgba(0, 86, 179, 0.95) 50%, 
        rgba(0, 86, 179, 0.9) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Форма поиска */
#orderStatusForm .input-group-text {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

#orderStatusForm .form-control {
    border-left: 0;
    padding: 0.875rem 1rem;
    font-size: 1.05rem;
    border-color: #dee2e6;
}

#orderStatusForm .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#searchButton {
    padding-left: 2rem;
    padding-right: 2rem;
    font-weight: 600;
}

/* Иконка поиска в кнопке */
#searchButton i {
    font-size: 1rem;
    vertical-align: -0.125em;
}

/* Результаты поиска */
.order-status-result {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-timeline {
    position: relative;
    padding-left: 2rem;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.status-timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.status-timeline-item:last-child {
    margin-bottom: 0;
}

.status-timeline-item.completed .status-dot {
    background-color: #28a745;
    border-color: #28a745;
}

.status-timeline-item.current .status-dot {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.2);
}

.status-timeline-item.pending .status-dot {
    background-color: #6c757d;
    border-color: #6c757d;
}

.status-dot {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 3px solid #e9ecef;
    background: white;
    z-index: 1;
}

.status-content {
    padding-left: 1rem;
}

/* Accordion */
.accordion-button {
    border-radius: 8px !important;
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(0, 86, 179, 0.05);
    color: var(--color-primary);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: rgba(0, 86, 179, 0.25);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.1);
}

.accordion-body {
    padding: 1.25rem;
    background-color: rgba(0, 86, 179, 0.02);
    border-radius: 0 0 8px 8px;
}

/* Карточки информации */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.bg-primary-light {
    background-color: rgba(0, 86, 179, 0.05) !important;
}

/* Исправление кружков для иконок в информационных блоках */
.bg-primary.text-white.rounded-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-primary.text-white.rounded-circle i {
    font-size: 1.5rem;
    line-height: 1;
}

/* Убираем синий блок "Полезная информация" - просто удаляем стили для него */
.alert.alert-primary {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .status-page {
        padding-top: 70px;
    }
    
    .page-header {
        margin-top: -70px;
        padding-top: 100px;
        padding-bottom: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .input-group-lg > .form-control,
    .input-group-lg > .form-select,
    .input-group-lg > .input-group-text {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    #searchButton {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .bg-primary.text-white.rounded-circle {
        width: 50px;
        height: 50px;
    }
    
    .bg-primary.text-white.rounded-circle i {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .accordion-button {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    .status-timeline {
        padding-left: 1.5rem;
    }
    
    .status-dot {
        left: -1.75rem;
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .bg-primary.text-white.rounded-circle {
        width: 45px;
        height: 45px;
    }
    
    .bg-primary.text-white.rounded-circle i {
        font-size: 1.1rem;
    }
}

/* Анимации */
.form-control:valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Стили для спиннера загрузки */
.spinner-border-primary {
    color: var(--color-primary);
}

/* Утилиты */
.text-small {
    font-size: 0.875rem;
}

.border-primary-light {
    border-color: rgba(0, 86, 179, 0.15) !important;
}