* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #94a3b8;

    --background: #0a0a0a;
    --foreground: #ededed;
    --liquid-glass-bg: rgba(255, 255, 255, 0.08);
    --liquid-glass-border: rgba(255, 255, 255, 0.15);
    --liquid-glass-shadow: rgba(0, 0, 0, 0.25);
    --liquid-ripple-color: rgba(255, 255, 255, 0.3);
    --liquid-flow-duration: 0.8s;
    --liquid-bounce-duration: 0.6s;
    --liquid-glass-gradient: linear-gradient(135deg, var(--darker) 0%, #1a1a2e 50%, #16213e 100%);
}


@keyframes liquidRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

.liquid-glass-base {
    background: var(--liquid-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--liquid-glass-border);
    box-shadow:
        0 8px 32px var(--liquid-glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all var(--liquid-flow-duration) cubic-bezier(0.23, 1, 0.32, 1);
}

.liquid-glass-base::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Используем градиент из liquid glass как фон */
    background: var(--liquid-glass-gradient);
    min-height: 100vh;
    color: var(--light);
    line-height: 1.6;
    /* Убираем фиксированную позицию и запрет прокрутки из оригинального liquid glass css,
       так как это полноценное приложение, а не одна страница */
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    height: auto;
    touch-action: auto; /* Разрешаем стандартные действия */
}

/* Основной контейнер */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Шапка - используем стиль liquid glass с отступами и закруглениями */
.app-header {
    /* Добавляем отступы от краев */
    margin: 1rem;
    /* Делаем закругления */
    border-radius: 24px;
    /* Добавляем padding внутрь, чтобы контент не прилипал к краям */
    padding: 0; /* Убираем padding у контейнера, переносим внутрь */

    /* Стиль liquid glass из css.txt */
    background: var(--glass-bg); /* rgba(255, 255, 255, 0.1) */
    backdrop-filter: blur(12px); /* Увеличиваем blur */
    -webkit-backdrop-filter: blur(12px); /* Для Safari */
    border: 1px solid var(--glass-border); /* rgba(255, 255, 255, 0.2) */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15), /* Используем тень из style.txt для соответствия теме */
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1), /* Slightly less bright highlight */
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: sticky; /* Делаем панель прилипающей */
    top: 1rem; /* Отступ от верха экрана равен внешнему margin */
    z-index: 100; /* Убедимся, что панель выше других элементов */
    overflow: hidden; /* Для псевдоэлементов */
}

/* Добавляем внутренние слои для эффекта глубины, как в .liquid-glass из css.txt */
.app-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit; /* Наследуем закругление */
    /* Градиент из .liquid-glass::before */
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 1; /* Поверх фона, но под контентом */
}

.app-header::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: inherit; /* Наследуем закругление */
    /* Градиент из .liquid-glass::after */
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
    z-index: 0; /* Под ::before и контентом */
}

