* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #000000;
    overflow-x: hidden;
}

/* Кастомное уведомление */
.notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.4s ease;
    min-width: 300px;
    text-align: center;
}

.notification.show {
    top: 30px;
}

.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.content {
    flex: 1;
    padding: 80px 40px 40px 40px;
    background-color: #f5f5f5;
    transition: margin-left 0.3s ease;
    margin-left: 0;
}

.content.shifted {
    margin-left: 280px;
}

/* Гамбургер кнопка */
.hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #3182ce;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.hamburger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Боковое меню */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #3182ce;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    z-index: 1000;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}

.sidebar-header p {
    font-size: 14px;
    color: #cccccc;
    font-weight: 400;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    background: none;
    border-left: 4px solid transparent;
    font-weight: 500;
}

.menu-item svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #ffffff;
}

.menu-item:hover svg {
    transform: scale(1.1);
}

.menu-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: #ffffff;
}

.menu-item.active svg {
    transform: scale(1.1);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    color: #000000;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
}

/* Стили для контента */
.section {
    display: none;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section.active {
    display: block;
}

.section h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #000000;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3182ce;
    border-radius: 2px;
}

.profile-info {
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-info p {
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.profile-info strong {
    display: inline-block;
    width: 150px;
    color: #333333;
    font-weight: 600;
}

/* Таблица входов */
.registrations-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.registrations-table th,
.registrations-table td {
    padding: 16px 20px;
    text-align: left;
}

.registrations-table th {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.registrations-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.registrations-table tbody tr:last-child {
    border-bottom: none;
}

.registrations-table tbody tr:hover {
    background-color: #f8f8f8;
    transform: scale(1.01);
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
    font-style: italic;
    font-size: 18px;
}

/* Заглушки для разделов */
.coming-soon {
    text-align: center;
    padding: 80px 20px;
    color: #666666;
}

.coming-soon h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333333;
}

.coming-soon p {
    font-size: 18px;
}

/* Кнопка добавить тест */
.add-test-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.add-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.add-test-btn svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #000000;
    font-weight: 700;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    color: #333333;
}

.form-group select,
.form-group input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background-color: #ffffff;
    color: #000000;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group select:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group input[type="text"] {
    margin-top: 10px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background-color: #f0f0f0;
}

