body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.app {
    display: grid;
    grid-template-columns: 220px 1fr;
    height: 100vh;
    overflow: hidden;
}

.navigation-frame {
    background-color: #f0f2f5;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.navigation-frame-label {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    padding: 0 15px;
    margin-bottom: 30px;
}

.logo-image {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.menu-button {
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: left;
}

.menu-button:hover {
    background-color: #e4e6eb;
}

.button-image {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.menu-button span {
    font-size: 14px;
    color: #333;
}

.content-area {
    padding: 20px;
    overflow-y: auto;
    background-color: #ffffff;
    position: relative;
}

.page {
    display: block;
}

.page h2 {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-bottom: 16px;
    margin-top: 40px;
}

/* Под-вкладки */
.tabs {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.tab:hover {
    background-color: #f0f2f5;
}

.tab.active {
    border-bottom: 2px solid #007bff;
    font-weight: bold;
    color: #007bff;
}

.tab-content {
    margin-top: 16px;
}

/* Поиск */
.search-input,
.search-users {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

.search-input:focus,
.search-users:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Таблица оборудования */
.equipment-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.equipment-table th,
.equipment-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
}

.equipment-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #444;
}

.equipment-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.equipment-table tr:hover {
    background-color: #eaf3ff;
}

/* Таблица пользователей */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.users-table th,
.users-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}

.users-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #444;
    position: sticky;
    top: 0;
    z-index: 1;
}

.users-table tr:nth-child(even) {
    background-color: #f7f7f7;
}

.users-table tr:hover {
    background-color: #eaf3ff;
}

/* Контейнер таблицы пользователей со скроллом */
#users-table-container > div {
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Детали пользователя */
#user-detail-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

#user-detail-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

/* Кнопки */
.buttons-container {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 12px;
}

.action-button {
    padding: 9px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.1s;
}

.action-button:hover {
    background-color: #0056b3;
}

.action-button:active {
    transform: scale(0.98);
}

/* Кнопка "Вернуться к таблице" */
#back-to-table {
    background-color: #6c757d;
    margin-top: 20px;
}

#back-to-table:hover {
    background-color: #545b62;
}

/* Профиль */
.user-profile {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    align-items: center;
}

.profile-button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.profile-button:hover {
    background-color: #e4e6eb;
}

.user-name {
    margin-right: 8px;
}

.profile-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.user-profile:hover .profile-dropdown {
    display: block;
}

.profile-dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.profile-dropdown a:hover {
    background-color: #f0f2f5;
}


#admins .users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#admins .users-table th,
#admins .users-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}

#admins .users-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #444;
}

#admins .users-table tr:nth-child(even) {
    background-color: #f7f7f7;
}

#admins .users-table tr:hover {
    background-color: #eaf3ff;
}

#admins .tabs {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

#admins .tab {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

#admins .tab.active {
    border-bottom: 2px solid #007bff;
    font-weight: bold;
    color: #007bff;
}