/* Обновляем внутренний контейнер */
.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    /* Переносим padding внутрь .header-content */
    padding: 1rem 2rem; /* То, что было у .app-header */
    position: relative; /* Для z-index */
    z-index: 2; /* Контент поверх псевдоэлементов */
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Кнопка навигации - используем liquid glass */
.nav-button {
    /* background: rgba(255, 255, 255, 0.1); */ /* Убираем оригинальный фон */
    /* color: var(--light); */ /* Убираем оригинальный цвет */
    /* border: 1px solid var(--glass-border); */ /* Убираем оригинальную границу */
    /* border-radius: 16px; */ /* Убираем оригинальный border-radius */
    /* padding: 0.8rem 1.2rem; */ /* Убираем оригинальный padding */
    /* font-size: 0.9rem; */ /* Убираем оригинальный font-size */
    /* font-weight: 600; */ /* Убираем оригинальный font-weight */
    /* cursor: pointer; */ /* Убираем оригинальный cursor */
    /* display: flex; */ /* Убираем оригинальный display */
    /* align-items: center; */ /* Убираем оригинальный align-items */
    /* gap: 0.5rem; */ /* Убираем оригинальный gap */
    /* transition: var(--transition); */ /* Убираем оригинальный transition */
    /* backdrop-filter: blur(10px); */ /* Убираем оригинальный backdrop-filter */
    /* position: absolute; */ /* Убираем оригинальную позицию */
    /* left: 50%; */ /* Убираем оригинальный left */
    /* transform: translateX(-50%); */ /* Убираем оригинальный transform */

    /* Применяем стили liquid glass */
    background: var(--liquid-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--liquid-glass-border);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--liquid-flow-duration) cubic-bezier(0.23, 1, 0.32, 1);
    position: relative; /* Для ripple */
    overflow: hidden; /* Для ripple */
    z-index: 2; /* Поверх ::before */
}
.nav-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    z-index: -1; /* За контентом */
}
.nav-button:hover {
    /* background: rgba(255, 255, 255, 0.2); */ /* Убираем оригинальный hover фон */
    /* transform: translateX(-50%) translateY(-2px); */ /* Убираем оригинальный hover transform */
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */ /* Убираем оригинальный hover box-shadow */

    /* Liquid glass hover */
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.nav-button:active {
    /* transform: translateX(-50%); */ /* Убираем оригинальный active transform */
    transform: translateY(1px) scale(0.98);
    border-color: rgba(255, 255, 255, 0.4);
    transition: all 0.1s cubic-bezier(0.23, 1, 0.32, 1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    z-index: 2; /* Поверх ::before */
}

.header-stats {
    display: flex;
    gap: 1rem;
}

/* Карточки статистики - используем liquid glass */
.stat-card {
    /* background: var(--glass-bg); */ /* Убираем оригинальный фон */
    /* border: 1px solid var(--glass-border); */ /* Убираем оригинальную границу */
    /* border-radius: 16px; */ /* Убираем оригинальный border-radius */
    /* padding: 0.8rem 1.2rem; */ /* Убираем оригинальный padding */
    /* backdrop-filter: blur(10px); */ /* Убираем оригинальный backdrop-filter */
    /* text-align: center; */ /* Убираем оригинальный text-align */
    /* min-width: 120px; */ /* Убираем оригинальный min-width */

    /* Применяем стили liquid glass */
    background: var(--liquid-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--liquid-glass-border);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    text-align: center;
    min-width: 120px;
    position: relative; /* Для ::before */
    overflow: hidden; /* Для ripple, если нужно */
    z-index: 2; /* Поверх ::before */
}
.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    z-index: -1; /* За контентом */
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-top: 0.25rem;
    color: var(--light); /* Убедимся, что цвет контрастирует */
}

/* Кнопка авторизации - используем liquid glass */
.auth-button {
    /* background: linear-gradient(45deg, var(--info), #0ea5e9); */ /* Убираем оригинальный градиент */
    /* color: white; */ /* Убираем оригинальный цвет */
    /* border: none; */ /* Убираем оригинальную границу */
    /* border-radius: 16px; */ /* Убираем оригинальный border-radius */
    /* padding: 0.8rem 1.2rem; */ /* Убираем оригинальный padding */
    /* font-size: 0.9rem; */ /* Убираем оригинальный font-size */
    /* font-weight: 600; */ /* Убираем оригинальный font-weight */
    /* cursor: pointer; */ /* Убираем оригинальный cursor */
    /* display: flex; */ /* Убираем оригинальный display */
    /* align-items: center; */ /* Убираем оригинальный align-items */
    /* gap: 0.5rem; */ /* Убираем оригинальный gap */
    /* transition: var(--transition); */ /* Убираем оригинальный transition */
    /* box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3); */ /* Убираем оригинальный box-shadow */

    /* Применяем стили liquid glass */
    background: linear-gradient(45deg, var(--info), #0ea5e9); /* Сохраняем градиент, но добавим стекло */
    background-blend-mode: overlay; /* Смешиваем градиент со стеклянным фоном */
    border: 1px solid var(--liquid-glass-border);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--liquid-flow-duration) cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
        0 4px 15px rgba(6, 182, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative; /* Для ripple */
    overflow: hidden; /* Для ripple */
    z-index: 2; /* Поверх ::before */
}
.auth-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    z-index: -1; /* За контентом */
}
.auth-button:hover {
    /* transform: translateY(-2px); */ /* Убираем оригинальный hover transform */
    /* box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4); */ /* Убираем оригинальный hover box-shadow */

    /* Liquid glass hover */
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(6, 182, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.auth-button:active {
    /* transform: translateY(0); */ /* Убираем оригинальный active transform */
    transform: translateY(1px) scale(0.98);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 2px 10px rgba(6, 182, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Основной контент */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.content-header h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--light), var(--gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Кнопка добавления - используем liquid glass */
.add-button {
    /* background: linear-gradient(45deg, var(--primary), var(--secondary)); */ /* Убираем оригинальный градиент */
    /* color: white; */ /* Убираем оригинальный цвет */
    /* border: none; */ /* Убираем оригинальную границу */
    /* border-radius: 16px; */ /* Убираем оригинальный border-radius */
    /* padding: 1rem 2rem; */ /* Убираем оригинальный padding */
    /* font-size: 1rem; */ /* Убираем оригинальный font-size */
    /* font-weight: 600; */ /* Убираем оригинальный font-weight */
    /* cursor: pointer; */ /* Убираем оригинальный cursor */
    /* display: flex; */ /* Убираем оригинальный display */
    /* align-items: center; */ /* Убираем оригинальный align-items */
    /* gap: 0.5rem; */ /* Убираем оригинальный gap */
    /* transition: var(--transition); */ /* Убираем оригинальный transition */
    /* box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3); */ /* Убираем оригинальный box-shadow */

    /* Применяем стили liquid glass */
    background: linear-gradient(45deg, var(--primary), var(--secondary)); /* Сохраняем градиент */
    background-blend-mode: overlay;
    border: 1px solid var(--liquid-glass-border);
    border-radius: 16px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--liquid-flow-duration) cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
        0 4px 20px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative; /* Для ripple */
    overflow: hidden; /* Для ripple */
    z-index: 2; /* Поверх ::before */
}
.add-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    z-index: -1; /* За контентом */
}
.add-button:hover {
    /* transform: translateY(-2px); */ /* Убираем оригинальный hover transform */
    /* box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4); */ /* Убираем оригинальный hover box-shadow */

    /* Liquid glass hover */
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 6px 25px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.add-button:active {
    /* transform: translateY(0); */ /* Убираем оригинальный active transform */
    transform: translateY(1px) scale(0.98);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 2px 15px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.1s cubic-bezier(0.23, 1, 0.32, 1);
}

.button-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* Таблица - используем liquid glass */
.table-container {
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2rem;
    /* Применяем стили liquid glass */
    background: var(--liquid-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--liquid-glass-border);
    box-shadow:
        0 8px 32px var(--liquid-glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
}
.table-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    z-index: -1; /* За контентом */
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

th {
    /* background: rgba(30, 41, 59, 0.5); */ /* Убираем оригинальный фон */
    /* color: var(--light); */ /* Убираем оригинальный цвет */
    /* padding: 1.25rem 1rem; */ /* Убираем оригинальный padding */
    /* text-align: left; */ /* Убираем оригинальный text-align */
    /* font-weight: 600; */ /* Убираем оригинальный font-weight */
    /* font-size: 0.85rem; */ /* Убираем оригинальный font-size */
    /* text-transform: uppercase; */ /* Убираем оригинальный text-transform */
    /* letter-spacing: 0.5px; */ /* Убираем оригинальный letter-spacing */

    /* Liquid glass для заголовков */
    background: rgba(30, 41, 59, 0.4); /* Слегка прозрачный фон */
    color: var(--light);
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--liquid-glass-border);
}

td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--liquid-glass-border); /* Используем liquid glass border */
    transition: background-color 0.2s ease; /* Простой transition для hover */
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.05); /* Liquid glass hover для строк */
}

tr {
    cursor: pointer;
}

.position-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
    background: rgba(32, 41, 64, 0.5);
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: default;
    color: #d6e4ff;
}

