/* Система дизайна детского клуба "Ветерок" */
/* Основные переменные цветов */
:root {
    /* Основные брендовые цвета */
    --brand-blue: #33a0d8;
    --brand-green: #1d9e3e;
    --brand-lightgreen: #abcb4e;
    --brand-orange: #edb314;
    
    /* Оттенки основных цветов */
    --brand-blue-light: #5cb8e6;
    --brand-blue-dark: #2a8bc5;
    --brand-green-light: #34b856;
    --brand-green-dark: #178532;
    
    /* Нейтральные цвета */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;
    
    /* Градиенты */
    --gradient-brand: linear-gradient(135deg, #33a0d8 0%, #1d9e3e 100%);
    --gradient-fresh: linear-gradient(135deg, #abcb4e 0%, #33a0d8 50%, #1d9e3e 100%);
    --gradient-sun: linear-gradient(135deg, #edb314 0%, #abcb4e 100%);
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Скругления */
    --radius-sm: 0.25rem;
    --radius-base: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Отступы */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-base: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.5;
    min-height: 100vh;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-base);
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-base);
}

.text-center {
    text-align: center;
}

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

/* Контейнеры */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-base);
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-base);
}

/* Хедер */
.header {
    text-align: center;
    padding: var(--space-lg) 0;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.header p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

/* Карточки */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--space-lg);
    transition: all 0.3s ease;
}

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

.card-blue {
    background: linear-gradient(to bottom, var(--white) 0%, rgba(51, 160, 216, 0.05) 100%);
    border-color: var(--brand-blue-light);
}

.card-green {
    background: linear-gradient(to bottom, var(--white) 0%, rgba(29, 158, 62, 0.05) 100%);
    border-color: var(--brand-green-light);
}

.card-orange {
    background: linear-gradient(to bottom, var(--white) 0%, rgba(237, 179, 20, 0.05) 100%);
    border-color: var(--brand-orange);
}

.card h3 {
    color: var(--gray-800);
    margin-bottom: var(--space-md);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-base);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    gap: 0.5rem;
}

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

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

.btn-secondary {
    background: var(--brand-green);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--brand-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--brand-blue);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-md {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

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

.btn-approve {
    background: var(--brand-green);
    color: var(--white);
}

.btn-reject {
    background: #ef4444;
    color: var(--white);
}

.btn-delete {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-copy {
    background: var(--brand-blue-light);
    color: var(--white);
}

/* Формы */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-base);
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(51, 160, 216, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

/* Сетка */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Статистические карточки */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-base);
    margin-bottom: var(--space-lg);
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Списки */
.requests-list,
.users-list {
    max-height: 500px;
    overflow-y: auto;
}

.request-item,
.user-item {
    background: var(--gray-50);
    border-radius: var(--radius-base);
    padding: var(--space-base);
    margin-bottom: var(--space-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.request-info,
.user-info {
    flex: 1;
    min-width: 200px;
}

.request-name,
.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-800);
    margin-bottom: var(--space-xs);
}

.request-details,
.user-details {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.request-actions,
.user-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Навигация */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: var(--space-base) 0;
    margin-bottom: var(--space-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-blue);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--brand-blue);
}

/* Адаптивность */
@media (max-width: 768px) {
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .request-item,
    .user-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .request-actions,
    .user-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-container {
        flex-direction: column;
        gap: var(--space-base);
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Утилиты */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.w-full {
    width: 100%;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

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

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

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-brand-blue {
    background-color: var(--brand-blue);
}

.text-white {
    color: var(--white);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-800 {
    color: var(--gray-800);
}

/* Анимации */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.transition-all {
    transition: all 0.3s ease-in-out;
}

.transition-colors {
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

/* Страница аутентификации */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-base);
    background: var(--gradient-fresh);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.auth-header p {
    color: var(--gray-600);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Бейджи */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

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

.badge-warning {
    background: var(--brand-orange);
    color: var(--white);
}

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