* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e1b4b;
    --dark-lighter: #312e81;
    --light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 16px;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Для Android Chrome */
    padding: 20px;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); /* Для вырезов экрана */
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Улучшенная прокрутка для Android */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
    /* Оптимизация для Android */
    will-change: transform;
    transform: translateZ(0); /* Аппаратное ускорение */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    color: white;
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.header-content {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    opacity: 0.8;
    font-size: 16px;
    font-weight: 300;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-top: 25px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: white;
    color: var(--dark);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.tab-icon {
    font-size: 18px;
}

.tab-content {
    display: none;
    padding: 30px 40px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.gradient-blue { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.gradient-red { background: linear-gradient(135deg, #ef4444 0%, #f97316 100%); }
.gradient-green { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%); }
.gradient-orange { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); }

.stat-icon {
    font-size: 48px;
    opacity: 0.9;
}

.stat-info h3 {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.chart-card h3 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
}

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    background: #f1f5f9;
    padding: 20px;
    border-radius: var(--radius);
}

.filters input,
.filters select {
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    background: white;
    transition: all 0.3s;
    min-width: 180px;
}

.filters input:focus,
.filters select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filters button {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s;
}

.filters button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.activity-item,
.student-item,
.suspicious-item {
    background: white;
    padding: 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    position: relative;
}

.activity-item:hover,
.student-item:hover,
.suspicious-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.activity-item::before,
.student-item::before,
.suspicious-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: var(--primary);
}

.activity-item.suspicious::before { background: var(--danger); }
.suspicious-item.critical::before { background: #7f1d1d; }
.suspicious-item.high::before { background: var(--danger); }
.suspicious-item.medium::before { background: var(--warning); }
.suspicious-item.low::before { background: #3b82f6; }

.activity-item.suspicious {
    background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
    border-color: #fecaca;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
}

.item-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-suspicious { background: var(--danger); color: white; }
.badge-critical { background: #7f1d1d; color: white; }
.badge-high { background: var(--danger); color: white; }
.badge-medium { background: var(--warning); color: white; }
.badge-low { background: #3b82f6; color: white; }
.badge-active { background: var(--success); color: white; }
.badge-suspended { background: var(--warning); color: white; }
.badge-blocked { background: var(--danger); color: white; }
.badge-student { background: var(--primary); color: white; }
.badge-applicant { background: #8b5cf6; color: white; }
.badge-staff { background: #06b6d4; color: white; }

.item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    font-size: 14px;
    color: #64748b;
}

.item-detail {
    display: flex;
    gap: 8px;
    align-items: center;
}

.item-detail strong {
    color: #334155;
    font-weight: 500;
}

.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
    padding: 20px 0;
}

.pagination button {
    padding: 10px 20px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-info {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    color: #64748b;
    font-weight: 500;
}

.recent-section {
    margin-top: 30px;
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.recent-section h3 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
}

.resolve-btn {
    padding: 8px 16px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    margin-top: 12px;
    transition: all 0.3s;
}

.resolve-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

.view-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    margin-top: 12px;
    margin-right: 8px;
    transition: all 0.3s;
}

.view-btn:hover {
    background: var(--primary-dark);
}

.loading {
    text-align: center;
    padding: 60px;
    color: #64748b;
    font-size: 16px;
}

.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
    color: var(--danger);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--danger);
}

/* Student Menu */
.student-menu-container {
    position: relative;
}

.student-menu-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
    line-height: 1;
    transform: rotate(90deg);
    font-weight: bold;
}

.student-menu-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.student-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.student-menu.show {
    display: block;
}

.student-menu button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: #334155;
    font-size: 14px;
    transition: background 0.2s;
}

.student-menu button:hover {
    background: #f8fafc;
}

.student-menu button:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.student-menu button:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.session-detail-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.student-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.student-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    font-weight: 700;
}

.student-info h2 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--dark);
}

.student-info p {
    color: #64748b;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h4 {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
}

.detail-item label {
    font-size: 12px;
    color: #64748b;
    display: block;
    margin-bottom: 5px;
}