.position-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.position-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(138, 175, 255, 0.08), transparent);
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.position-badge:hover::after {
    opacity: 1;
}

.badge-chief {
    background: #f97316;
    color: white;
    border: 1px solid #ea580c;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge-deputy {
    background: #f59e0b;
    color: #1e293b;
    border: 1px solid #d97706;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.badge-senior {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
    border: 1px solid #d97706;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.badge-recruiter {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(254, 243, 199, 0.4);
}

.badge-junior {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
    box-shadow: 0 2px 8px rgba(255, 237, 213, 0.3);
}

.calls-count {
    font-weight: 700;
    color: var(--success);
    font-size: 1.1rem;
}

.no-actions-placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
    min-height: 24px;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.action-cell {
    display: flex;
    gap: 0.5rem;
}

/* Иконки действий - используем liquid glass */
.action-icon {
    /* padding: 0.5rem; */ /* Убираем оригинальный padding */
    /* border-radius: 12px; */ /* Убираем оригинальный border-radius */
    /* background: rgba(255, 255, 255, 0.1); */ /* Убираем оригинальный фон */
    /* cursor: pointer; */ /* Убираем оригинальный cursor */
    /* transition: var(--transition); */ /* Убираем оригинальный transition */

    /* Liquid glass для иконок */
    padding: 0.5rem;
    border-radius: 12px;
    background: var(--liquid-glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--liquid-glass-border);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease; /* Быстрее для иконок */
    position: relative; /* Для ::before */
    overflow: hidden; /* Для ripple, если нужно */
    z-index: 2; /* Поверх ::before */
    color: var(--light); /* Убедимся, что цвет контрастирует */
}
.action-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
    z-index: -1; /* За контентом */
}
.action-icon:hover {
    /* background: rgba(255, 255, 255, 0.2); */ /* Убираем оригинальный hover фон */
    /* transform: scale(1.1); */ /* Убираем оригинальный hover transform */

    /* Liquid glass hover */
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
/* Ripple эффект для action-icon */
.action-icon.liquid-ripple {
    position: relative;
    overflow: hidden;
}
.action-icon .ripple {
    position: absolute;
    border-radius: 50%;
    background: var(--liquid-ripple-color);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: liquidRipple 0.6s ease-out;
}

/* Модальные окна - используем liquid glass */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8); /* Полупрозрачный темный оверлей */
    backdrop-filter: blur(2px); /* Легкий blur для оверлея */
    -webkit-backdrop-filter: blur(2px);
}

