/* Gift Dialog Styles */

/* Основные стили */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Навигация */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Контейнер прогресса */
.progress-container {
    max-width: 600px;
    margin: 0 auto;
}

.progress {
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, #0d6efd 0%, #0b5ed7 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Контейнер шагов */
.step-container {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопки выбора */
.btn {
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.btn-outline-primary {
    border: 2px solid #dee2e6;
    background-color: #fff;
    color: #495057;
}

.btn-outline-primary:hover {
    border-color: #0d6efd;
    background-color: #f8f9ff;
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.btn-outline-primary:active {
    transform: translateY(0);
}

/* Кнопки интересов (множественный выбор) */
.interest-btn {
    position: relative;
    overflow: hidden;
}

.interest-btn.selected {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.interest-btn.selected::before {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #fff;
    color: #0d6efd;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Кнопка "Готово" для интересов */
#interestsDone {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border: none;
    color: #fff;
    font-weight: 600;
}

#interestsDone:hover {
    background: linear-gradient(135deg, #157347 0%, #146c43 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

/* Навигационные кнопки */
.navigation-buttons {
    max-width: 600px;
    margin: 0 auto;
}

.navigation-buttons .btn {
    min-height: 50px;
}

/* Загрузка */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-container .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .btn {
        min-height: 60px;
        font-size: 0.9rem;
    }
    
    .step-container {
        padding: 0 15px;
    }
    
    .navigation-buttons .row {
        margin: 0;
    }
    
    .navigation-buttons .col-md-4 {
        padding: 0 5px;
    }
}

@media (max-width: 576px) {
    .btn {
        min-height: 50px;
        font-size: 0.8rem;
    }
    
    .btn i {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Анимации для иконок */
.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* Стили для текстового поля */
.form-floating textarea {
    border-radius: 12px;
    border: 2px solid #dee2e6;
    transition: border-color 0.3s ease;
}

.form-floating textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Подсказки */
.text-muted {
    font-size: 0.9rem;
}

/* Прогресс текст */
.progress-text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Эффекты при наведении */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Специальные стили для кнопок с иконками */
.btn .bi {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Анимация появления шагов */
.step.d-none {
    display: none !important;
}

.step:not(.d-none) {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Стили для выбранных элементов */
.btn.selected {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* Стили для отключенных кнопок */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Стили для мобильных устройств */
@media (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .btn {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .btn .bi {
        font-size: 1rem;
    }
}

/* Стили для планшетов */
@media (min-width: 768px) and (max-width: 1024px) {
    .step-container {
        max-width: 700px;
    }
    
    .btn {
        min-height: 70px;
    }
}

/* Стили для больших экранов */
@media (min-width: 1200px) {
    .step-container {
        max-width: 900px;
    }
    
    .btn {
        min-height: 90px;
        font-size: 1.1rem;
    }
}

/* Стили для темной темы (если понадобится) */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #212529 0%, #343a40 100%);
        color: #f8f9fa;
    }
    
    .btn-outline-primary {
        background-color: #343a40;
        border-color: #495057;
        color: #f8f9fa;
    }
    
    .btn-outline-primary:hover {
        background-color: #495057;
        border-color: #0d6efd;
        color: #0d6efd;
    }
} 