/* ============================================
   УЛУЧШЕННЫЕ СТИЛИ КНОПОК
   ============================================ */

/* Базовые стили кнопок */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* Размеры кнопок */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Варианты кнопок */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e081f0 0%, #e4465b 100%);
}

.btn-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #ffffff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #3d9be8 0%, #00d9e8 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #ffffff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e85f8a 0%, #e8c930 100%);
}

.btn-yandex {
    background: #FC3F1D;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(252, 63, 29, 0.25);
    border: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.btn-yandex::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-yandex:hover::before {
    left: 100%;
}

.btn-yandex:hover {
    background: #E8351A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 63, 29, 0.35);
    color: #ffffff;
    text-decoration: none;
}

.btn-yandex:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(252, 63, 29, 0.3);
}

.btn-yandex .yandex-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 4px;
    flex-shrink: 0;
}

.btn-yandex .yandex-icon::before {
    content: 'Я';
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'EmojiOne Color', sans-serif;
}

/* Кнопки навигации */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    line-height: 1.5;
}

.nav-link .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.nav-link:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
}

.nav-link.active {
    background-color: #667eea;
    color: #ffffff;
}

/* Кнопки вкладок */
.nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 0.5rem 0.5rem 0 0;
    background-color: #f8f9fa;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}

.nav-tab:hover {
    background-color: #e9ecef;
    color: #667eea;
    text-decoration: none;
}

.nav-tab.active {
    background-color: #ffffff;
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Мини-кнопки */
.btn-mini {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Кнопки действий */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.action-btn.create {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 6px rgba(79, 172, 254, 0.3);
}

.action-btn.create:hover {
    box-shadow: 0 6px 12px rgba(79, 172, 254, 0.4);
}

/* Кнопка "Назад" */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease-in-out;
}

.back-btn:hover {
    background-color: #e9ecef;
    color: #667eea;
    border-color: #667eea;
    text-decoration: none;
}

/* Ссылки на правовую информацию */
.legal-link {
    color: #0984e3;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

.legal-link:hover {
    color: #0768b8;
    text-decoration: underline;
}

/* Кнопки в формах */
.form-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Отключенные кнопки */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