/* .modal-content - используем liquid glass */
.modal-content {
    /* position: relative; */ /* Убираем оригинальную позицию */
    /* width: 90%; */ /* Убираем оригинальную ширину */
    /* max-width: 500px; */ /* Убираем оригинальную max-width */
    /* max-height: 90vh; */ /* Убираем оригинальную max-height */
    /* overflow-y: auto; */ /* Убираем оригинальный overflow-y */
    /* margin: 1rem; */ /* Убираем оригинальный margin */
    /* z-index: 1001; */ /* Убираем оригинальный z-index */

    /* Liquid glass для модального окна */
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
    z-index: 1001;
    background: var(--liquid-glass-bg);
    backdrop-filter: blur(20px); /* Сильнее, чем у других элементов */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--liquid-glass-border);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-radius: 24px; /* Более крупный радиус */
    z-index: 2; /* Поверх оверлея */
}
.modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    z-index: -1; /* За контентом */
}

.detail-modal {
    max-width: 600px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--liquid-glass-border); /* Liquid glass border */
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Кнопка закрытия - используем liquid glass */
.close-button {
    /* background: none; */ /* Убираем оригинальный фон */
    /* border: none; */ /* Убираем оригинальную границу */
    /* font-size: 2rem; */ /* Убираем оригинальный font-size */
    /* color: var(--gray); */ /* Убираем оригинальный цвет */
    /* cursor: pointer; */ /* Убираем оригинальный cursor */
    /* padding: 0; */ /* Убираем оригинальный padding */
    /* width: 40px; */ /* Убираем оригинальную ширину */
    /* height: 40px; */ /* Убираем оригинальную высоту */
    /* border-radius: 50%; */ /* Убираем оригинальный border-radius */
    /* display: flex; */ /* Убираем оригинальный display */
    /* align-items: center; */ /* Убираем оригинальный align-items */
    /* justify-content: center; */ /* Убираем оригинальный justify-content */
    /* transition: var(--transition); */ /* Убираем оригинальный transition */

    /* Liquid glass для кнопки закрытия */
    background: var(--liquid-glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--liquid-glass-border);
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative; /* Для ::before */
    overflow: hidden; /* Для ripple, если нужно */
    z-index: 2; /* Поверх ::before */
}
.close-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
    z-index: -1; /* За контентом */
}
.close-button:hover {
    /* background: rgba(255, 255, 255, 0.1); */ /* Убираем оригинальный hover фон */
    /* color: var(--light); */ /* Убираем оригинальный hover цвет */

    /* Liquid glass hover */
    background: rgba(255, 255, 255, 0.15);
    color: var(--light);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem;
}

