body {
    font-family: 'Inter', sans-serif;
    font-weight: 400; /* Изменено с 900 на 400 для нормального веса шрифта */
    color: #fff;
    margin: 0;
    background: #001038;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #001038;
    z-index: 1002;
}

.back-to-home {
    color: #aaa;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.back-to-home:hover {
    text-decoration: underline;
}

.back-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
    position: relative;
    padding-top: 100px; /* Увеличено для компенсации шапки */
    pointer-events: auto;
}

.content {
    max-width: 800px;
    width: 100%;
    padding: 20px;
    background-color: #002366;
    border-radius: 20px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin-bottom: 20px;
    max-height: calc(100vh - 140px);
}

.content h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 400; /* Изменено на нормальный вес шрифта */
}

.search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.search-box {
    flex-grow: 1;
    padding: 10px;
    border: 2px solid #0047FF;
    border-radius: 10px;
    font-size: 18px;
    margin-right: 10px;
    box-sizing: border-box;
}

.search-button {
    padding: 10px;
    border: none;
    background-color: #0047FF;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
}

.table-container {
    flex-grow: 1;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
    max-height: 600px;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th, td {
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #0047FF;
}

th {
    background-color: #0033CC;
}

tr:nth-child(even) {
    background-color: #001F66;
}

tr:hover {
    background-color: #001F4D;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 20px;
    color: #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 400; /* Добавлено для нормального веса шрифта */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: 400; /* Заменено на нормальный вес шрифта */
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    body {
        justify-content: center;
        overflow-y: auto;
    }

    .content {
        padding: 10px;
        margin: 0;
        min-height: calc(100vh - 60px);
        justify-content: flex-start;
        flex-grow: 1;
        overflow-y: auto;
    }

    .search-container {
        flex-direction: row;
        align-items: center;
    }

    .search-box {
        width: calc(100% - 70px);
        margin-bottom: 0;
    }

    .search-button {
        font-size: 16px;
        padding: 10px;
        width: auto;
    }

    .table-container {
        flex-grow: 1;
        overflow-y: auto;
        width: 100%;
        box-sizing: border-box;
        max-height: calc(100vh - 140px);
    }

    th, td {
        font-size: 14px;
    }

    .modal-content {
        width: 90%;
    }
}