.detail-item span {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

/* Адаптация для планшетов и маленьких ноутбуков */
@media (max-width: 1024px) {
    .container {
        margin: 10px;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* Адаптация для планшетов (портретная ориентация) и больших телефонов */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    header {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 22px;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .tabs {
        gap: 6px;
        margin-top: 20px;
        justify-content: space-between;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
        min-width: 0;
    }
    
    .tab-btn span:not(.tab-icon) {
        display: none;
    }
    
    .tab-icon {
        font-size: 20px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 18px;
        gap: 12px;
    }
    
    .stat-icon {
        font-size: 36px;
    }
    
    .stat-info h3 {
        font-size: 12px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chart-card {
        padding: 18px;
    }
    
    .chart-card h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .filters {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }
    
    .filters input,
    .filters select {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px; /* Предотвращает зум на iOS/Android */
    }
    
    .activity-item,
    .student-item,
    .suspicious-item {
        padding: 15px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .student-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .student-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* Адаптация для маленьких телефонов (Android) */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    header {
        padding: 15px 12px;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .tabs {
        gap: 4px;
        margin-top: 15px;
    }
    
    .tab-btn {
        padding: 12px 8px;
        min-width: 60px;
    }
    
    .tab-icon {
        font-size: 18px;
    }
    
    .tab-content {
        padding: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
        flex-direction: row;
        align-items: center;
    }
    
    .stat-icon {
        font-size: 32px;
    }
    
    .stat-info h3 {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .chart-card {
        padding: 15px;
    }
    
    .chart-card h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .filters {
        padding: 12px;
    }
    
    .filters input,
    .filters select {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .activity-item,
    .student-item,
    .suspicious-item {
        padding: 12px;
        font-size: 14px;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .item-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .item-detail {
        font-size: 13px;
    }
    
    .student-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .student-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .student-info h2 {
        font-size: 20px;
    }
    
    .detail-section {
        margin-bottom: 20px;
    }
    
    .detail-item {
        padding: 12px;
    }
    
    .detail-item label {
        font-size: 11px;
    }
    
    .detail-item span {
        font-size: 14px;
    }
    
    /* Улучшенная адаптация для touch-устройств */
    button,
    .tab-btn,
    .btn {
        min-height: 44px; /* Минимальный размер для удобного нажатия */
        touch-action: manipulation; /* Улучшает отзывчивость на touch */
    }
    
    /* Улучшенная прокрутка на мобильных */
    .tab-content {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
    
    /* Адаптация пагинации */
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
        padding: 15px 0;
    }
    
    .pagination button {
        padding: 12px 16px;
        font-size: 14px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .pagination .page-info {
        padding: 12px 10px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
        order: -1;
    }
    
    /* Адаптация списков */
    .item-list {
        gap: 10px;
    }
    
    .recent-section {
        margin-top: 20px;
    }
    
    .recent-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

/* Адаптация для очень маленьких экранов (старые Android) */
@media (max-width: 360px) {
    header h1 {
        font-size: 18px;
    }
    
    .subtitle {
        font-size: 12px;
    }
    
    .tab-btn {
        padding: 10px 6px;
        min-width: 50px;
    }
    
    .tab-icon {
        font-size: 16px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-icon {
        font-size: 28px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    header {
        padding: 15px 20px;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    .tabs {
        margin-top: 15px;
    }
}

/* Улучшения для touch-устройств (все размеры) */
@media (hover: none) and (pointer: coarse) {
    /* Отключаем hover эффекты на touch-устройствах */
    .stat-card:hover {
        transform: none;
    }
    
    .tab-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Улучшаем видимость активных элементов */
    .tab-btn.active {
        background: rgba(255, 255, 255, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.4);
    }
    
    /* Увеличиваем область нажатия */
    button,
    .btn,
    .tab-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Улучшенная отзывчивость на Android */
    * {
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
        tap-highlight-color: rgba(99, 102, 241, 0.2);
    }
    
    /* Плавная прокрутка */
    .tab-content,
    .item-list,
    .modal-content {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* Специальная оптимизация для Android Chrome */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .container {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    /* Улучшенная производительность анимаций */
    .stat-card,
    .tab-btn,
    .chart-card {
        will-change: transform;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Оптимизация для высоких DPI экранов Android */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Улучшения для Android в портретной ориентации */
@media (max-width: 480px) and (orientation: portrait) {
    body {
        padding: 0;
    }
    
    .container {
        border-radius: 0;
        margin: 0;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    header {
        padding: 12px 15px;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .tab-content {
        padding-bottom: env(safe-area-inset-bottom);
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
}

/* Оптимизация для Android в ландшафтной ориентации */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 10px 15px;
    }
    
    header h1 {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .subtitle {
        font-size: 12px;
    }
    
    .tabs {
        margin-top: 10px;
        gap: 4px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .chart-card {
        padding: 12px;
    }
    
    .tab-content {
        padding: 12px;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }
}

/* Предотвращение зума при фокусе на input (Android) */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important; /* Предотвращает автоматический зум на iOS/Android */
    }
}

/* Улучшенная производительность для Android */
@media (max-width: 768px) {
    /* Отключаем сложные эффекты на мобильных */
    header::before,
    header::after {
        display: none;
    }
    
    /* Упрощаем тени для лучшей производительности */
    .stat-card,
    .chart-card,
    .activity-item,
    .student-item {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Оптимизация анимаций */
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
}
