/* Reset and base styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', sans-serif; background: linear-gradient(135deg, #6c757d 0%, #495057 100%); min-height: 100vh; color: #333; } /* Prevent FOUC (Flash of Unstyled Content) - скрываем всё до загрузки JS */ body:not(.js-loaded) { visibility: hidden; } /* Показываем только после полной инициализации */ body.js-loaded { visibility: visible; } /* Изначально устанавливаем темную тему для предотвращения мигания */ :root { --initial-bg: #1a1a1a; --initial-color: #e0e0e0; } html { background: var(--initial-bg) !important; color: var(--initial-color) !important; } body { background: var(--initial-bg) !important; color: var(--initial-color) !important; } .container { max-width: 1400px; margin: 0 auto; padding: 0 20px; } /* Login Page Styles - Ultra Dark Theme */ .login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 25%, #2d2d2d 50%, #1a1a1a 75%, #2a2a2a 100%); position: relative; overflow: hidden; opacity: 0; animation: fadeInPage 1.2s ease-out forwards; } .login-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 20%, rgba(108, 117, 125, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(73, 80, 87, 0.08) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(108, 117, 125, 0.05) 0%, transparent 50%); animation: floatBackground 8s ease-in-out infinite; } .login-container::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 60% 10%, rgba(108, 117, 125, 0.04) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(73, 80, 87, 0.04) 0%, transparent 40%), radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.04), transparent), radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.03), transparent), radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.02), transparent), radial-gradient(1px 1px at 60% 10%, rgba(255, 255, 255, 0.02), transparent), radial-gradient(1px 1px at 15% 80%, rgba(255, 255, 255, 0.03), transparent); background-size: 550px 550px, 450px 450px, 150px 150px, 200px 200px, 180px 180px, 220px 220px, 170px 170px; animation: floatBackground 12s ease-in-out infinite reverse; } @keyframes fadeInPage { 0% { opacity: 0; filter: blur(10px); } 100% { opacity: 1; filter: blur(0px); } } @keyframes floatBackground { 0%, 100% { transform: translateX(0px) translateY(0px) rotate(0deg); opacity: 1; } 25% { transform: translateX(5px) translateY(-5px) rotate(1deg); opacity: 0.8; } 50% { transform: translateX(-3px) translateY(-10px) rotate(-1deg); opacity: 0.9; } 75% { transform: translateX(-5px) translateY(5px) rotate(0.5deg); opacity: 0.7; } } @keyframes float { 0%, 100% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-20px) rotate(2deg); } } .login-card { background: rgba(10, 10, 20, 0.98); backdrop-filter: blur(25px); border: 1px solid rgba(108, 117, 125, 0.2); border-radius: 28px; padding: 55px 45px; width: 100%; max-width: 430px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(108, 117, 125, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.5); text-align: center; position: relative; z-index: 2; opacity: 0; animation: slideUpCard 0.8s ease-out 0.3s forwards; } @keyframes slideUp { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } } @keyframes slideUpCard { 0% { opacity: 0; transform: translateY(50px) scale(0.95); filter: blur(5px); } 50% { opacity: 0.7; transform: translateY(20px) scale(0.98); filter: blur(2px); } 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } } @keyframes slideInElements { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } } .login-header { margin-bottom: 40px; opacity: 0; animation: slideInElements 0.6s ease-out 0.6s forwards; } .login-header .material-icons { font-size: 60px; background: linear-gradient(135deg, #6c757d 0%, #495057 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 15px; animation: iconPulse 3s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgba(108, 117, 125, 0.3)); } @keyframes iconPulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 8px rgba(108, 117, 125, 0.3)); } 50% { transform: scale(1.08); filter: drop-shadow(0 6px 16px rgba(108, 117, 125, 0.5)); } } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } } .login-header h1 { font-size: 30px; font-weight: 700; color: #ffffff; margin-bottom: 8px; text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); } .login-header p { color: rgba(255, 255, 255, 0.8); font-size: 16px; font-weight: 400; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } .input-wrapper { position: relative; display: flex; align-items: center; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(108, 117, 125, 0.1); border-radius: 18px; padding: 0 22px; margin-bottom: 20px; transition: all 0.3s ease; backdrop-filter: blur(15px); opacity: 0; animation: slideInElements 0.6s ease-out 0.9s forwards; } .input-wrapper:nth-child(2) { animation-delay: 1.1s; } .input-wrapper:focus-within { border-color: #6c757d; background: rgba(108, 117, 125, 0.15); box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.3), 0 10px 30px rgba(108, 117, 125, 0.2), inset 0 1px 0 rgba(108, 117, 125, 0.1); transform: translateY(-2px); } .input-wrapper .material-icons { color: rgba(255, 255, 255, 0.6); margin-right: 15px; font-size: 22px; transition: color 0.3s ease; } .input-wrapper:focus-within .material-icons { color: #6c757d; } .input-wrapper input { flex: 1; border: none; background: transparent; padding: 18px 0; font-size: 16px; outline: none; color: #ffffff; font-weight: 400; } .input-wrapper input::placeholder { color: rgba(255, 255, 255, 0.5); font-weight: 400; transition: all 0.3s ease; } .input-wrapper input:focus::placeholder { color: rgba(255, 255, 255, 0.3); transform: translateX(5px); } .input-wrapper input:autofill, .input-wrapper input:-webkit-autofill { -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.05) inset; -webkit-text-fill-color: #ffffff; } .error-message { background: rgba(220, 53, 69, 0.2); color: #ff6b6b; border: 1px solid rgba(220, 53, 69, 0.3); padding: 16px; border-radius: 14px; margin-top: 20px; font-size: 14px; font-weight: 500; backdrop-filter: blur(15px); box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2); animation: shake 0.5s ease-in-out, slideInElements 0.6s ease-out; opacity: 0; animation-fill-mode: forwards; } @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } } /* Login Button Styles */ .login-card .btn-primary { background: linear-gradient(135deg, #6c757d 0%, #495057 100%); border: none; border-radius: 18px; padding: 20px 26px; font-size: 16px; font-weight: 600; color: white; width: 100%; margin-top: 15px; transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(108, 117, 125, 0.3); position: relative; overflow: hidden; opacity: 0; animation: slideInElements 0.6s ease-out 1.3s forwards; } .login-card .btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.3s; } .login-card .btn-primary:hover::before { left: 100%; } .login-card .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(108, 117, 125, 0.4); background: linear-gradient(135deg, #5a6268 0%, #343a40 100%); } .login-card .btn-primary:active { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3); } .login-card .btn-primary .material-icons { margin-right: 8px; font-size: 20px; } /* Main Panel Layout */ #main-panel { display: flex; flex-direction: column; min-height: 100vh; background: #f8f9fa; } /* Header */ .header { background: linear-gradient(135deg, #6c757d 0%, #495057 100%); color: white; padding: 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 1000; } .header .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; max-width: none; } .logo { display: flex; align-items: center; gap: 12px; } .logo .material-icons { font-size: 32px; color: white; } .logo h1 { font-size: 24px; font-weight: 600; } .user-info { display: flex; align-items: center; gap: 15px; } /* Theme Toggle */ .theme-toggle { display: flex; align-items: center; gap: 8px; margin-right: 20px; } .theme-icon { font-size: 18px; color: #666; transition: color 0.3s ease; } .toggle-switch { position: relative; display: inline-block; width: 50px; height: 24px; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: 0.3s; border-radius: 24px; } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: 0.3s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); } input:checked + .slider { background-color: #6c757d; } input:checked + .slider:before { transform: translateX(26px); } .role-badge { background: rgba(255, 255, 255, 0.2); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; text-transform: uppercase; } .role-badge.admin { background: #ff6b6b; } .role-badge.user { background: #51cf66; } /* Sidebar Navigation */ .sidebar { position: fixed; left: 0; top: 70px; width: 280px; height: calc(100vh - 70px); background: white; border-right: 1px solid #e9ecef; padding: 20px 0; overflow-y: auto; z-index: 999; } .nav-section { margin-bottom: 30px; } .nav-section h3 { padding: 0 20px 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; color: #666; letter-spacing: 1px; } .nav-btn { width: 100%; background: none; border: none; padding: 12px 20px; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: #555; transition: all 0.3s ease; border-left: 3px solid transparent; } .nav-btn:hover { background: #f8f9fa; color: #6c757d; } .nav-btn.active { background: #f1f3f4; color: #6c757d; border-left-color: #6c757d; } .nav-btn .material-icons { font-size: 20px; } /* Main Content */ .main { flex: 1; margin-left: 280px; padding: 30px; } .container { max-width: 1400px; margin: 0 auto; } /* Page Header */ .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; margin-left: -15%; /* Сдвигаем заголовок левее, чтобы выровнять с таблицей */ padding-left: 20px; /* Добавляем отступ */ } .page-header h2 { font-size: 28px; font-weight: 600; color: #333; } .header-actions { display: flex; align-items: center; gap: 20px; } /* Stats Cards */ .stats { display: flex; gap: 20px; } .stat-card { background: white; padding: 20px; border-radius: 12px; text-align: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); min-width: 120px; } .stat-number { display: block; font-size: 24px; font-weight: 700; color: #6c757d; margin-bottom: 5px; } .stat-label { font-size: 12px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; } /* Search Bar */ .search-bar { position: relative; margin-bottom: 25px; max-width: 400px; } .search-bar .material-icons { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #666; font-size: 20px; } .search-bar input { width: 100%; padding: 15px 15px 15px 50px; border: 2px solid #e9ecef; border-radius: 12px; font-size: 14px; background: white; transition: all 0.3s ease; } .search-bar input:focus { outline: none; border-color: #6c757d; box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1); } /* Buttons */ .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; } .btn-primary { background: #6c757d; color: white; } .btn-primary:hover { background: #5a6268; transform: translateY(-1px); } .btn-secondary { background: #6c757d; color: white; } .btn-secondary:hover { background: #5a6268; } .btn-danger { background: #dc3545; color: white; } .btn-danger:hover { background: #c82333; } .btn-success { background: #28a745; color: white; } .btn-success:hover { background: #218838; } .btn-warning { background: #ffc107; color: #212529; } .btn-warning:hover { background: #e0a800; } .btn-sm { padding: 6px 10px; font-size: 11px; white-space: nowrap; /* Предотвращаем перенос текста */ } .btn-sm.btn-primary { padding: 4px 8px; font-size: 11px; text-decoration: none; border-radius: 4px; } .btn-full { width: 100%; justify-content: center; } /* Tables */ .table-container { background: white; border-radius: 12px; overflow-x: auto; /* Добавляем горизонтальную прокрутку */ box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); margin-left: -15%; /* Сдвигаем все таблицы на 35% левее */ margin-right: -20px; padding: 0 20px; width: 130%; /* Увеличиваем ширину для компенсации сдвига */ } table { width: 100%; border-collapse: collapse; min-width: 1100px; /* Минимальная ширина для корректного отображения всех кнопок */ } th { background: #f8f9fa; padding: 15px 20px; text-align: left; font-weight: 600; color: #555; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #e9ecef; } td { padding: 15px 20px; border-bottom: 1px solid #f1f3f5; font-size: 14px; } /* Оптимизация ширины колонок */ /* Супер компактная раскладка таблицы - 13 колонок */ th:nth-child(1), td:nth-child(1) { width: 3%; } /* PIN */ th:nth-child(2), td:nth-child(2) { width: 7%; } /* WORKER */ th:nth-child(3), td:nth-child(3) { width: 8%; } /* DEVICE ID */ th:nth-child(4), td:nth-child(4) { width: 10%; } /* IP АДРЕС */ th:nth-child(5), td:nth-child(5) { width: 7%; } /* МОДЕЛЬ */ th:nth-child(6), td:nth-child(6) { width: 6%; } /* ПРОИЗВОДИТЕЛЬ */ th:nth-child(7), td:nth-child(7) { width: 5%; } /* ANDROID */ th:nth-child(8), td:nth-child(8) { width: 10%; } /* НОМЕР ТЕЛЕФОНА */ th:nth-child(9), td:nth-child(9) { width: 20%; } /* EMAIL */ th:nth-child(10), td:nth-child(10) { width: 4%; } /* SIM */ th:nth-child(11), td:nth-child(11) { width: 12%; }/* РАЗРЕШЕНИЯ */ th:nth-child(12), td:nth-child(12) { width: 8%; } /* СТАТУС */ th:nth-child(13), td:nth-child(13) { width: 5%; } /* ДЕЙСТВИЯ */ /* Компактный текст в узких колонках */ th:nth-child(1), td:nth-child(1), /* PIN */ th:nth-child(7), td:nth-child(7), /* ANDROID */ th:nth-child(10), td:nth-child(10) { /* SIM */ font-size: 12px; text-align: center; } /* Центрирование разрешений */ th:nth-child(11), td:nth-child(11) { /* РАЗРЕШЕНИЯ */ text-align: center; } /* Специальные стили для email колонки */ th:nth-child(9), td:nth-child(9) { /* EMAIL */ font-size: 12px; max-width: 250px; word-break: break-all; } /* Дополнительная компактность для кнопки действий */ th:nth-child(13), td:nth-child(13) { /* ДЕЙСТВИЯ */ font-size: 12px; text-align: center; padding: 4px 2px !important; } /* Обрезка длинного текста в узких колонках */ td:nth-child(2), td:nth-child(3), td:nth-child(4), td:nth-child(5), td:nth-child(6), td:nth-child(7), td:nth-child(8), td:nth-child(9) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 4px !important; } /* Компактная кнопка действий */ .btn-xs { padding: 4px 6px !important; font-size: 12px !important; min-width: 30px !important; border-radius: 4px !important; } /* tr:hover { background: #f8f9fa; } */ /* Status Indicators */ .status { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; text-transform: uppercase; } .status.online { background: #d4edda; color: #155724; } .status.offline { background: #f8d7da; color: #721c24; } .status.blocked { background: #ff4757; color: white; font-weight: 600; padding: 6px 12px; border-radius: 20px; display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; } .status.active { background: #d4edda; color: #155724; } .status.inactive { background: #f8d7da; color: #721c24; } .status.expired { background: #fff3cd; color: #856404; } /* Tab Content */ .tab-content { display: none; } .tab-content.active { display: block; } /* Action Buttons */ .action-buttons { display: flex; gap: 6px; min-width: 320px; /* Минимальная ширина для всех кнопок */ flex-wrap: wrap; } .action-btn { padding: 6px 12px; border: none; border-radius: 6px; font-size: 12px; cursor: pointer; transition: all 0.3s ease; } /* Modals */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 10000; justify-content: center; align-items: center; } .modal.show { display: flex; } .modal-content { background: white; border-radius: 12px; padding: 0; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; border-bottom: 1px solid #e9ecef; } .modal-header h3 { font-size: 18px; font-weight: 600; color: #333; } .close-btn { background: none; border: none; padding: 5px; cursor: pointer; border-radius: 6px; transition: background 0.3s ease; } .close-btn:hover { background: #f8f9fa; } .modal form { padding: 25px; } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #555; font-size: 14px; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid #e9ecef; border-radius: 8px; font-size: 14px; transition: all 0.3s ease; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .form-group textarea { min-height: 100px; resize: vertical; } .modal-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 20px; border-top: 1px solid #e9ecef; } /* Notifications */ .notification { position: fixed; top: 20px; right: 20px; background: white; border: 1px solid #e9ecef; border-radius: 8px; padding: 15px 20px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); z-index: 10001; display: none; align-items: center; gap: 10px; max-width: 400px; } .notification.show { display: flex; animation: slideIn 0.3s ease; } .notification.success { border-left: 4px solid #28a745; } .notification.error { border-left: 4px solid #dc3545; } .notification.warning { border-left: 4px solid #ffc107; } .notification.info { border-left: 4px solid #17a2b8; } .notification button { background: none; border: none; padding: 0; cursor: pointer; opacity: 0.5; transition: opacity 0.3s ease; } .notification button:hover { opacity: 1; } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* Device ID styling */ .device-id { font-family: 'Courier New', monospace; font-size: 13px; font-weight: 600; background: #f8f9fa; color: #495057; padding: 4px 8px; border: 1px solid #dee2e6; border-radius: 4px; display: inline-block; letter-spacing: 0.5px; } /* Responsive Design */ /* Mobile First Approach */ /* Mobile hamburger menu toggle */ .mobile-menu-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 8px; border-radius: 6px; transition: background 0.3s ease; } .mobile-menu-toggle:hover { background: rgba(255, 255, 255, 0.1); } .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 998; } .sidebar-overlay.active { display: block; } /* Tablet styles */ @media (max-width: 1024px) { .main { margin-left: 260px; } .sidebar { width: 260px; } .container { padding: 0 15px; } } /* Mobile styles */ @media (max-width: 768px) { /* Header adjustments */ .header .container { padding: 12px 15px; } .mobile-menu-toggle { display: block; } .logo h1 { font-size: 20px; } .theme-toggle { margin-right: 10px; } .user-info { gap: 10px; } /* Sidebar mobile behavior */ .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; width: 280px; top: 0; height: 100vh; z-index: 999; box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1); } .sidebar.mobile-open { transform: translateX(0); } .main { margin-left: 0; padding: 20px 15px; } /* Page header mobile */ .page-header { flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 20px; margin-left: -5%; /* Сдвигаем заголовок левее на мобильных */ } .page-header h2 { font-size: 24px; } .header-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 10px; } /* Stats cards mobile */ .stats { width: 100%; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .stat-card { flex: 1; min-width: 80px; padding: 15px 10px; } .stat-number { font-size: 20px; } /* Search bar mobile */ .search-bar { max-width: 100%; margin-bottom: 15px; } .search-bar input { font-size: 16px; /* Prevents zoom on iOS */ } /* Table mobile optimizations */ .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; margin-left: -25%; /* На мобильных сдвиг меньше */ width: 120%; /* Меньшее увеличение ширины для мобильных */ } table { min-width: 100%; /* Убираем принудительную ширину */ width: 100%; table-layout: fixed; /* Фиксированная раскладка для строгого соблюдения ширин */ } th, td { padding: 12px 15px; font-size: 13px; white-space: nowrap; } th { position: sticky; top: 0; z-index: 10; } /* Action buttons mobile */ .action-buttons { flex-direction: row; flex-wrap: wrap; gap: 5px; } .action-btn, .btn-sm { padding: 8px 12px; font-size: 11px; min-width: auto; } /* Device ID mobile */ .device-id { font-size: 11px; padding: 3px 6px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; } /* Modal mobile */ .modal-content { width: 95%; margin: 20px auto; max-height: calc(100vh - 40px); border-radius: 12px; } .modal-header { padding: 15px 20px; } .modal form { padding: 20px; } .form-group input, .form-group select, .form-group textarea { font-size: 16px; /* Prevents zoom on iOS */ padding: 15px; } /* Settings mobile */ .settings-container { max-width: 100%; } .settings-section { padding: 20px 15px; margin-bottom: 15px; border-radius: 8px; } .setting-item { flex-direction: column; align-items: flex-start; gap: 15px; padding: 15px 0; } .setting-item input[type="text"], .setting-item input[type="password"] { width: 100%; font-size: 16px; padding: 12px 15px; } /* Buttons mobile */ .btn { padding: 14px 20px; font-size: 16px; min-height: 48px; /* Touch target size */ justify-content: center; } .btn-sm { padding: 10px 15px; font-size: 14px; min-height: 40px; } /* Auto-refresh indicator mobile */ .auto-refresh-indicator { font-size: 11px; padding: 6px 10px; } /* Notification mobile */ .notification { right: 15px; left: 15px; top: 15px; max-width: none; border-radius: 8px; } } /* Small mobile styles */ @media (max-width: 480px) { /* Header extra small */ .header .container { padding: 10px 12px; } .logo h1 { font-size: 18px; } .logo .material-icons { font-size: 28px; } .role-badge { display: none; /* Hide role badge on very small screens */ } /* Main content extra small */ .main { padding: 15px 12px; } .page-header h2 { font-size: 22px; } /* Stats extra small */ .stats { gap: 8px; } .stat-card { padding: 12px 8px; min-width: 70px; } .stat-number { font-size: 18px; } .stat-label { font-size: 10px; } /* Table extra small */ table { min-width: 500px; } th, td { padding: 10px 12px; font-size: 12px; } /* Login page extra small */ .login-card { padding: 40px 30px; margin: 15px; border-radius: 24px; max-width: 360px; background: rgba(5, 5, 15, 0.98); backdrop-filter: blur(30px); } .login-header { margin-bottom: 35px; } .login-header h1 { font-size: 26px; } .login-header .material-icons { font-size: 52px; } .login-header p { font-size: 15px; } .input-wrapper { padding: 0 18px; margin-bottom: 18px; border-radius: 16px; background: rgba(0, 0, 0, 0.4); } .input-wrapper input { padding: 16px 0; font-size: 16px; } .login-card .btn-primary { padding: 18px 22px; font-size: 16px; border-radius: 16px; margin-top: 20px; } /* Modal extra small */ .modal-content { width: 100%; margin: 0; border-radius: 0; height: 100vh; max-height: 100vh; } .modal-header { padding: 12px 15px; } .modal form { padding: 15px; } /* Settings extra small */ .settings-section { padding: 15px 12px; border-radius: 6px; } .settings-section h3 { font-size: 16px; } .setting-info h4 { font-size: 14px; } .setting-info p { font-size: 13px; } /* Device actions for very small screens */ .action-buttons { width: 100%; } .action-btn { flex: 1; text-align: center; min-width: 0; padding: 6px 8px; font-size: 10px; } } /* Landscape mobile optimizations */ @media (max-width: 768px) and (orientation: landscape) { .main { padding: 15px; } .page-header { margin-bottom: 15px; } .modal-content { max-height: 95vh; width: 90%; } .sidebar { width: 260px; } } /* Touch optimizations */ @media (pointer: coarse) { /* Increase touch targets */ .nav-btn { padding: 15px 20px; font-size: 16px; } .btn { min-height: 48px; padding: 15px 20px; } .toggle-switch { width: 60px; height: 30px; } .slider:before { height: 22px; width: 22px; left: 4px; bottom: 4px; } input:checked + .slider:before { transform: translateX(30px); } /* Larger form inputs for touch */ .form-group input, .form-group select, .form-group textarea { min-height: 48px; padding: 15px; font-size: 16px; } .search-bar input { min-height: 48px; padding: 15px 15px 15px 50px; font-size: 16px; } /* Action button touch targets */ .action-btn { min-height: 40px; min-width: 80px; padding: 10px 12px; } } /* High DPI displays */ @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { .material-icons { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } } /* Print styles */ @media print { .sidebar, .header, .modal, .notification, .action-buttons, .btn { display: none !important; } .main { margin-left: 0; padding: 0; } .table-container { box-shadow: none; border: 1px solid #000; } body { background: white !important; color: black !important; } } /* Dark Theme */ body.dark-theme { background: #121212; color: #e0e0e0; } body.dark-theme .header { background: #1e1e1e; border-bottom: 1px solid #333; } body.dark-theme .logo h1 { color: #e0e0e0; } body.dark-theme .sidebar { background: #1e1e1e; border-right: 1px solid #333; } body.dark-theme .nav-section h3 { color: #888; } body.dark-theme .nav-btn { color: #b0b0b0; } body.dark-theme .nav-btn:hover { background: #2a2a2a; color: #667eea; } body.dark-theme .nav-btn.active { background: #2a2a2a; color: #667eea; border-left-color: #667eea; } body.dark-theme .main { background: #121212; } body.dark-theme .container { background: #121212; } body.dark-theme #main-panel { background: #121212; } body.dark-theme .tab-content { background: #121212; } body.dark-theme .tab-content.active { background: #121212; } /* Убираем белые фоны у основных элементов */ body.dark-theme html, body.dark-theme body, body.dark-theme .page-header, body.dark-theme .header-actions { background: #121212 !important; } body.dark-theme .page-header h2 { color: #e0e0e0; } body.dark-theme .stat-card { background: #1e1e1e; border: 1px solid #333; color: #e0e0e0; } body.dark-theme .stat-number { color: #667eea; } body.dark-theme .stat-label { color: #888; } body.dark-theme .search-bar input { background: #1e1e1e; border-color: #333; color: #e0e0e0; } body.dark-theme .search-bar input:focus { border-color: #667eea; background: #2a2a2a; } body.dark-theme .search-bar .material-icons { color: #888; } body.dark-theme .table-container { background: #1e1e1e; border: 1px solid #333; margin-left: -15%; /* Сдвигаем все таблицы на 35% левее */ width: 130%; /* Увеличиваем ширину для компенсации сдвига */ } body.dark-theme th { background: #2a2a2a; color: #e0e0e0; border-bottom: 1px solid #333; } body.dark-theme td { border-bottom: 1px solid #333; color: #e0e0e0; } /* body.dark-theme tr:hover { background: #2a2a2a; } */ body.dark-theme .device-id { background: #2a2a2a; color: #e0e0e0; border-color: #333; } body.dark-theme .status.blocked { background: #e74c3c; color: white; } body.dark-theme .btn-primary { background: #6c757d; color: white; } body.dark-theme .btn-secondary { background: #555; color: #e0e0e0; } body.dark-theme .btn-xs { background: #667eea; border-color: #667eea; color: white; } body.dark-theme .btn-xs:hover { background: #5a6fd8; border-color: #5a6fd8; } body.dark-theme .modal-content { background: #1e1e1e; border: 1px solid #333; } body.dark-theme .modal-header { border-bottom: 1px solid #333; } body.dark-theme .modal-header h3 { color: #e0e0e0; } body.dark-theme .close-btn:hover { background: #2a2a2a; } body.dark-theme .form-group label { color: #e0e0e0; } body.dark-theme .form-group input, body.dark-theme .form-group select, body.dark-theme .form-group textarea { background: #2a2a2a; border-color: #333; color: #e0e0e0; } body.dark-theme .form-group input:focus, body.dark-theme .form-group select:focus, body.dark-theme .form-group textarea:focus { border-color: #667eea; background: #333; } body.dark-theme .modal-actions { border-top: 1px solid #333; } body.dark-theme .notification { background: #1e1e1e; border: 1px solid #333; color: #e0e0e0; } body.dark-theme .notification.success { border-left-color: #28a745; } body.dark-theme .notification.error { border-left-color: #dc3545; } body.dark-theme .notification.info { border-left-color: #17a2b8; } body.dark-theme .theme-icon { color: #888; } body.dark-theme .theme-toggle input:checked + .slider { background-color: #6c757d; } /* Settings Page Styles */ .settings-container { max-width: 800px; } .settings-section { background: white; border-radius: 12px; padding: 30px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); } .settings-section h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; color: #333; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #e9ecef; } .settings-section h3 .material-icons { color: #6c757d; font-size: 24px; } .setting-item { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid #f1f3f5; } .setting-item:last-child { border-bottom: none; } .setting-info { flex: 1; } .setting-info h4 { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 5px; } .setting-info p { font-size: 14px; color: #666; margin: 0; } /* Dark theme settings */ body.dark-theme .settings-section { background: #2d2d2d; border: 1px solid #444; } body.dark-theme .settings-section h3 { color: #e9ecef; border-bottom-color: #444; } body.dark-theme .setting-item { border-bottom-color: #444; } body.dark-theme .setting-info h4 { color: #e9ecef; } body.dark-theme .setting-info p { color: #adb5bd; } /* Setting Toggle Styles */ .setting-toggle { display: flex; align-items: center; } .setting-toggle .toggle-switch { margin: 0; } @media (max-width: 768px) { .setting-item { flex-direction: column; align-items: flex-start; gap: 15px; } .settings-section { padding: 20px; } } /* Auto-refresh indicator */ .auto-refresh-indicator { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #28a745; background: rgba(40, 167, 69, 0.1); padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(40, 167, 69, 0.2); } .auto-refresh-indicator .material-icons { font-size: 16px; } /* Combined pulse animation for sync icon */ .auto-refresh-indicator .material-icons.pulse { position: relative; color: #28a745; transition: all 0.1s ease; animation: iconFill 2s infinite; } .auto-refresh-indicator .material-icons.pulse::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 120%; height: 0%; background: radial-gradient(circle, rgba(40, 167, 69, 0.4), rgba(40, 167, 69, 0.1)); border-radius: 50%; animation: fillCircle 2s infinite; z-index: -1; } @keyframes fillCircle { 0% { height: 0%; opacity: 0; } 50% { height: 100%; opacity: 0.8; } 100% { height: 120%; opacity: 0; transform: translateX(-50%) scale(1.2); } } @keyframes iconFill { 0% { color: rgba(40, 167, 69, 0.4); transform: scale(1); } 50% { color: #28a745; transform: scale(1.1); } 100% { color: rgba(40, 167, 69, 0.4); transform: scale(1); } } /* Dark theme for auto-refresh indicator */ body.dark-theme .auto-refresh-indicator { color: #51cf66; background: rgba(81, 207, 102, 0.15); border-color: rgba(81, 207, 102, 0.3); } body.dark-theme .auto-refresh-indicator .material-icons.pulse { color: #51cf66; animation: iconFillDark 2s infinite; } body.dark-theme .auto-refresh-indicator .material-icons.pulse::after { background: radial-gradient(circle, rgba(81, 207, 102, 0.4), rgba(81, 207, 102, 0.1)); } @keyframes iconFillDark { 0% { color: rgba(81, 207, 102, 0.4); transform: scale(1); } 50% { color: #51cf66; transform: scale(1.1); } 100% { color: rgba(81, 207, 102, 0.4); transform: scale(1); } } /* Telegram settings input styles */ .setting-item input[type="text"], .setting-item input[type="password"] { padding: 10px 14px; border: 2px solid #e9ecef; border-radius: 8px; font-size: 14px; transition: all 0.3s ease; font-family: 'Inter', sans-serif; background: white; } .setting-item input[type="text"]:focus, .setting-item input[type="password"]:focus { outline: none; border-color: #6c757d; box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1); } body.dark-theme .setting-item input[type="text"], body.dark-theme .setting-item input[type="password"] { background: #2a2a2a; border-color: #444; color: #e0e0e0; } body.dark-theme .setting-item input[type="text"]:focus, body.dark-theme .setting-item input[type="password"]:focus { border-color: #6c757d; box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.2); background: #333; } body.dark-theme .setting-item input[type="text"]::placeholder, body.dark-theme .setting-item input[type="password"]::placeholder { color: #888; } /* Mobile scroll hint for tables */ .table-container[data-scroll-hint]::after { content: attr(data-scroll-hint); position: absolute; bottom: 10px; right: 15px; background: rgba(108, 117, 125, 0.9); color: white; padding: 5px 10px; border-radius: 15px; font-size: 12px; pointer-events: none; opacity: 0.8; animation: hintFade 2s ease-in-out infinite; } @keyframes hintFade { 0%, 100% { opacity: 0.8; } 50% { opacity: 0.4; } } /* Touch device specific styles */ .touch-device .btn { min-height: 44px; /* Apple's recommended touch target size */ } .touch-device .nav-btn { padding: 16px 20px; } .touch-device .action-btn { min-height: 36px; min-width: 36px; } /* iOS specific fixes */ @supports (-webkit-touch-callout: none) { /* iOS Safari specific styles */ .search-bar input, .form-group input, .form-group select, .form-group textarea { border-radius: 8px; /* Prevents iOS from styling inputs */ -webkit-appearance: none; } .toggle-switch input { -webkit-appearance: none; } /* Prevent iOS zoom on input focus */ .search-bar input, .form-group input, .form-group select { font-size: 16px !important; } } /* Android specific fixes */ @media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm) { /* Android Chrome specific styles */ .btn { -webkit-tap-highlight-color: rgba(108, 117, 125, 0.3); } .nav-btn { -webkit-tap-highlight-color: rgba(108, 117, 125, 0.2); } } /* Accessibility improvements for mobile */ @media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } .notification { animation: none; } .material-icons.pulse { animation: none; } .login-container { animation: none !important; opacity: 1; } .login-card { animation: none !important; opacity: 1; } .login-header { animation: none !important; opacity: 1; } .input-wrapper { animation: none !important; opacity: 1; } .login-card .btn-primary { animation: none !important; opacity: 1; } .login-header .material-icons { animation: none; } .login-container::before, .login-container::after { animation: none !important; } } /* Оптимизация анимаций на мобильных устройствах */ @media (max-width: 768px) { .login-container { animation: fadeInPage 0.8s ease-out forwards; } .login-container::before, .login-container::after { animation: none !important; } .login-header .material-icons { animation: iconPulse 4s ease-in-out infinite; } .login-card { animation: slideUpCard 0.6s ease-out 0.2s forwards; } .login-header { animation: slideInElements 0.5s ease-out 0.4s forwards; } .input-wrapper { animation: slideInElements 0.5s ease-out 0.6s forwards; } .input-wrapper:nth-child(2) { animation-delay: 0.7s; } .login-card .btn-primary { animation: slideInElements 0.5s ease-out 0.9s forwards; } .login-card .btn-primary:hover { transform: translateY(-1px); } .input-wrapper:focus-within { transform: translateY(-1px); } } /* USSD Enhanced Styles */ .ussd-success { background: rgba(212, 237, 218, 0.3) !important; border-left: 3px solid #28a745; } .ussd-error { background: rgba(248, 215, 218, 0.3) !important; border-left: 3px solid #dc3545; } body.dark-theme .ussd-success { background: rgba(40, 167, 69, 0.1) !important; border-left: 3px solid #51cf66; } body.dark-theme .ussd-error { background: rgba(220, 53, 69, 0.1) !important; border-left: 3px solid #ff6b6b; } /* USSD Stats Cards */ .ussd-stats { display: flex; gap: 15px; margin-bottom: 20px; } .ussd-stat-card { background: white; padding: 15px 20px; border-radius: 12px; text-align: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); min-width: 100px; border-left: 4px solid #6c757d; } .ussd-stat-card.success { border-left-color: #28a745; } .ussd-stat-card.error { border-left-color: #dc3545; } .ussd-stat-card.today { border-left-color: #ffc107; } body.dark-theme .ussd-stat-card { background: #2a2a2a; border-color: #444; color: #e0e0e0; } body.dark-theme .ussd-stat-card.success { border-left-color: #51cf66; } body.dark-theme .ussd-stat-card.error { border-left-color: #ff6b6b; } body.dark-theme .ussd-stat-card.today { border-left-color: #ffd43b; } /* USSD Code highlighting */ .ussd-table code { font-family: 'Courier New', monospace; font-weight: 600; letter-spacing: 0.5px; } /* Dark theme mobile optimizations */ @media (max-width: 768px) { body.dark-theme .table-container[data-scroll-hint]::after { background: rgba(81, 207, 102, 0.9); } body.dark-theme .mobile-menu-toggle { color: #e0e0e0; } body.dark-theme .mobile-menu-toggle:hover { background: rgba(224, 224, 224, 0.1); } .ussd-stats { flex-wrap: wrap; gap: 10px; } .ussd-stat-card { flex: 1; min-width: 80px; padding: 12px 15px; } } /* Стили для элементов очистки в разделе "Система" */ .cleanup-controls { margin-top: 16px; } .cleanup-input-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; } /* Стильное поле ввода времени */ .cleanup-time-input { position: relative; display: inline-flex; align-items: center; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border: 2px solid #e9ecef; border-radius: 12px; padding: 2px; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); } .cleanup-time-input:hover { border-color: #667eea; box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15); transform: translateY(-1px); } .cleanup-time-input:focus-within { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 4px 16px rgba(102, 126, 234, 0.15); transform: translateY(-1px); } .time-input { background: white; border: none; padding: 12px 16px; border-radius: 10px; font-size: 16px; font-weight: 600; font-family: 'Inter', sans-serif; color: #333; width: 80px; text-align: center; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .time-input:focus { outline: none; background: #ffffff; color: #667eea; box-shadow: 0 4px 8px rgba(102, 126, 234, 0.1); } .time-input::placeholder { color: #999; font-weight: 500; } .time-input::-webkit-outer-spin-button, .time-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } .time-input[type=number] { -moz-appearance: textfield; } /* Анимация при изменении значения */ .time-input.value-changed { animation: valueChange 0.4s ease; } @keyframes valueChange { 0% { transform: scale(1); background: white; } 50% { transform: scale(1.05); background: rgba(102, 126, 234, 0.1); color: #667eea; } 100% { transform: scale(1); background: white; } } .time-unit { padding: 8px 16px; color: #667eea; font-weight: 600; font-size: 14px; text-transform: lowercase; letter-spacing: 0.5px; background: rgba(102, 126, 234, 0.1); border-radius: 8px; margin-left: 4px; transition: all 0.3s ease; position: relative; overflow: hidden; } .time-unit::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); transition: left 0.6s ease; } .cleanup-time-input:hover .time-unit::before { left: 100%; } .cleanup-input-row span { color: #333; font-weight: 500; } .cleanup-status { background: rgba(34, 197, 94, 0.1); color: #22c55e; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid rgba(34, 197, 94, 0.3); } .cleanup-examples { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; } .example-chip { background: #f8f9fa; color: #333; border: 1px solid #e9ecef; padding: 8px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; } .example-chip:hover { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-color: #667eea; color: white; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); } .cleanup-actions { display: flex; gap: 12px; margin-bottom: 16px; } .cleanup-info { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 12px 16px; margin-top: 8px; } .cleanup-info p { color: #666; font-size: 13px; margin: 0; line-height: 1.4; } /* Темная тема для элементов очистки */ body.dark-theme .cleanup-time-input { background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%); border-color: #444; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); } body.dark-theme .cleanup-time-input:hover { border-color: #667eea; box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2); } body.dark-theme .cleanup-time-input:focus-within { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3), 0 4px 16px rgba(102, 126, 234, 0.2); } body.dark-theme .time-input { background: #1a1a1a; color: #e0e0e0; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } body.dark-theme .time-input:focus { background: #0f0f0f; color: #667eea; box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2); } body.dark-theme .time-input::placeholder { color: #666; } body.dark-theme .time-unit { background: rgba(102, 126, 234, 0.2); color: #a78bfa; } /* Анимация для темной темы */ @keyframes valueChangeDark { 0% { transform: scale(1); background: #1a1a1a; } 50% { transform: scale(1.05); background: rgba(102, 126, 234, 0.2); color: #a78bfa; } 100% { transform: scale(1); background: #1a1a1a; } } body.dark-theme .time-input.value-changed { animation: valueChangeDark 0.4s ease; } body.dark-theme .cleanup-input-row span { color: #e9ecef; } body.dark-theme .cleanup-status { background: rgba(34, 197, 94, 0.2); color: #51cf66; border-color: rgba(34, 197, 94, 0.4); } body.dark-theme .example-chip { background: #2a2a2a; color: #e9ecef; border-color: #444; } body.dark-theme .example-chip:hover { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-color: #667eea; color: white; } body.dark-theme .cleanup-info { background: #2a2a2a; border-color: #444; } body.dark-theme .cleanup-info p { color: #adb5bd; } /* Компактная версия блока автоочистки */ .cleanup-controls-compact { margin-top: 12px; } .cleanup-input-row-compact { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-bottom: 8px; } /* Компактная кнопка сохранения */ .btn-compact { padding: 8px 16px; font-size: 14px; border-radius: 8px; min-width: auto; } .btn-compact .material-icons { font-size: 18px; } /* Компактный статус автоочистки */ .cleanup-input-row-compact .cleanup-status { background: rgba(34, 197, 94, 0.1); color: #22c55e; padding: 6px 12px; border-radius: 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid rgba(34, 197, 94, 0.3); min-width: 75px; text-align: center; } /* Темная тема для компактных элементов */ body.dark-theme .cleanup-input-row-compact .cleanup-status { background: rgba(34, 197, 94, 0.2); color: #51cf66; border-color: rgba(34, 197, 94, 0.4); } /* Мобильные стили для компактной версии */ @media (max-width: 768px) { .cleanup-input-row-compact { flex-direction: column; align-items: stretch; gap: 12px; } .cleanup-input-row-compact .cleanup-time-input { width: 100%; justify-content: center; } .cleanup-input-row-compact .cleanup-status { text-align: center; margin: 0 auto; width: fit-content; } .btn-compact { width: 100%; padding: 12px 20px; font-size: 16px; } } /* Мобильные стили для поля ввода времени */ @media (max-width: 768px) { .cleanup-time-input { width: 100%; justify-content: center; padding: 4px; margin-bottom: 8px; } .time-input { width: 100px; font-size: 18px; padding: 14px 20px; } .time-unit { padding: 10px 20px; font-size: 16px; margin-left: 8px; } } /* Collapse button styles */ .collapse-btn { background: none; border: none; padding: 8px; border-radius: 50%; cursor: pointer; color: #666; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; } .collapse-btn:hover { background: #f0f0f0; color: #667eea; } .collapse-btn .material-icons { font-size: 20px; transition: transform 0.3s ease; } .collapse-btn.expanded .material-icons { transform: rotate(180deg); } /* Notifications details container */ .notifications-details { margin-top: 15px; padding-top: 15px; border-top: 1px solid #e9ecef; max-height: 0; opacity: 0; } .notifications-details.expanded { max-height: 500px; opacity: 1; } /* Dark theme styles for collapse button */ body.dark-theme .collapse-btn { color: #aaa; } body.dark-theme .collapse-btn:hover { background: #444; color: #667eea; } body.dark-theme .notifications-details { border-top-color: #444; } /* Test Buttons Styles */ .test-buttons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; } .test-btn { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: none; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; font-family: inherit; text-align: left; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); position: relative; overflow: hidden; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: white; } .test-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, var(--gradient-start-hover), var(--gradient-end-hover)); opacity: 0; transition: opacity 0.3s ease; border-radius: 12px; } .test-btn:hover::before { opacity: 1; } .test-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); } .test-btn:active { transform: translateY(0); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); } .test-btn-icon { font-size: 24px; min-width: 32px; display: flex; align-items: center; justify-content: center; z-index: 2; position: relative; } .test-btn-text { display: flex; flex-direction: column; gap: 4px; flex: 1; z-index: 2; position: relative; } .test-btn-title { font-size: 14px; font-weight: 600; line-height: 1.2; } .test-btn-subtitle { font-size: 12px; opacity: 0.9; line-height: 1.3; } /* Channel Button - Purple gradient */ .test-btn-channel { --gradient-start: #667eea; --gradient-end: #764ba2; --gradient-start-hover: #5a6fd8; --gradient-end-hover: #6a4190; } /* User Button - Purple gradient (unified style) */ .test-btn-user { --gradient-start: #667eea; --gradient-end: #764ba2; --gradient-start-hover: #5a6fd8; --gradient-end-hover: #6a4190; } /* APK Button - Purple gradient (unified style) */ .test-btn-apk { --gradient-start: #667eea; --gradient-end: #764ba2; --gradient-start-hover: #5a6fd8; --gradient-end-hover: #6a4190; } /* Dark theme adjustments */ body.dark-theme .test-btn { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } body.dark-theme .test-btn:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); } /* Mobile responsive */ @media (max-width: 768px) { .test-buttons-grid { grid-template-columns: 1fr; gap: 12px; } .test-btn { padding: 14px 16px; gap: 12px; } .test-btn-icon { font-size: 20px; min-width: 28px; } .test-btn-title { font-size: 13px; } .test-btn-subtitle { font-size: 11px; } } /* Add loading state for test buttons */ .test-btn.loading { pointer-events: none; opacity: 0.7; } .test-btn.loading .test-btn-icon { animation: pulse 1.5s ease-in-out infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } } /* Dropdown Styles */ .dropdown-container { position: relative; display: inline-block; } .dropdown-toggle { display: flex; align-items: center; gap: 8px; white-space: nowrap; background: #667eea; border: none; color: white; padding: 8px 16px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; } .dropdown-toggle:hover { background: #5a6fd8; transform: translateY(-1px); } .dropdown-toggle:disabled { opacity: 0.6; cursor: not-allowed; transform: none; } .dropdown-toggle .dropdown-arrow { font-size: 18px; transition: transform 0.3s ease; } .dropdown-toggle[aria-expanded="true"] .dropdown-arrow { transform: rotate(180deg); } .dropdown-menu { position: fixed; background: white; border: 1px solid #e9ecef; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); min-width: 200px; z-index: 1000; opacity: 0; visibility: hidden; transform: translateX(-10px); transition: all 0.3s ease; max-height: 300px; overflow-y: auto; } .dropdown-menu.show { opacity: 1; visibility: visible; transform: translateX(0); } .dropdown-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #333; text-decoration: none; transition: all 0.2s ease; border: none; background: none; width: 100%; text-align: left; cursor: pointer; font-size: 14px; } .dropdown-item:hover { background: #f8f9fa; color: #667eea; } .dropdown-item .material-icons { font-size: 18px; color: #666; transition: color 0.2s ease; } .dropdown-item:hover .material-icons { color: #667eea; } .dropdown-item.text-danger { color: #dc3545; } .dropdown-item.text-danger:hover { background: #f8d7da; color: #721c24; } .dropdown-item.text-danger .material-icons { color: #dc3545; } .dropdown-item.text-danger:hover .material-icons { color: #721c24; } .dropdown-divider { height: 1px; background: #e9ecef; margin: 8px 0; } /* Dark theme dropdown styles */ body.dark-theme .dropdown-menu { background: #2a2a2a; border-color: #444; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); } body.dark-theme .dropdown-item { color: #e0e0e0; } body.dark-theme .dropdown-item:hover { background: #3a3a3a; color: #667eea; } body.dark-theme .dropdown-item .material-icons { color: #aaa; } body.dark-theme .dropdown-item:hover .material-icons { color: #667eea; } body.dark-theme .dropdown-item.text-danger { color: #ff6b6b; } body.dark-theme .dropdown-item.text-danger:hover { background: #4a2e2e; color: #ff9999; } body.dark-theme .dropdown-item.text-danger .material-icons { color: #ff6b6b; } body.dark-theme .dropdown-item.text-danger:hover .material-icons { color: #ff9999; } body.dark-theme .dropdown-divider { background: #444; } /* Mobile dropdown adjustments */ @media (max-width: 768px) { .dropdown-toggle { padding: 10px 14px; font-size: 13px; } .dropdown-toggle .material-icons { font-size: 16px; } .dropdown-toggle .dropdown-arrow { font-size: 16px; } .dropdown-menu { min-width: 180px; /* На мобильных позиционируется через JavaScript */ } .dropdown-item { padding: 14px 16px; font-size: 13px; } .dropdown-item .material-icons { font-size: 16px; } } /* Animation improvements */ @media (prefers-reduced-motion: reduce) { .dropdown-menu { transition: none; } .dropdown-toggle .dropdown-arrow { transition: none; } .dropdown-item { transition: none; } } /* Pin/Unpin device styles */ .pin-icon { font-size: 20px; cursor: pointer; transition: all 0.3s ease; user-select: none; display: inline-block; transform-origin: center; } .pin-icon:hover { transform: scale(1.2) rotate(10deg); filter: brightness(1.2); } .pin-icon.pinned { color: #ff6b6b; } .pin-icon.unpinned { color: #666; opacity: 0.7; } .pin-icon.unpinned:hover { opacity: 1; color: #667eea; } /* Dark theme styles for pin icons */ body.dark-theme .pin-icon.pinned { color: #ff6b6b; } body.dark-theme .pin-icon.unpinned { color: #aaa; opacity: 0.7; } body.dark-theme .pin-icon.unpinned:hover { opacity: 1; color: #667eea; } /* === FILTERS STYLES === */ .search-container { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; margin-left: -15%; /* Сдвигаем контейнер поиска левее, чтобы выровнять с таблицей */ padding-left: 20px; /* Добавляем отступ */ } .search-container .search-bar { flex: 1; margin-bottom: 0; } .filters-btn { display: flex; align-items: center; gap: 8px; padding: 12px 16px; white-space: nowrap; } /* Filters Sidebar */ .filters-sidebar { position: fixed; top: 0; left: -320px; width: 320px; height: 100vh; background: white; box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1); z-index: 2000; transition: left 0.3s ease; overflow-y: auto; } .filters-sidebar.open { left: 0; } .filters-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #e9ecef; background: #f8f9fa; } .filters-header h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 600; color: #333; } .close-filters { background: none; border: none; padding: 8px; cursor: pointer; border-radius: 6px; color: #666; transition: all 0.3s ease; } .close-filters:hover { background: rgba(0, 0, 0, 0.1); color: #333; } .filters-content { padding: 20px; } .filter-section { margin-bottom: 30px; } .filter-section h4 { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; } .filter-group { display: flex; flex-direction: column; gap: 10px; } .filter-checkbox { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 8px 0; transition: all 0.3s ease; } .filter-checkbox:hover { background: rgba(102, 126, 234, 0.05); border-radius: 6px; padding-left: 8px; } .filter-checkbox input[type="checkbox"] { position: absolute; opacity: 0; } .filter-checkbox .checkmark { width: 18px; height: 18px; border: 2px solid #ddd; border-radius: 4px; position: relative; transition: all 0.3s ease; } .filter-checkbox input[type="checkbox"]:checked + .checkmark { background: #667eea; border-color: #667eea; } .filter-checkbox input[type="checkbox"]:checked + .checkmark::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 12px; font-weight: bold; } .status-indicator { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .status-indicator.online { background: #51cf66; } .status-indicator.offline { background: #ff6b6b; } .status-indicator.blocked { background: #fd7e14; } .filter-range { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .filter-range label { font-weight: 500; color: #666; font-size: 14px; } .filter-range input[type="number"] { width: 80px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; outline: none; transition: border-color 0.3s ease; } .filter-range input[type="number"]:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .filter-actions { display: flex; gap: 10px; padding-top: 20px; border-top: 1px solid #e9ecef; margin-top: 20px; } .filter-actions .btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; } /* Filters Overlay */ .filters-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.5); z-index: 1999; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .filters-overlay.active { opacity: 1; visibility: visible; } /* Dark Theme Filters */ body.dark-theme .filters-sidebar { background: #2a2a2a; color: #e0e0e0; } body.dark-theme .filters-header { background: #333; border-bottom-color: #444; } body.dark-theme .filters-header h3 { color: #e0e0e0; } body.dark-theme .close-filters { color: #ccc; } body.dark-theme .close-filters:hover { background: rgba(255, 255, 255, 0.1); color: #fff; } body.dark-theme .filter-section h4 { color: #e0e0e0; } body.dark-theme .filter-checkbox { color: #e0e0e0; } body.dark-theme .filter-checkbox:hover { background: rgba(102, 126, 234, 0.1); } body.dark-theme .filter-checkbox .checkmark { border-color: #555; background: transparent; } body.dark-theme .filter-checkbox input[type="checkbox"]:checked + .checkmark { background: #667eea; border-color: #667eea; } body.dark-theme .filter-range label { color: #ccc; } body.dark-theme .filter-range input[type="number"] { background: #333; border-color: #555; color: #e0e0e0; } body.dark-theme .filter-range input[type="number"]:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2); } body.dark-theme .filter-actions { border-top-color: #444; } /* Mobile Styles */ @media (max-width: 768px) { .search-container { flex-direction: column; gap: 10px; margin-left: -5%; /* Сдвигаем контейнер поиска левее на мобильных */ } .search-container .search-bar { width: 100%; } .filters-btn { width: 100%; justify-content: center; } .filters-sidebar { width: 280px; left: -280px; } .filter-range { flex-direction: column; align-items: flex-start; gap: 8px; } .filter-range input[type="number"] { width: 100%; } .filter-actions { flex-direction: column; } } /* Contacts Export Modal Styles */ .contacts-export-modal-content { max-width: 900px; max-height: 90vh; overflow-y: auto; } .contacts-export-content { padding: 20px 0; } .contacts-export-header { border-bottom: 1px solid #e9ecef; padding-bottom: 15px; margin-bottom: 20px; } .contacts-export-header h4 { margin: 0; color: #333; font-size: 20px; font-weight: 600; } .contacts-export-stats { display: flex; gap: 20px; margin-top: 10px; flex-wrap: wrap; } .contacts-export-stats span { background: #f8f9fa; padding: 5px 12px; border-radius: 20px; font-size: 14px; color: #666; border: 1px solid #e9ecef; } .contacts-search-container { margin-bottom: 20px; } .contacts-search-container .search-bar { position: relative; display: flex; align-items: center; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 12px; padding: 0 15px; margin-bottom: 10px; transition: all 0.3s ease; } .contacts-search-container .search-bar:focus-within { border-color: #667eea; background: #fff; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .contacts-search-container .search-bar .material-icons { color: #666; margin-right: 10px; font-size: 20px; } .contacts-search-container .search-bar input { flex: 1; border: none; background: transparent; padding: 12px 0; font-size: 16px; outline: none; color: #333; } .contacts-search-container .search-bar input::placeholder { color: #999; } .contacts-search-container .search-bar button { background: none; border: none; padding: 5px; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s; } .contacts-search-container .search-bar button:hover { background: rgba(102, 126, 234, 0.1); } .contacts-search-container .search-bar button .material-icons { font-size: 18px; color: #666; } .search-stats { font-size: 14px; color: #666; text-align: right; } .contacts-export-body { max-height: 500px; overflow-y: auto; border: 1px solid #e9ecef; border-radius: 8px; padding: 15px; background: #fff; } /* Contact Cards */ .contact-card { background: #fff; border: 1px solid #e9ecef; border-radius: 12px; padding: 15px; margin-bottom: 12px; transition: all 0.3s ease; cursor: pointer; } .contact-card:hover { border-color: #667eea; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1); transform: translateY(-1px); } .contact-card:last-child { margin-bottom: 0; } .contact-header { margin-bottom: 10px; } .contact-name { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 5px; } .contact-details { display: flex; flex-direction: column; gap: 8px; } .contact-phones, .contact-emails { display: flex; flex-direction: column; gap: 4px; } .contact-phone, .contact-email { font-size: 14px; color: #666; padding: 2px 0; } .contact-phone { font-family: 'Courier New', monospace; } .contact-email { font-family: 'Courier New', monospace; } .text-muted { color: #999 !important; } .no-contacts { text-align: center; padding: 40px 20px; color: #666; font-size: 16px; background: #f8f9fa; border-radius: 8px; } /* Loading Styles */ .loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; } .loading-spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .loading-text { text-align: center; } .loading-text h4 { margin: 0 0 10px 0; color: #333; font-size: 18px; font-weight: 600; } .loading-text p { margin: 0; color: #666; font-size: 14px; } .info-block { display: flex; align-items: center; gap: 10px; padding: 15px; background: #e3f2fd; border: 1px solid #bbdefb; border-radius: 8px; color: #1976d2; } .info-block .material-icons { font-size: 20px; } /* Dark Theme Styles for Contacts */ body.dark-theme .contacts-export-header { border-bottom: 1px solid #444; } body.dark-theme .contacts-export-header h4 { color: #e0e0e0; } body.dark-theme .contacts-export-stats span { background: #2d2d2d; color: #b0b0b0; border: 1px solid #444; } body.dark-theme .contacts-search-container .search-bar { background: #2d2d2d; border: 1px solid #444; } body.dark-theme .contacts-search-container .search-bar:focus-within { border-color: #667eea; background: #333; } body.dark-theme .contacts-search-container .search-bar input { color: #e0e0e0; } body.dark-theme .contacts-search-container .search-bar input::placeholder { color: #888; } body.dark-theme .contacts-search-container .search-bar .material-icons { color: #b0b0b0; } body.dark-theme .search-stats { color: #b0b0b0; } body.dark-theme .contacts-export-body { border: 1px solid #444; background: #2d2d2d; } body.dark-theme .contact-card { background: #333; border: 1px solid #444; } body.dark-theme .contact-card:hover { border-color: #667eea; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2); } body.dark-theme .contact-name { color: #e0e0e0; } body.dark-theme .contact-phone, body.dark-theme .contact-email { color: #b0b0b0; } body.dark-theme .text-muted { color: #888 !important; } body.dark-theme .no-contacts { background: #2d2d2d; color: #b0b0b0; border: 1px solid #444; } body.dark-theme .loading-text h4 { color: #e0e0e0; } body.dark-theme .loading-text p { color: #b0b0b0; } body.dark-theme .info-block { background: #1a2332; border: 1px solid #2d4356; color: #64b5f6; } /* Mobile Responsiveness for Contacts */ @media (max-width: 768px) { .contacts-export-modal-content { max-width: 95vw; margin: 20px auto; max-height: 85vh; } .contacts-export-stats { flex-direction: column; gap: 8px; } .contacts-export-stats span { text-align: center; } .contact-card { padding: 12px; } .contact-name { font-size: 15px; } .contact-phone, .contact-email { font-size: 13px; } .contacts-export-body { max-height: 400px; padding: 10px; } .contacts-search-container .search-bar { padding: 0 12px; } .contacts-search-container .search-bar input { padding: 10px 0; font-size: 15px; } }