/* Bot Detection Dashboard Styles - Enhanced Version */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.dashboard-container {
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Header Styles */
.header {
    background: rgb(31 34 73);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Main Content */
.main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.stat-icon.sessions { background: linear-gradient(45deg, #667eea, #764ba2); }
.stat-icon.bots { background: linear-gradient(45deg, #f093fb, #f5576c); }
.stat-icon.suspicious { background: linear-gradient(45deg, #ffecd2, #fcb69f); }
.stat-icon.active { background: linear-gradient(45deg, #a8edea, #fed6e3); }

.stat-title {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0.5rem 0;
}

.stat-change {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-change.positive { color: #10b981; }
.stat-change.negative { color: #ef4444; }

/* Controls Section */
.controls-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    align-items: center;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-input {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.control-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box {
    position: relative;
}

.search-box input {
    padding-left: 2.5rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Sessions Table */
.sessions-table-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-title {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sessions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.sessions-table th {
    background: rgba(102, 126, 234, 0.1);
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sessions-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

.sessions-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active { background: #dcfce7; color: #166534; }
.status-inactive { background: #fef2f2; color: #991b1b; }
.status-bot { background: #fef3c7; color: #92400e; }
.status-suspicious { background: #fce7f3; color: #be185d; }
.status-banned { background: #fee2e2; color: #dc2626; }
.status-normal { background: #e0f2fe; color: #0369a1; }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn.view {
    background: #667eea;
    color: white;
}

.action-btn.ban {
    background: #ef4444;
    color: white;
}

.action-btn.video {
    background: #10b981;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ИСПРАВЛЕНИЕ МОДАЛЬНОГО ОКНА - центрирование */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    padding: 1rem !important;
}

.modal-content {
    background: white !important;
    border-radius: 16px !important;
    width: 95vw !important;
    height: 90vh !important;
    max-width: 1400px !important;
    max-height: 900px !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    margin: auto !important;
}

.modal-video-section {
    flex: 1 !important;
    background: #f8f9fa !important;
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-info-section {
    width: 550px !important;
    background: #2c2c2c !important;
    padding: 2rem !important;
    overflow-y: auto !important;
    border-left: 1px solid #e5e7eb !important;
}

.modal-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: #ef4444 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
}

.modal-close:hover {
    background: #dc2626 !important;
    transform: scale(1.1) !important;
}

.session-video-player {
    width: 100% !important;
    max-width: 500px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.session-canvas {
    width: 100% !important;
    max-width: 500px !important;
    border: 2px solid #667eea !important;
    border-radius: 12px !important;
    background: white !important;
}

.session-info-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
}

.info-item {
    background: rgb(102 126 234 / 23%) !important;
    padding: 0.75rem !important;
    border-radius: 8px !important;
    border: 1px solid rgb(70 104 255 / 56%) !important;
}

.info-label {
    font-size: 0.5rem !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 0.4rem !important;
    font-weight: 600 !important;
    display: flex;
    gap: 5px;
}

.info-value {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: #8BC34A !important;
    word-break: break-all !important;
}

.session-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.action-button {
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.action-button.mark-human {
    background: linear-gradient(45deg, #10b981, #059669) !important;
    color: white !important;
}

.action-button.mark-bot {
    background: linear-gradient(45deg, #ef4444, #dc2626) !important;
    color: white !important;
}

.action-button.ban-user {
    background: linear-gradient(45deg, #f59e0b, #d97706) !important;
    color: white !important;
}

.action-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.action-button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.confirmation-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: white !important;
    padding: 2rem !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    z-index: 11000 !important;
    min-width: 300px !important;
    text-align: center !important;
}

.confirmation-buttons {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
    justify-content: center !important;
}

.confirm-btn {
    padding: 0.5rem 1.5rem !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.confirm-btn.yes {
    background: #ef4444 !important;
    color: white !important;
}

.confirm-btn.no {
    background: #6b7280 !important;
    color: white !important;
}

.confirm-btn:hover {
    transform: translateY(-2px) !important;
}

.clickable-stat {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.clickable-stat:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2) !important;
}

.table-filters {
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
}

.filter-select {
    padding: 0.5rem 1rem !important;
    border: 2px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 8px !important;
    background: white !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.play-controls {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
    justify-content: center !important;
}

.play-control-btn {
    background: rgba(102, 126, 234, 0.1) !important;
    border: 2px solid #667eea !important;
    color: #667eea !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.play-control-btn:hover {
    background: #667eea !important;
    color: white !important;
}

.play-control-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Grouped Sessions Table */
.grouped-sessions-table {
    margin-top: 1rem;
}

.user-group {
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-header {
    background: #f8f9fa;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-header:hover {
    background: #e9ecef;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.user-info .fingerprint {
    font-family: monospace;
    font-weight: 600;
    color: #495057;
    min-width: 100px;
}

.user-info .session-count {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-sessions {
    background: white;
    max-height: 400px;
    overflow-y: auto;
}

.sessions-subtable {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.sessions-subtable th,
.sessions-subtable td {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f3f4;
    text-align: left;
    font-size: 0.8rem;
}

.sessions-subtable th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.sessions-subtable tbody tr:hover {
    background: #f8f9fa;
    cursor: pointer;
}

/* Video Progress */
.video-progress {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

/* Video Action Buttons */
.video-action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.video-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.video-btn.generate {
    background: #007bff;
    color: white;
}

.video-btn.generate:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-1px);
}

.video-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Video Status */
.video-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.video-status.generating {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.video-status.completed {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.video-status.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Table View Toggle */
.table-view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.view-toggle-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.view-toggle-btn:hover {
    background: #f8f9fa;
}

.view-toggle-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Connection Status */
.connection-status {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1000;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-connected { background: #10b981; }
.status-disconnected { background: #ef4444; }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.tab-button {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-button:hover {
    color: #374151;
    background: rgba(102, 126, 234, 0.05);
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.tab-content {
    min-height: 400px;
}

.browser-info-section,
.anomalies-info-section {
    margin-bottom: 2rem;
}

.browser-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.anomalies-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.anomaly-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.anomaly-item.high {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.anomaly-item.medium {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.anomaly-item.low {
    background: #f0f9ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.severity-badge {
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-badge.high {
    background: #fee2e2;
    color: #dc2626;
}

.severity-badge.medium {
    background: #fef3c7;
    color: #d97706;
}

.severity-badge.low {
    background: #dbeafe;
    color: #2563eb;
}

.no-anomalies {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
}

/* НОВЫЕ СТИЛИ ДЛЯ РАСШИРЕННЫХ ДАННЫХ */

/* Enhanced Data Grid */
.enhanced-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.data-item {
    background: rgba(102, 126, 234, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.data-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.data-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.data-value.suspicious {
    color: #dc3545;
}

.data-value.normal {
    color: #28a745;
}

.data-value.warning {
    color: #fd7e14;
}

/* Confidence Indicators */
.confidence-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.confidence-very_low { background: #f0f9ff; color: #0369a1; }
.confidence-low { background: #fef3c7; color: #d97706; }
.confidence-medium { background: #fed7d7; color: #c53030; }
.confidence-high { background: #fee2e2; color: #dc2626; }
.confidence-very_high { background: #fecaca; color: #b91c1c; }

/* Inactivity Section */
.inactivity-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

.inactivity-suspicious {
    border-color: #dc3545;
    background: #fff5f5;
}

.inactivity-natural {
    border-color: #28a745;
    background: #f0fff4;
}

/* Error Messages */
.error-message {
    background: linear-gradient(45deg, #fee2e2, #fecaca);
    color: #dc2626;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    border: 1px solid #fca5a5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Video Container */
.video-container {
    margin-top: 2rem;
    text-align: center;
}

.video-container video {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        height: 95vh;
        flex-direction: column;
    }
    
    .modal-info-section {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }
    
    .table-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .table-view-toggle {
        flex-direction: column;
    }
    
    .view-toggle-btn {
        flex: 1;
        justify-content: center;
    }
    
    .video-action-buttons {
        flex-direction: column;
    }
    
    .browser-info-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 100px;
    }
    
    .enhanced-data-grid {
        grid-template-columns: 1fr;
    }
}

/* Дополнительные стили для модального окна */
.tab-content h3 {
    color: #F44336 !important;
}

button.tab-button {
    color: #fff !important;
    font-size: 10px !important;
}

.tab-button.active {
    color: #ffffff !important;
    background: rgb(34 74 254 / 42%) !important;
}

.browser-info-section h4 {
    color: #F44336 !important;
}

.browser-info-section h5 {
    color: #F44336 !important;
}