.user-avatar {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
}

.user-info-grid {
    display: grid;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

.edit-field {
    display: none;
    margin-top: 0.5rem;
}

.info-item.editing span {
    display: none;
}

.info-item.editing .edit-field {
    display: block;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/* Кнопки действий - используем liquid glass */
.action-btn {
    /* flex: 1; */ /* Убираем оригинальный flex */
    /* min-width: 140px; */ /* Убираем оригинальный min-width */
    /* padding: 1rem; */ /* Убираем оригинальный padding */
    /* border: none; */ /* Убираем оригинальную границу */
    /* border-radius: 16px; */ /* Убираем оригинальный border-radius */
    /* font-size: 0.9rem; */ /* Убираем оригинальный font-size */
    /* font-weight: 600; */ /* Убираем оригинальный font-weight */
    /* cursor: pointer; */ /* Убираем оригинальный cursor */
    /* display: flex; */ /* Убираем оригинальный display */
    /* align-items: center; */ /* Убираем оригинальный align-items */
    /* justify-content: center; */ /* Убираем оригинальный justify-content */
    /* gap: 0.5rem; */ /* Убираем оригинальный gap */
    /* transition: var(--transition); */ /* Убираем оригинальный transition */

    /* Liquid glass для кнопок действий */
    flex: 1;
    min-width: 140px;
    padding: 1rem;
    border: 1px solid var(--liquid-glass-border);
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--liquid-flow-duration) cubic-bezier(0.23, 1, 0.32, 1);
    position: relative; /* Для ripple */
    overflow: hidden; /* Для ripple */
    z-index: 2; /* Поверх ::before */
    color: var(--light); /* Убедимся, что цвет контрастирует */
}
.action-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    z-index: -1; /* За контентом */
}
.action-btn:hover {
    /* transform: translateY(-2px); */ /* Убираем оригинальный hover transform */
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */ /* Убираем оригинальный hover box-shadow */

    /* Liquid glass hover */
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.increment-btn {
    /* background: linear-gradient(45deg, var(--success), #059669); */ /* Убираем оригинальный градиент */
    /* color: white; */ /* Убираем оригинальный цвет */

    /* Liquid glass с градиентом */
    background: linear-gradient(45deg, var(--success), #059669);
    background-blend-mode: overlay;
    color: white;
    border: 1px solid var(--liquid-glass-border);
    box-shadow:
        0 4px 15px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.increment-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 6px 20px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.reset-btn {
    /* background: linear-gradient(45deg, var(--warning), #d97706); */ /* Убираем оригинальный градиент */
    /* color: white; */ /* Убираем оригинальный цвет */

    /* Liquid glass с градиентом */
    background: linear-gradient(45deg, var(--warning), #d97706);
    background-blend-mode: overlay;
    color: white;
    border: 1px solid var(--liquid-glass-border);
    box-shadow:
        0 4px 15px rgba(245, 158, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.reset-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 6px 20px rgba(245, 158, 11, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--light); /* Убедимся, что цвет контрастирует */
    font-size: 0.9rem;
}

/* Поля ввода - используем liquid glass */
.input-field, .select-field {
    /* width: 100%; */ /* Убираем оригинальную ширину */
    /* padding: 1rem; */ /* Убираем оригинальный padding */
    /* border: 2px solid var(--glass-border); */ /* Убираем оригинальную границу */
    /* border-radius: 16px; */ /* Убираем оригинальный border-radius */
    /* background: rgba(15, 23, 42, 0.5); */ /* Убираем оригинальный фон */
    /* color: var(--light); */ /* Убираем оригинальный цвет */
    /* font-size: 1rem; */ /* Убираем оригинальный font-size */
    /* transition: var(--transition); */ /* Убираем оригинальный transition */
    /* backdrop-filter: blur(5px); */ /* Убираем оригинальный backdrop-filter */

    /* Liquid glass для полей ввода */
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--liquid-glass-border);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.4); /* Полупрозрачный фон */
    color: var(--light);
    font-size: 1rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.input-field:focus, .select-field:focus {
    /* outline: none; */ /* Убираем оригинальный outline */
    /* border-color: var(--primary); */ /* Убираем оригинальный border-color */
    /* box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3); */ /* Убираем оригинальный box-shadow */

    /* Liquid glass focus */
    outline: none;
    border-color: var(--primary);
    box-shadow:
        0 0 0 2px rgba(99, 102, 241, 0.5),
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.input-field::placeholder {
    color: var(--gray);
}

/* Кнопки в модальных окнах - используем liquid glass */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid var(--liquid-glass-border); /* Liquid glass border */
    flex-wrap: wrap;
    gap: 1rem;
}

.right-buttons {
    display: flex;
    gap: 1rem;
}

/* Базовый класс для кнопок - используем liquid glass */
.btn {
    /* padding: 0.8rem 1.5rem; */ /* Убираем оригинальный padding */
    /* border: none; */ /* Убираем оригинальную границу */
    /* border-radius: 16px; */ /* Убираем оригинальный border-radius */
    /* font-size: 0.9rem; */ /* Убираем оригинальный font-size */
    /* font-weight: 600; */ /* Убираем оригинальный font-weight */
    /* cursor: pointer; */ /* Убираем оригинальный cursor */
    /* transition: var(--transition); */ /* Убираем оригинальный transition */
    /* display: flex; */ /* Убираем оригинальный display */
    /* align-items: center; */ /* Убираем оригинальный align-items */
    /* gap: 0.5rem; */ /* Убираем оригинальный gap */

    /* Liquid glass для кнопок */
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--liquid-glass-border);
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--liquid-flow-duration) cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative; /* Для ripple */
    overflow: hidden; /* Для ripple */
    z-index: 2; /* Поверх ::before */
    color: var(--light); /* Убедимся, что цвет контрастирует */
    background: var(--liquid-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    z-index: -1; /* За контентом */
}
.btn:hover {
    /* transform: translateY(-2px); */ /* Убираем оригинальный hover transform */

    /* Liquid glass hover */
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.btn:active {
    /* transform: translateY(0); */ /* Убираем оригинальный active transform */
    transform: translateY(1px) scale(0.98);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Основная кнопка - используем liquid glass */
.btn-primary {
    /* background: linear-gradient(45deg, var(--primary), var(--primary-dark)); */ /* Убираем оригинальный градиент */
    /* color: white; */ /* Убираем оригинальный цвет */
    /* box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); */ /* Убираем оригинальный box-shadow */

    /* Liquid glass с градиентом */
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    background-blend-mode: overlay;
    color: white;
    border: 1px solid var(--liquid-glass-border);
    box-shadow:
        0 4px 15px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.btn-primary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 6px 20px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Вторичная кнопка - используем liquid glass */
.btn-secondary {
    /* background: rgba(255, 255, 255, 0.1); */ /* Убираем оригинальный фон */
    /* color: var(--light); */ /* Убираем оригинальный цвет */
    /* border: 1px solid var(--glass-border); */ /* Убираем оригинальную границу */

    /* Liquid glass */
    background: var(--liquid-glass-bg);
    color: var(--light);
    border: 1px solid var(--liquid-glass-border);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Кнопка опасности - используем liquid glass */
.btn-danger {
    /* background: linear-gradient(45deg, var(--danger), #dc2626); */ /* Убираем оригинальный градиент */
    /* color: white; */ /* Убираем оригинальный цвет */
    /* box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); */ /* Убираем оригинальный box-shadow */

    /* Liquid glass с градиентом */
    background: linear-gradient(45deg, var(--danger), #dc2626);
    background-blend-mode: overlay;
    color: white;
    border: 1px solid var(--liquid-glass-border);
    box-shadow:
        0 4px 15px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.btn-danger:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 6px 20px rgba(239, 68, 68, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 1.1rem;
}

.error-message {
    color: var(--danger);
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-button {
        position: static;
        transform: none;
        margin: 1rem 0;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .header-stats {
        justify-content: center;
        width: 100%;
    }

    .content-header {
        flex-direction: column;
        text-align: center;
    }

    .main-content {
        padding: 1rem;
    }

    .modal-content {
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }

    .modal-footer {
        flex-direction: column;
    }

    .right-buttons {
        width: 100%;
        justify-content: center;
    }

    .user-info-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    th, td {
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
    }

    .position-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 1rem;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .content-header h2 {
        font-size: 1.5rem;
    }

    .add-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .stat-card {
        padding: 0.6rem 0.8rem;
        min-width: 100px;
    }

    .stat-value {
        font-size: 1.2rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-container {
    animation: fadeIn 0.6s ease-out;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Плавные переходы */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Панель уведомлений - стили Liquid Glass */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Начальная позиция ниже экрана */
    padding: 12px 20px;
    border-radius: 16px; /* Закругление как у других элементов Liquid Glass */
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    z-index: 1000;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none; /* Чтобы не мешала кликам */
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Плавные анимации */
    min-width: 200px;
    justify-content: center;
    /* Liquid Glass эффект */
    background: var(--liquid-glass-bg); /* Фон из переменных */
    backdrop-filter: blur(12px); /* Blur эффект */
    -webkit-backdrop-filter: blur(12px); /* Для Safari */
    border: 1px solid var(--liquid-glass-border); /* Граница из переменных */
    box-shadow: 0 6px 20px var(--liquid-glass-shadow), /* Тень из переменных */
                inset 0 1px 0 rgba(255, 255, 255, 0.1), /* Внутреннее свечение */
                inset 0 -1px 0 rgba(0, 0, 0, 0.1); /* Внутренняя тень */
    overflow: hidden; /* Для псевдоэлементов */
}

/* Псевдоэлементы для дополнительного эффекта глубины */
.notification::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    z-index: -1; /* Позади контента */
}

/* Стили для разных типов уведомлений - используются переменные темы */
.notification.saving {
    /* Можно оставить базовые стили Liquid Glass или добавить акцент */
    /* background: rgba(59, 130, 246, 0.85); */ /* Убрано, используем переменные */
    /* border-color: rgba(147, 197, 253, 0.3); */ /* Убрано, используем переменные */
    /* box-shadow: ... */ /* Убрано, используем переменные */
    /* Добавим акцентный цвет к тени или границе при необходимости */
}

.notification.success {
    /* background: rgba(16, 185, 129, 0.85); */ /* Убрано */
    /* border-color: rgba(110, 231, 183, 0.3); */ /* Убрано */
    /* box-shadow: ... */ /* Убрано */
    /* Можно добавить акцент, например, к box-shadow */
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3), /* Акцентный цвет тени */
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.notification.error {
    /* background: rgba(239, 68, 68, 0.85); */ /* Убрано */
    /* border-color: rgba(252, 165, 165, 0.3); */ /* Убрано */
    /* box-shadow: ... */ /* Убрано */
    /* Можно добавить акцент, например, к box-shadow */
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3), /* Акцентный цвет тени */
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Класс для отображения уведомления */
.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* Поднимаем в центр нижней части */
}

/* Скрытое состояние */
.notification.hidden {
    display: flex; /* Важно для анимации, не none */
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
}

/* Иконка уведомления */
.notification-icon {
    font-size: 1.2rem;
    animation: none; /* По умолчанию без анимации */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Анимация для иконки загрузки */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notification-icon.loading {
    animation: spin 1s linear infinite;
}