@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-display: swap;
    font-weight: 100 900;
    font-style: normal;
}

:root {
    --font-main: 'Inter', sans-serif;

    /* Цветовая палитра */
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --primary-dark: #1D4ED8;
    --primary-hover: #1D4ED8;
    --primary-soft: #EFF6FF;
    --accent: #8B5CF6;
    --success: #10B981;
    --white: #FFFFFF;

    /* Фоны и границы */
    --bg-page: #f1f5f9;
    --bg-content: #F8FAFC;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --bg-soft: #F1F5F9;

    /* Текст */
    --text-primary: #0F172A;
    --text-muted: #64748B;
    --text-secondary: #475569;
    --text-gray: #64748B;
    --text-dark: #1E293B;

    /* Геометрия */
    --radius: 20px;
    --sidebar-width: 260px;
    --max-width: 1200px;
    --gap: 20px;
    --radius-sm: 12px;

    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-active: 0 15px 30px -10px rgba(37, 99, 235, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main), sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    padding-bottom: 60px;
}

.island {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.content-section {
    display: none;
}

/* Все секции скрыты по умолчанию */
.content-section.active {
    display: block;
}

/* ГЛАВНАЯ СЕТКА (MAIN GRID LAYOUT */
.main-content-grid {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-areas:
        "hero hero"
        "sidebar content"
        "footer footer";
    gap: var(--gap);
    max-width: var(--max-width);
    width: 100%;
    margin: 25px auto;
    padding: 0 20px;
}

/* САЙДБАР-ОСТРОВ (NAVIGATION)*/
.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover:not(.active) {
    background: var(--bg-page);
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

@media (max-width: 992px) {
    .nav-link {
        white-space: nowrap;
    }
}

/* ФУТЕР-ОСТРОВ (FOOTER) */
.global-footer {
    grid-area: footer;
    padding: 30px 50px;
}

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

.footer-info p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

/* АДАПТИВНОСТЬ (RESPONSIVE) */
/* Планшеты и смартфоны */
@media (max-width: 992px) {
    .main-content-grid {
        /* Перестраиваем сетку в одну колонку */
        grid-template-columns: 1fr;
        grid-template-areas:
            "hero"
            "sidebar"
            "content"
            "footer";
    }
}

/* Состояние пустых результатов */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

/* Контейнер карточки */
#empPersonalInfoWrapper.editable-card {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#empPersonalInfoWrapper.editable-card:hover {
    border-color: #3b82f6;
}