/* Основные стили */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
}
.text-primary
{
	color: #8b5cf6 !important;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #1f2937;
    line-height: 1.6;
/*отступ от меню*/	
	
}

.site-main {
    flex: 1 0 auto;
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    color: white;
}

.btn-primary:active,
.btn-primary:focus {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    color: white;
}

/* Outline кнопка */
.btn-outline-primary {
    color: #8b5cf6;
    border: 2px solid #8b5cf6;
    background: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.btn-outline-primary:active,
.btn-outline-primary:focus {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Outline кнопка на тёмном фоне (для hero и cta) */
.btn-outline-light {
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Размеры кнопок */
.btn-lg {
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 12px;
}

.btn {
    padding: 10px 20px;
    border-radius: 10px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 8px;
}

/* Типография */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    color: #8b5cf6;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #6d28d9;  /* Темнее на 15% */
    text-decoration: none;
}

/* Навигация */
.navbar {
    padding: 1rem 0;
}

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

/* Кнопки */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a1 100%);
}

/* Карточки */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Формы */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.625rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

/* Таблицы */
.table {
    color: #374151;
}

.table th {
    font-weight: 600;
    border-top: none;
    background-color: var(--light-bg);
}

/* Баланс в шапке */
.user-balance {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Футер */
.site-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-widgets {
    margin-bottom: 2rem;
}

.footer-widget-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

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

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: #6b7280;
    text-decoration: none;
}

.footer-menu a:hover {
    color: var(--primary-color);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.site-info {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: #6b7280;
}

/* ============================================
   КАСТОМНЫЕ ЧЕКБОКСЫ (ФИОЛЕТОВАЯ ТЕМА)
   ============================================ */

/* Базовый чекбокс */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
}

/* Ховер */
.form-check-input:hover {
    border-color: #8b5cf6;
    background-color: #f5f3ff;
}

/* Отмечен */
.form-check-input:checked {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
}

/* Галочка */
.form-check-input:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Фокус */
.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

/* Неактивный */
.form-check-input:disabled {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-check-input:disabled:checked {
    background-color: #c4b5fd;
    border-color: #c4b5fd;
}

/* Лейбл */
.form-check-label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.form-check-input:disabled ~ .form-check-label {
    color: #9ca3af;
    cursor: not-allowed;
}


/* Кнопка обновления баланса */
.user-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 8px 12px 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.btn-refresh-balance {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s;
    margin-left: 2px;
    padding: 0;
}

.btn-refresh-balance:hover {
    background: rgba(255,255,255,0.4);
    transform: rotate(180deg);
}

.btn-refresh-balance:active {
    transform: rotate(360deg);
}

.balance-amount.updating {
    opacity: 0.6;
}

.balance-amount.updated {
    animation: balancePulse 0.5s ease;
}

@keyframes balancePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); color: #ffffff; }
}