* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6fa;
    color: #24282d;
    font-size: clamp(14px, 1.1vw, 18px);
}

a {
    text-decoration: none;
}

.star-layout {
    min-height: 100vh;

    display: flex;

    width: 100%;

    background: #f5f6fa;
}

.star-sidebar {
    width: 15%;
    min-width: 180px;
    max-width: 280px;

    min-height: 100vh;

    background: #fff;

    border-right: 1px solid #e4e5e9;

    transition: transform 0.25s ease;

    z-index: 1000;
}

.star-admin-sidebar {
    width: 15%;
    min-width: 180px;
    max-width: 280px;

    min-height: 100vh;

    background: #e6f9e7;

    border-right: 1px solid #e4e5e9;

    transition: transform 0.25s ease;

    z-index: 1000;
}

.star-menu-item.active {
    background: #f7f0fb;
    color: #8839c2;
}

.star-menu-item.active .star-menu-icon {
    color: #8839c2;
}

.star-sidebar-logo {
    height: clamp(90px, 10vh, 120px);

    padding: 1%;

    border-bottom: 1px solid #e5e6e9;
}

.star-sidebar-logo-box {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 5%;
}

.star-sidebar-logo-box img {
    width: auto;
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}

.star-sidebar-menu {
    padding: 5% 4%;
}

.star-menu-item {
    width: 100%;
    min-height: 43px;

    display: flex;
    align-items: center;

    padding: 6px 5%;

    margin-bottom: 2px;

    color: #35393f;

    font-size: clamp(14px, 1vw, 16px);

    border-radius: 5px;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.star-menu-item:hover {
    background: #f7f0fb;
    color: #8839c2;
}

.star-menu-icon {
    width: 22px;
    min-width: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 5%;

    color: #923bd0;
}

.star-menu-text {
    min-width: 0;

    line-height: 1.25;

    overflow-wrap: anywhere;
}

.star-menu-arrow {
    margin-left: auto;

    font-size: clamp(14px, 1vw, 17px);

    color: #565b61;

    transition: transform 0.15s ease;
}

.star-submenu-toggle {
    cursor: pointer;

    list-style: none;

    user-select: none;
}

.star-submenu-toggle::-webkit-details-marker {
    display: none;
}

.star-submenu[open] > .star-submenu-toggle .star-menu-arrow {
    transform: rotate(90deg);
}

.star-submenu-item {
    min-height: 36px;

    padding: 6px 5% 6px calc(10% + 22px);

    font-size: clamp(13px, 0.9vw, 15px);
}

.star-sidebar-divider {
    height: 1px;

    background: #e5e6e9;

    margin: 7% 3%;
}

.star-main {
    flex: 1;

    width: 85%;

    min-width: 0;
    min-height: 100vh;
}

.star-header {
    min-height: clamp(80px, 10vh, 120px);

    display: flex;
    align-items: center;

    padding: 0 2%;

    background: #ffffff;

    border-bottom: 1px solid #e0e1e5;
}

.star-header-content {
    min-width: 0;
    width: 100%;
}

.star-header-title {
    margin: 0;

    color: #17242c;

    font-size: clamp(20px, 1.8vw, 26px);

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 0.15px;
}

.star-header-admin-title {
    margin: 0;

    color: #a40311;

    font-size: clamp(20px, 1.8vw, 26px);

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 0.15px;
}

.star-header-subtitle {
    margin-top: 0.4em;

    color: #333a40;

    font-size: clamp(14px, 1.25vw, 18px);

    line-height: 1.2;
}

.star-header-admin-subtitle {
    margin-top: 0.4em;

    color: #a40311;

    font-size: clamp(14px, 1.25vw, 18px);

    line-height: 1.2;
}

.star-header-actions {
    position: relative;

    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;

    margin-left: 16px;
}

.star-header-actions .star-mobile-menu-button {
    margin-left: 0;
}

.star-user-menu {
    position: relative;
}

.star-user-trigger {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 6px 10px 6px 6px;

    border-radius: 12px;

    color: #24282d;

    cursor: pointer;

    list-style: none;

    user-select: none;

    transition: background-color 0.15s;
}

.star-user-trigger::-webkit-details-marker {
    display: none;
}

.star-user-trigger:hover,
.star-user-menu[open] .star-user-trigger {
    background: #f3ebfa;
}

.star-user-trigger:focus-visible {
    outline: 2px solid #8c3bc7;
    outline-offset: 2px;
}

.star-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: linear-gradient(135deg, #a259d9, #7a2fb3);

    color: #fff;

    font-size: 17px;
    font-weight: 700;

    line-height: 1;
}

.star-user-avatar-lg {
    width: 46px;
    height: 46px;

    font-size: 19px;
}

.star-user-meta {
    display: flex;
    flex-direction: column;

    min-width: 0;

    line-height: 1.25;
}

.star-user-name {
    max-width: 200px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: #17242c;

    font-size: 15px;
    font-weight: 700;
}

.star-user-meta-role {
    color: #6b7280;

    font-size: 13px;
}

.star-user-caret {
    color: #6b7280;

    transition: transform 0.15s;
}

.star-user-menu[open] .star-user-caret {
    transform: rotate(180deg);
}

.star-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;

    width: 280px;
    max-width: calc(100vw - 24px);

    border: 1px solid #e0e1e5;
    border-radius: 14px;

    background: #fff;

    box-shadow: 0 12px 32px rgba(23, 36, 44, 0.14);

    overflow: hidden;
}

