/* base.css — глобальные стили, reset, layout */
/* Переменные вынесены в base/variables.css */

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-page, #f4f5f7);
    min-height: 100vh;
    overflow-x: hidden;
}

body.no-sidebar {
    --sidebar-width: 0px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

#content a {
    color: #2e1408;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

#content a:hover {
    text-decoration: underline;
}

#tutorialIcon{
    display: none !important;
}

/* сакура отключена */
.sakura-layer,
.sakura-petal {
    display: none !important;
    animation: none !important;
}

/* Левое меню (sidebar) — базовая заготовка, детали в teacherCabinet.css */
.menu {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    max-height: 0;
    overflow: hidden;
    width: var(--sidebar-width);
    height: 100vh;
    padding-top: 20px;
    padding-left: 10px;
    padding-right: 10px;
    background: transparent;
    border-right: none;
}

/* wrapper */
.wrapper {
    min-height: 80vh;
}

body.no-sidebar .menu {
    display: none;
}
.menu a {
    display: block;
    color: rgb(57, 31, 9);
    padding: 10px 12px;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 12px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

/* #code-room-student-panel {
    
} */
#code-room-student-panel {
    padding: 5%;
    min-width: 200px;

    border-radius: 50px;
    background: linear-gradient(90deg, #fb923c, #fbbf24);
    background-size: 200% 100%;
    animation: gradientAnimation 5s ease infinite;
    
    color: #4b3202; /* Цвет текста */
    text-align: center; /* Центрирование текста */
}

@keyframes gradientAnimation {
    0% {
        background-position: 100% 50%; /* Начальная позиция справа */
    }
    50% {
        background-position: 0% 50%; /* Позиция в центре */
    }
    100% {
        background-position: 100% 50%; /* Конечная позиция справа */
    }
}



#content {
    margin-left: calc(var(--sidebar-width) + max(0px, (100% - var(--sidebar-width) - 1160px) / 2));
    
    min-height: 74vh;

    padding: 20px;
    background-color: transparent;
    border-style: none;
    border-radius: 10px;
    /* box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); */
    margin-top: 18px;
    max-width: 1160px;
    margin-right: auto;
    /* background: var(--surface); */
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    /* backdrop-filter: blur(10px); */
    /* -webkit-backdrop-filter: blur(10px); */
    /* backdrop-filter: none;
    -webkit-backdrop-filter: none; */
    animation: pageEnter 420ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #content {
        animation: none;
    }
}

#back-content {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;

    /* display: none; */

    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #f4f5f7 0%, #eef1f4 100%);
    /* background-image: url('/static/app/images/cold_frame3.png'); */
    /* background-size: cover; */

    text-align: right;
}

#back-content-static-corner {
    width: 30%;
    scale: 2.5;
    right: 0;
    left: auto;
    margin-top: 18vh;

    z-index: -1;
}

#back-content-dinamic {
    width: 8%;

    position: relative;
    top: 7vh;
    right: -18%;
    left: auto;

    z-index: 0;
    animation-duration: 3s;
    animation-name: spiderDown;
}

#back-content-frame {
    width: 100%;
    height: 100%;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.22;

    z-index: 0;
    object-fit: cover;
    object-position: right center;
    animation-duration: 4s;
    animation-name: startFrozen;
}

@keyframes spiderDown {
    from {
        top: 3vh;
    }

    to {
        top: 7vh;
    }
}

@keyframes spiderUp {
    from {
        top: 7vh;
    }

    to {
        top: 3vh;
    }
}

@keyframes startFrozen {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.2;
    }
}

/* Index */
.ee-news {
    color: #166534;
    font-weight: 600;
}



/* Адаптивность */
@media (max-width: 768px) {
    .menu {
        width: 100%;
        height: auto;
        position: static;
        padding: 10px;
    }
    #content {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
        padding: 10px;
    }
    .prst {
        width: 90%;
    }

    #back-content {
        height: 100dvh;
        min-height: 100%;
        background-attachment: scroll;
    }
}

.actionBut_stidentAct{
    padding: 15px 30px; /* Отступы кнопки */
    border: none; /* Убираем границу */
    border-radius: 5px; /* Закругленные углы кнопки */
    background-color: #4CAF50; /* Цвет фона кнопки */
    color: white; /* Цвет текста кнопки */
    font-size: 16px; /* Размер шрифта */
    cursor: pointer; /* Указатель мыши при наведении */
    transition: transform 0.1s ease, background-color 0.1s ease; /* Плавный переход для анимации */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень для кнопки */
}

.actionBut_stidentAct:hover {
    transform: scale(0.95); /* Уменьшаем кнопку при нажатии */
    background-color: #45a049; /* Меняем цвет фона при нажатии */
}

/* Иконки рядом с именем пользователя */
.user-type-icon {
    width: 70px;           /* тот же размер, что и логотип */
    height: auto;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 50%;    /* опционально: можно убрать */
}

/* .hero-section удалён — перекрыт новым about-hero в navigation/about.css */

/* ===== СТИЛИ ФУТЕРА ===== */
.footer{
    width: 100%;
    height: 8vh;
    font-size: 12pt;
    margin-top: auto;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 5%;
    text-align: center;
}

.footer p {
    margin: 0;
    width: 100%;
}

/* ===== ПЛАВАЮЩАЯ КНОПКА «ДОСТУП ОГРАНИЧЕН» ===== */
.access-restricted-badge {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9980;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    min-width: 220px;
    background: #38353d;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
    animation: accessRestrictedPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards,
               accessRestrictedPulse 3s ease-in-out infinite 0.4s;
}

.access-restricted-badge:hover {
    background: #46424d;
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 107, 0, 0.35);
    transform: translateX(-50%) translateY(-2px);
}

.access-restricted-badge:active {
    transform: translateX(-50%) scale(0.96);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.access-restricted-badge__title {
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.access-restricted-badge__sub {
    display: block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 3px;
    letter-spacing: 0.01em;
    transition: color 0.15s ease;
}

.access-restricted-badge.is-busy {
    opacity: 0.85;
    cursor: wait;
    pointer-events: none;
}

.access-restricted-badge.is-busy .access-restricted-badge__sub {
    color: #ff9800;
}

@keyframes accessRestrictedPop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes accessRestrictedPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 107, 0, 0);
    }
    50% {
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(255, 107, 0, 0.35);
    }
}

@media (max-width: 768px) {
    .access-restricted-badge {
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        padding: 10px 22px;
        min-width: 200px;
    }
    .access-restricted-badge__title {
        font-size: 15px;
    }
    .access-restricted-badge__sub {
        font-size: 11.5px;
    }
}
