/* ===== ОБЩИЕ СТИЛИ ===== */
:root {
    /* Основная цветовая гамма - сине-голубая */
    --primary: #3b7cff;
    --primary-light: #6b9cff;
    --primary-dark: #2a5ccc;
    --secondary: #00c3ff;
    --gradient: linear-gradient(135deg, #3b7cff, #00c3ff);
    --gradient-hover: linear-gradient(135deg, #2a5ccc, #00a3ff);
    
    /* Дополнительные цвета */
    --success: #28a745;
    --success-light: #d4edda;
    --info: #17a2b8;
    --info-light: #d1ecf1;
    --warning: #ffc107;
    --warning-light: #fff3cd;
    --danger: #dc3545;
    --danger-light: #f8d7da;
    
    /* Нейтральные цвета */
    --bg-light: #f5f9ff;
    --bg-white: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e0e7ff;
    --shadow-color: rgba(59, 124, 255, 0.1);
    --shadow-hover: rgba(59, 124, 255, 0.15);
    
    /* Размеры */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --border-radius-round: 50px;
    --border-radius-circle: 50%;
    
    /* Тени */
    --shadow-sm: 0 2px 8px var(--shadow-color);
    --shadow-md: 0 5px 15px var(--shadow-color);
    --shadow-lg: 0 10px 30px var(--shadow-color);
    --shadow-hover: 0 20px 40px var(--shadow-hover);
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius-round);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-like {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-circle);
    background: white;
    border: 2px solid #ffe0e0;
    color: #ff6b6b;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-like:hover {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

.btn-like i {
    font-size: 28px;
}

.btn-like:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== КАРТОЧКИ ===== */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 20px;
    background: var(--gradient);
    color: white;
}

.card-header h1, .card-header h2, .card-header h3,
.card-header h4, .card-header h5, .card-header h6 {
    margin: 0;
    color: white;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 20px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

/* Карточка пользователя в стиле Tinder */
.user-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.user-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
}

.user-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.user-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    border-radius: var(--border-radius-round);
    padding: 6px 14px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--shadow-md);
    z-index: 2;
    color: var(--primary-dark);
}

.user-card-badge.high {
    background: var(--gradient);
    color: white;
}

.user-card-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: white;
    z-index: 2;
}

.user-card-overlay h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.user-card-overlay p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.user-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    background: var(--gradient);
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    font-size: 2rem;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-round);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Панель навигации (левое меню) */
.nav-panel {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px 16px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.nav-panel .logo {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    padding-left: 8px;
}

.nav-panel .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-panel .menu-item {
    margin-bottom: 8px;
}

.nav-panel .menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.nav-panel .menu-link i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.2rem;
    color: var(--primary);
}

.nav-panel .menu-link:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}

.nav-panel .menu-link.active {
    background: var(--gradient);
    color: white;
}

.nav-panel .menu-link.active i {
    color: white;
}

/* ===== ПРОГРЕСС-БАРЫ ===== */
.progress {
    background: var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    height: 8px;
}

.progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: var(--border-radius-sm);
    transition: width var(--transition-normal);
}

.progress-bar-success {
    background: var(--success);
}

.progress-bar-info {
    background: var(--info);
}

.progress-bar-warning {
    background: var(--warning);
}

.progress-bar-danger {
    background: var(--danger);
}

/* ===== БЕЙДЖИ ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--border-radius-round);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.badge-primary {
    background: var(--gradient);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-info {
    background: var(--info);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: var(--text-primary);
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-light {
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ===== ТЕГИ ===== */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--border-radius-round);
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-light);
    color: var(--primary-dark);
    border: 1px solid var(--border-color);
}

.tag-high {
    background: var(--success-light);
    color: #155724;
    border-color: #c3e6cb;
}

.tag-medium {
    background: var(--info-light);
    color: #0c5460;
    border-color: #bee5eb;
}

.tag-low {
    background: var(--warning-light);
    color: #856404;
    border-color: #ffeeba;
}

/* ===== ФИЛЬТРЫ ===== */
.filter-chip {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--border-radius-round);
    font-size: 14px;
    font-weight: 500;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.filter-chip i {
    margin-right: 8px;
    color: var(--primary);
}

.filter-chip:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.filter-chip.active i {
    color: white;
}

/* ===== АЛЕРТЫ ===== */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-info {
    background: var(--info-light);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-success {
    background: var(--success-light);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: var(--warning-light);
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-danger {
    background: var(--danger-light);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 20px;
}

.alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* ===== ФОРМЫ ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 124, 255, 0.1);
}

.form-control.error {
    border-color: var(--danger);
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 4px;
}

/* ===== ГРИДЫ ===== */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ===== ПУСТЫЕ СОСТОЯНИЯ ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.empty-state i {
    font-size: 80px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn var(--transition-normal);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== УТИЛИТЫ ===== */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-info { color: var(--info); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }

.bg-gradient {
    background: var(--gradient);
}

.bg-light {
    background: var(--bg-light);
}

.bg-white {
    background: white;
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-md { border-radius: var(--border-radius-md); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }
.rounded-round { border-radius: var(--border-radius-round); }
.rounded-circle { border-radius: var(--border-radius-circle); }

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .container { max-width: 960px; }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .container { max-width: 720px; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .nav-panel { display: none; }
    h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .container { max-width: 540px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    h1 { font-size: 1.75rem; }
    .btn { padding: 10px 20px; }
}

@media (max-width: 576px) {
    .container { padding: 0 15px; }
    .card-body { padding: 15px; }
    .filter-chip { padding: 6px 16px; font-size: 13px; }
}