.radio-option input[type="radio"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-option label {
    flex: 1;
    cursor: pointer;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-btn-cancel {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.modal-btn-cancel:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.modal-btn-continue {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.hidden {
    display: none;
}

/* Скроллбар для сайдбара */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Скроллбар для модального окна */
.modal::-webkit-scrollbar {
    width: 8px;
}

.modal::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Сетка тестов */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.test-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #000000;
}

.test-card-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.test-card-header h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #000000;
}

.test-questions-count {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    color: #666666;
    font-weight: 500;
}

.test-card-body {
    margin-bottom: 15px;
}

.test-card-body p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666666;
}

.test-card-body strong {
    color: #000000;
}

.test-card-actions {
    display: flex;
    gap: 10px;
}

.btn-edit,
.btn-delete {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-edit {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #ffffff;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-delete {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.btn-delete:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Список учеников */
.students-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.student-item {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.student-item:hover {
    border-color: #000000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.student-checkbox {
    flex-shrink: 0;
}

.student-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.student-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.student-name {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
}

.student-date {
    font-size: 13px;
    color: #666666;
}

.student-actions {
    flex-shrink: 0;
}

.btn-delete-small {
    padding: 8px 16px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-delete-small:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-show-data {
    padding: 8px 16px;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-right: 8px;
}

.btn-show-data:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Заголовок раздела учеников */
.students-header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Заголовок раздела тестов */
.tests-header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.change-result-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.change-result-type-btn svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.change-result-type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.change-result-type-btn.hidden {
    display: none;
}

/* Чекбокс выбрать все */
.select-all-container {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    display: inline-block;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.select-all-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Чекбокс в карточке теста */
.test-card-checkbox {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.test-card-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.test-card {
    position: relative;
}

.test-card-title {
    cursor: pointer;
    user-select: none;
}

.add-to-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.add-to-group-btn svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.add-to-group-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.add-to-group-btn.hidden {
    display: none;
}

/* Модальное окно с данными ученика */
.modal-small {
    max-width: 450px;
}

.student-data-info {
    margin: 20px 0;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-weight: 600;
    color: #333333;
}

.data-value {
    color: #666666;
    font-weight: 500;
}

/* Список тестов в модальном окне */
.tests-checkbox-list {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    background-color: #f0f0f0;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-option label {
    cursor: pointer;
    font-size: 15px;
    flex: 1;
}

.selected-info {
    margin: 15px 0;
    padding: 12px;
    background: #f0f0f0;
    border-radius: 8px;
    font-weight: 600;
    color: #333333;
    text-align: center;
}

/* Контейнер групп */
.groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.group-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #000000;
}

.group-card-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.group-card-header h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #000000;
}

.group-date {
    display: inline-block;
    font-size: 13px;
    color: #666666;
}

.group-card-body {
    margin-bottom: 15px;
}

.group-card-body p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666666;
}

.group-card-body strong {
    color: #000000;
}

.group-card-actions {
    display: flex;
    gap: 10px;
}

/* Детальный просмотр группы */
.group-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-back {
    padding: 12px 24px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.group-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.group-tab {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666666;
}

.group-tab:hover {
    color: #000000;
    border-bottom-color: #cccccc;
}

.group-tab.active {
    color: #000000;
    border-bottom-color: #000000;
}

.group-tab-content {
    min-height: 400px;
}

/* Вкладка учеников группы */
.group-students-container h3,
.group-tests-container h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #000000;
}

.students-in-group,
.students-to-add,
.tests-in-group,
.tests-to-add {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.group-student-item,
.group-test-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.group-student-item:hover,
.group-test-item:hover {
    border-color: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.student-completed {
    background: linear-gradient(145deg, #e3f2fd, #bbdefb);
    border-color: #2196f3;
}

.student-completed .student-name {
    color: #1565c0;
    font-weight: 700;
}

.test-item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.test-item-name {
    font-weight: 600;
    font-size: 16px;
    color: #000000;
}

.test-item-questions {
    font-size: 13px;
    color: #666666;
}

.btn-add-to-group-small {
    padding: 8px 16px;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-add-to-group-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-remove-from-group {
    padding: 8px 16px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-remove-from-group:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Результаты группы */
.group-results-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.student-results-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.student-results-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #000000;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.student-tests-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.test-result-card {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.test-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.test-result-date {
    font-size: 12px;
    color: #999999;
}

.test-result-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
}

.test-result-percentage {
    font-weight: 700;
    font-size: 18px;
    color: #000000;
    margin-top: 5px;
}

/* Раздел паролей */
.passwords-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.password-card {
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.password-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.password-header h3 {
    font-size: 20px;
    color: #000000;
}

.password-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.password-display {
    width: 100%;
}

.password-display input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    background-color: #ffffff;
    color: #000000;
    font-weight: 600;
    font-family: monospace;
    transition: all 0.3s ease;
}

.password-display input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.password-display input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.password-hint {
    font-size: 13px;
    color: #999999;
    font-style: italic;
    margin: 0;
}

.btn-change-password {
    padding: 12px 24px;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.btn-change-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Результаты группы - все результаты */
.group-all-results {
    animation: fadeIn 0.4s ease;
}

.results-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.results-header-actions h3 {
    font-size: 24px;
    color: #000000;
    margin: 0;
}

/* Результаты - сетка тестов */
.group-results-tests h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #000000;
}

.results-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.results-test-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.results-test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #000000;
}

.results-test-icon {
    font-size: 48px;
}

.results-test-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #000000;
}

.results-test-info span {
    font-size: 14px;
    color: #666666;
}

/* Детальные результаты теста */
.test-results-detail {
    animation: fadeIn 0.4s ease;
}

.test-results-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.test-results-header h3 {
    font-size: 24px;
    color: #000000;
    flex: 1;
}

.btn-export-excel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #217346, #2d8f5a);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-export-excel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 115, 70, 0.3);
}

.btn-back-small {
    padding: 10px 20px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back-small:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.test-results-table-container {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.results-table th,
.results-table td {
    padding: 15px 20px;
    text-align: left;
}

.results-table th {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.results-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.results-table tbody tr:last-child {
    border-bottom: none;
}

.results-table tbody tr:hover {
    background: #f8f8f8;
}

.results-table td {
    font-size: 15px;
}

.correct-count {
    color: #4caf50;
    font-weight: 600;
}

.incorrect-count {
    color: #f44336;
    font-weight: 600;
}

.percentage {
    font-weight: 700;
    font-size: 16px;
}

.percentage.good {
    color: #4caf50;
}

.percentage.medium {
    color: #ff9800;
}

.percentage.bad {
    color: #f44336;
}

/* Адаптивность */
@media (max-width: 768px) {
    .content {
        padding: 100px 20px 20px 20px;
    }
    
    .section h1 {
        font-size: 28px;
    }
    
    .profile-info p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-info strong {
        margin-bottom: 5px;
    }
    
    .modal {
        padding: 30px 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .tests-grid {
        grid-template-columns: 1fr;
    }
    
    .student-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .student-actions {
        width: 100%;
    }
    
    .btn-delete-small {
        width: 100%;
    }
    
    .students-header-buttons {
        flex-direction: column;
    }
    
    .add-to-group-btn {
        width: 100%;
    }
    
    .groups-container {
        grid-template-columns: 1fr;
    }
}