.star-user-info {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px;

    background: #faf7fd;

    border-bottom: 1px solid #eef0f3;
}

.star-user-info-text {
    min-width: 0;
}

.star-user-info-name {
    color: #17242c;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.25;

    overflow-wrap: anywhere;
}

.star-user-info-username {
    margin-top: 2px;

    color: #6b7280;

    font-size: 13px;

    overflow-wrap: anywhere;
}

.star-user-role {
    display: inline-block;

    margin-top: 8px;
    padding: 3px 10px;

    border-radius: 999px;

    background: #ebdcf7;

    color: #7a2fb3;

    font-size: 12px;
    font-weight: 600;
}

.star-user-school {
    padding: 12px 16px;

    border-bottom: 1px solid #eef0f3;

    color: #333a40;

    font-size: 13px;

    line-height: 1.35;
}

.star-user-school-label {
    margin-bottom: 2px;

    color: #6b7280;

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.star-user-logout {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;

    padding: 13px 16px;

    border: 0;

    background: none;

    color: #a40311;

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;
}

.star-user-logout:hover {
    background: #fdf2f3;
}

.star-user-logout-icon {
    width: 16px;
    height: 16px;
}

.star-content {
    width: 100%;

    padding: 2% 2.5% 4%;

    text-align: left;
}

.star-svg {
    width: 1.1em;
    height: 1.1em;

    stroke: currentColor;

    fill: none;

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.star-mobile-menu-button {
    display: none;

    width: clamp(40px, 5vw, 43px);
    height: clamp(40px, 5vw, 43px);

    align-items: center;
    justify-content: center;

    margin-left: auto;

    border: 1px solid #dedfe4;

    border-radius: 7px;

    background: #fff;

    color: #8c3bc7;

    cursor: pointer;

    font-size: clamp(22px, 3vw, 25px);

    line-height: 1;
}

.star-menu-overlay {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.25);

    z-index: 900;
}

@media (max-width: 800px) {
    .star-sidebar,
    .star-admin-sidebar {
        position: fixed;

        top: 0;
        left: 0;
        bottom: 0;

        width: 70%;
        min-width: 250px;
        max-width: 320px;

        transform: translateX(-100%);

        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.12);
    }

    .star-sidebar.open,
    .star-admin-sidebar.open {
        transform: translateX(0);
    }

    .star-sidebar-logo-box {
        width: 100%;
    }

    .star-menu-item {
        min-height: 48px;

        font-size: clamp(15px, 2.2vw, 17px);
    }

    .star-menu-icon {
        width: 25px;
        min-width: 25px;
    }

    .star-menu-arrow {
        font-size: clamp(16px, 2.5vw, 18px);
    }

    .star-mobile-menu-button {
        display: flex;
    }

    .star-menu-overlay.open {
        display: block;
    }

    .star-main {
        width: 100%;
    }

    .star-header {
        min-height: 80px;
        height: auto;

        padding: 2% 3%;
    }

    .star-header-title {
        font-size: clamp(18px, 3vw, 21px);
    }

    .star-header-subtitle {
        font-size: clamp(13px, 2vw, 15px);
    }

    .star-header-admin-title {
        font-size: clamp(17px, 2.8vw, 21px);
    }

    .star-header-admin-subtitle {
        font-size: clamp(12px, 1.9vw, 14px);
    }

    .star-content {
        padding: 2.5% 3% 6%;
    }
}

@media (max-width: 550px) {
    .star-header {
        padding: 3%;
    }

    .star-header-title {
        font-size: clamp(16px, 4vw, 19px);
    }

    .star-header-subtitle {
        font-size: clamp(12px, 3vw, 14px);
    }

    .star-header-admin-title {
        font-size: clamp(14px, 4.2vw, 17px);
        letter-spacing: 0;
    }

    .star-header-admin-subtitle {
        margin-top: 0.3em;

        font-size: clamp(11px, 3vw, 13px);
    }

    .star-mobile-menu-button {
        width: 40px;
        min-width: 40px;
        height: 40px;

        border-radius: 10px;
    }

    .star-header-actions {
        gap: 8px;

        margin-left: 10px;
    }

    .star-user-menu {
        position: static;
    }

    .star-user-meta,
    .star-user-caret {
        display: none;
    }

    .star-user-trigger {
        padding: 0;

        border-radius: 50%;
    }

    .star-user-trigger:hover,
    .star-user-menu[open] .star-user-trigger {
        background: none;
    }

    .star-user-menu[open] .star-user-avatar {
        box-shadow: 0 0 0 3px #e6d5f4;
    }

    .star-user-dropdown {
        width: min(280px, calc(100vw - 24px));
    }

    .star-content {
        padding: 3% 3.5% 7%;
    }
}

.reg_button {
    margin-top: 25px;
}

.odk-download {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: 50px;
    gap: clamp(6px, 0.6vw, 10px);
}

.odk-down-icon {
    width: clamp(20px, 1.5vw, 24px);
    height: clamp(20px, 1.5vw, 24px);

    min-width: clamp(20px, 1.5vw, 24px);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8d3bc7;
}

.odk-down-icon svg {
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.news-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.news-content th,
.news-content td {
    border: 1px solid #d8c5e8;
    padding: 10px 14px;
}

.news-content th {
    background: #f3eafa;
    color: #8d3bc7;
    font-weight: 600;
}

.news-content tr:nth-child(even) {
    background: #faf7fc;
}

.finalize-check {
    stroke: #dc2626;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
