
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: #333;
            margin: 0;
            padding: 0;
            overflow-x: auto;
        }

        .container {
            display: flex;
            min-height: 100vh;
            width: 100%;
        }

        /* Боковое меню */
        .sidebar {
            width: 250px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            padding: 20px 0;
            position: fixed;
            height: 100vh;
            overflow-y: auto;
        }

        .logo {
            text-align: center;
            padding: 20px;
            border-bottom: 1px solid #eee;
            margin-bottom: 20px;
        }

        .logo h2 {
            color: #667eea;
            font-size: 24px;
            font-weight: 700;
        }

        .nav-menu {
            list-style: none;
        }

        .nav-item {
            margin-bottom: 5px;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 15px 25px;
            color: #666;
            text-decoration: none;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
        }

        .nav-link:hover,
        .nav-link.active {
            background: linear-gradient(90deg, #667eea, #764ba2);
            color: white;
            border-left-color: #fff;
            transform: translateX(5px);
        }

        .nav-link i {
            margin-right: 15px;
            width: 20px;
            text-align: center;
        }

        /* Основной контент */
        .main-content {
            flex: 1;
            margin-left: 250px;
            padding: 0;
            width: calc(100% - 250px);
            min-height: 100vh;
        }

        /* Базовые стили для всех вкладок */
        .tab-content {
            width: 100%;
            margin: 0;
            padding: 20px;
            min-height: calc(100vh - 40px);
            background: transparent;
            display: none;
        }

        .tab-content.active {
            display: block !important;
        }

        /* Специальные стили для вкладки кэша */
        #cache-tab {
            width: 100%;
            margin: 0;
            padding: 20px;
            min-height: calc(100vh - 40px);
            background: transparent;
            display: none;
        }

        #cache-tab.active {
            display: block !important;
        }

        /* Временные стили для отладки */
        #cache-tab {
            background: rgba(255, 255, 255, 0.95) !important;
            border: 2px solid #28a745 !important;
            border-radius: 15px !important;
            margin: 10px !important;
        }

        #cache-tab .cache-monitor-container {
            width: 100%;
            max-width: none;
            margin: 0;
            padding: 0;
        }

        /* Полноэкранный режим для API метрик */
        #api-metrics-tab {
            width: 100%;
            margin: 0;
            padding: 0;
        }

                 #api-metrics-tab .api-metrics-dashboard {
             width: 100%;
             max-width: none;
             margin: 0;
             padding: 20px;
             border-radius: 0;
             box-shadow: none;
         }

         /* Полноширинная таблица эндпоинтов */
         #api-metrics-tab .api-metrics-endpoints-table {
             width: 100%;
             margin: 0;
             padding: 20px;
         }

         #api-metrics-tab .endpoints-table {
             width: 100%;
             min-width: 1200px;
         }

         /* Кнопка переключения меню */
         .menu-toggle {
             position: fixed;
             top: 20px;
             left: 20px;
             z-index: 1001;
             background: rgba(102, 126, 234, 0.9);
             color: white;
             border: none;
             border-radius: 8px;
             padding: 12px 15px;
             font-size: 18px;
             cursor: pointer;
             box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
             transition: all 0.3s ease;
         }

         .menu-toggle:hover {
             background: rgba(102, 126, 234, 1);
             transform: scale(1.05);
         }

         .sidebar.hidden {
             transform: translateX(-100%);
         }

         /* Адаптация для мобильных */
         @media (max-width: 768px) {
             .menu-toggle {
                 display: block !important;
             }
             
             .sidebar {
                 transform: translateX(-100%);
                 transition: transform 0.3s ease;
             }
             
             .sidebar.visible {
                 transform: translateX(0);
             }
             
             .main-content {
                 margin-left: 0;
                 width: 100%;
             }
             
             #api-metrics-tab .api-metrics-dashboard {
                 padding: 10px;
             }
         }

        .header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 20px;
            border-radius: 15px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .header h1 {
            color: #1a1a1a;
            font-size: 28px;
            margin-bottom: 10px;
        }

        .header p {
            color: #2c3e50;
            font-size: 16px;
        }

        /* Карточки */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 30px;
            width: 100%;
        }

        .card {
            background: #ffffff !important;
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
            transition: all 0.3s ease;
            border: 1px solid rgba(102, 126, 234, 0.1);
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2);
        }

        .card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
        }

        .card-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .card-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 20px;
            color: white;
        }

        .card-icon.cpu {
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
        }

        .card-icon.memory {
            background: linear-gradient(45deg, #4834d4, #686de0);
        }

        .card-icon.disk {
            background: linear-gradient(45deg, #00b894, #00cec9);
        }

        .card-icon.mongodb {
            background: linear-gradient(45deg, #ff6b6b, #ee5a52);
        }

        .card-icon.requests {
            background: linear-gradient(45deg, #f39c12, #e67e22);
        }

        .card-icon.response-time {
            background: linear-gradient(45deg, #9b59b6, #8e44ad);
        }

        .card-icon.errors {
            background: linear-gradient(45deg, #e74c3c, #c0392b);
        }

        .card .card-title {
            font-size: 16px !important;
            font-weight: 600 !important;
            color: #333333 !important;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 1 !important;
        }

        .card .card-value {
            font-size: 32px !important;
            font-weight: 700 !important;
            color: #000000 !important;
            margin-bottom: 15px;
            text-shadow: none !important;
            opacity: 1 !important;
        }

        .progress-bar {
            width: 100%;
            height: 10px;
            background: #e2e8f0;
            border-radius: 5px;
            overflow: hidden;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #764ba2);
            transition: width 0.5s ease;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
        }

        /* Стили для жалоб */
        .complaint-item {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            transition: box-shadow 0.3s ease;
        }

        /* Стили для аналитики */
        .analytics-nav {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            background: rgba(255, 255, 255, 0.95);
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .nav-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            background: #f8f9fa;
            color: #666;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .nav-btn:hover {
            background: #e9ecef;
        }

        .nav-btn.active {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
        }

        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 30px;
            width: 100%;
        }

        .metric-card {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
            display: flex;
            align-items: center;
            transition: transform 0.3s ease;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .metric-card:hover {
            transform: translateY(-5px);
        }

        .metric-icon {
            font-size: 24px;
            margin-right: 15px;
        }

        .metric-content {
            flex: 1;
        }

        .metric-value {
            font-size: 24px;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 5px;
        }

        .metric-label {
            color: #2c3e50;
            font-size: 14px;
        }

        .charts-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-bottom: 30px;
        }

        .chart-container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            width: 100%;
        }

        .chart-container h3 {
            margin-bottom: 15px;
            color: #333;
            font-size: 18px;
        }

        .top-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }

        .top-item:last-child {
            border-bottom: none;
        }

        .rank {
            background: #667eea;
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
        }

        .name {
            flex: 1;
            margin: 0 15px;
            color: #333;
        }

        .count {
            background: #f8f9fa;
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: 600;
            color: #667eea;
        }

        .events-controls {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .filters {
            display: flex;
            gap: 15px;
            align-items: center;
            flex-wrap: wrap;
        }

        .form-control {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            background: white;
        }

        /* Стили для категорий API */
        .api-metrics-categories {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 1px 6px rgba(80,60,180,0.07);
            padding: 18px 24px;
            margin-bottom: 24px;
        }

        .api-metrics-categories .table-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .api-metrics-categories .table-header h3 {
            margin: 0;
            color: #333;
            font-size: 1.2rem;
        }

        .api-metrics-categories .table-header span {
            color: #666;
            font-size: 0.9rem;
        }

        #api-categories-container {
            background: #fff;
            border-radius: 12px;
            padding: 0;
            margin-bottom: 0;
        }

        .api-category-bar {
            background: #f8f9ff;
            border-radius: 8px;
            padding: 16px 20px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            transition: background 0.2s;
            border: 1px solid #e8eaff;
            min-height: 60px;
        }

        .api-category-bar:hover {
            background: #f0f2ff;
        }

        .cat-label {
            font-size: 1.1rem;
            font-weight: 600;
            color: #5a3ec8;
            text-transform: capitalize;
            min-width: 120px;
        }

        .api-category-bar .cat-label {
            font-size: 1.2rem;
            font-weight: 700;
        }

        .api-endpoints-list {
            background: #fff;
            border-radius: 8px;
            margin: 8px 0 16px 0;
            padding: 16px;
            box-shadow: 0 1px 4px rgba(80,60,180,0.06);
            border: 1px solid #f0f2ff;
        }

        .api-endpoints-list .endpoints-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 8px;
        }

        .api-endpoints-list .endpoints-table th,
        .api-endpoints-list .endpoints-table td {
            padding: 8px 12px;
            text-align: left;
            border-bottom: 1px solid #f0f2ff;
            font-size: 14px;
        }

        .api-endpoints-list .endpoints-table th {
            background: #f8f9ff;
            font-weight: 600;
            color: #5a3ec8;
        }

        .api-endpoints-list .endpoints-table tr:hover {
            background: #f8f9ff;
        }

        /* Дополнительные стили для API метрик */
        .api-metrics-dashboard {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .api-metrics-header {
            text-align: center;
            margin-bottom: 30px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .api-metrics-header h1 {
            color: #333;
            font-size: 32px;
            margin-bottom: 10px;
        }

        .api-metrics-header p {
            color: #666;
            font-size: 16px;
        }

        .api-metrics-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .api-metrics-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            transition: transform 0.3s ease;
        }

        .api-metrics-card:hover {
            transform: translateY(-5px);
        }

        .api-metrics-card .card-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 20px;
            color: white;
        }

        .api-metrics-card .card-icon.requests {
            background: linear-gradient(45deg, #f39c12, #e67e22);
        }

        .api-metrics-card .card-icon.errors {
            background: linear-gradient(45deg, #e74c3c, #c0392b);
        }

        .api-metrics-card .card-icon.response-time {
            background: linear-gradient(45deg, #9b59b6, #8e44ad);
        }

        .api-metrics-card .card-icon.error-rate {
            background: linear-gradient(45deg, #4834d4, #686de0);
        }

        .api-metrics-card .card-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
        }

        .api-metrics-card .card-value {
            font-size: 24px;
            font-weight: 700;
            color: #667eea;
        }

        .api-metrics-graphs {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-bottom: 30px;
        }

        .graph-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .graph-card canvas {
            width: 100% !important;
            height: 200px !important;
        }

        .graph-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin-bottom: 15px;
        }

        .api-metrics-endpoints-table {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .endpoints-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }

        .endpoints-table th,
        .endpoints-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }

        .endpoints-table th {
            background: #f8f9fa;
            font-weight: 600;
            color: #333;
        }

        .refresh-btn {
            background: #667eea;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            font-weight: 600;
            white-space: nowrap;
            min-width: 100px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            margin: 2px;
            height: 40px;
            line-height: 1;
            position: relative;
            z-index: 1;
            flex-shrink: 0;
        }

        .refresh-btn:hover {
            background: #5a6fd8;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .events-list {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .event-item {
            border: 1px solid #eee;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
            background: white;
        }

        .event-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .event-name {
            font-weight: 600;
            color: #667eea;
        }

        .event-time {
            color: #666;
            font-size: 14px;
        }

        .event-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
            margin-bottom: 10px;
        }

        .event-properties {
            background: #f8f9fa;
            padding: 10px;
            border-radius: 6px;
        }

        /* Стили для API метрик */
        .method-badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .method-badge.get {
            background: linear-gradient(45deg, #00b894, #00cec9);
            color: white;
        }

        .method-badge.post {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
        }

        .method-badge.put {
            background: linear-gradient(45deg, #fdcb6e, #e17055);
            color: white;
        }

        .method-badge.delete {
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
            color: white;
        }

        .status-badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }

        .status-badge.success {
            background: linear-gradient(45deg, #00b894, #00cec9);
            color: white;
        }

        .status-badge.error {
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
            color: white;
        }

        /* Стили для API метрик */
        .method-badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .method-badge.get {
            background: linear-gradient(45deg, #00b894, #00cec9);
            color: white;
        }

        .method-badge.post {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
        }

        .method-badge.put {
            background: linear-gradient(45deg, #fdcb6e, #e17055);
            color: white;
        }

        .method-badge.delete {
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
            color: white;
        }

        .api-status-badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }

        .api-status-badge.success {
            background: linear-gradient(45deg, #00b894, #00cec9);
            color: white;
        }

        .api-status-badge.error {
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
            color: white;
        }

        .event-properties {
            font-family: monospace;
            font-size: 12px;
            max-height: 200px;
            overflow-y: auto;
        }

        .pagination {
            text-align: center;
            margin-top: 20px;
        }

        .complaint-item:hover {
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .complaint-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #f1f3f4;
        }

        .complaint-type {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .complaint-date {
            color: #666;
            font-size: 14px;
        }

        .complaint-text {
            margin-bottom: 15px;
            line-height: 1.6;
            color: #333;
        }

        .complaint-meta {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            font-size: 14px;
            color: #666;
        }

        .complaint-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Стили для логов */
        #logs-container {
            background: #1e1e1e !important;
            color: #f8f8f2 !important;
            font-family: 'Courier New', monospace !important;
            padding: 20px !important;
            border-radius: 8px !important;
            max-height: 600px !important;
            overflow-y: auto !important;
            white-space: pre-wrap !important;
            font-size: 13px !important;
            line-height: 1.4 !important;
            border: 1px solid #333 !important;
        }

        #logs-container::-webkit-scrollbar {
            width: 8px;
        }

        #logs-container::-webkit-scrollbar-track {
            background: #2d2d2d;
        }

        #logs-container::-webkit-scrollbar-thumb {
            background: #555;
            border-radius: 4px;
        }

        #logs-container::-webkit-scrollbar-thumb:hover {
            background: #777;
        }

        .logs-controls {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

        .logs-controls select {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            background: white;
            font-size: 14px;
        }

        .logs-controls button {
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .logs-controls button:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        /* Таблицы */
        .table-container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }

        .table-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
            width: 100%;
            position: sticky;
            top: 0;
            z-index: 50;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .table-header > div {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            position: relative;
            z-index: 1;
        }

        .table-title {
            font-size: 20px;
            font-weight: 600;
            color: #333;
        }

        .refresh-btn {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .refresh-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .table {
            width: 100%;
            border-collapse: collapse;
        }

        .table th,
        .table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }

        .table th {
            background: #f8f9fa;
            font-weight: 600;
            color: #333;
        }

        .table tr:hover {
            background: #f8f9fa;
        }

        .status-badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .status-running {
            background: #d4edda;
            color: #155724;
        }

        .status-stopped {
            background: #f8d7da;
            color: #721c24;
        }

        /* Круговые диаграммы */
        .charts-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 30px;
            width: 100%;
        }

        .chart-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .chart-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 15px;
        }

        .chart-container {
            position: relative;
            height: 200px;
            width: 100%;
        }

        /* Жалобы */
        .complaint-item {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
            border-left: 4px solid #667eea;
        }

        .complaint-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .complaint-type {
            background: #667eea;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }

        .complaint-date {
            color: #666;
            font-size: 14px;
        }

        .complaint-text {
            color: #333;
            line-height: 1.5;
            margin-bottom: 10px;
        }

        .complaint-meta {
            display: flex;
            gap: 20px;
            font-size: 14px;
            color: #666;
        }

        /* Загрузка */
        .loading {
            text-align: center;
            padding: 40px;
            color: #666;
        }

        .spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #667eea;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Модальное окно входа */
        .modal {
            display: flex;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 0;
            width: 400px;
            max-width: 90%;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-50px) scale(0.9);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .modal-header {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            padding: 30px;
            text-align: center;
            border-radius: 20px 20px 0 0;
        }

        .modal-header h2 {
            margin: 0 0 10px 0;
            font-size: 28px;
            font-weight: 700;
        }

        .modal-header p {
            margin: 0;
            opacity: 0.9;
            font-size: 16px;
        }

        .modal-body {
            padding: 40px;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #333;
            font-weight: 600;
            font-size: 14px;
        }

        .form-group label i {
            margin-right: 8px;
            color: #667eea;
        }

        .form-group input {
            width: 100%;
            padding: 15px;
            border: 2px solid #e1e5e9;
            border-radius: 10px;
            font-size: 16px;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        .form-group input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .form-error {
            background: #fee;
            color: #c53030;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            font-size: 14px;
        }

        .form-error i {
            margin-right: 8px;
        }

        .login-btn {
            width: 100%;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 15px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }

        .login-btn:active {
            transform: translateY(0);
        }

        .divider {
            text-align: center;
            margin: 20px 0;
            position: relative;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: #ddd;
        }

        .divider span {
            background: white;
            padding: 0 15px;
            color: #666;
            font-size: 14px;
        }

        .google-login-btn {
            width: 100%;
            padding: 12px;
            background: #4285f4;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .google-login-btn:hover {
            background: #3367d6;
            transform: translateY(-2px);
        }

        .google-login-btn:active {
            transform: scale(0.98);
        }

        /* Информация о пользователе */
        .user-info {
            padding: 20px;
            border-bottom: 1px solid #eee;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
        }

        .user-details {
            flex: 1;
        }

        .username {
            display: block;
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
        }

        .logout-btn {
            background: none;
            border: none;
            color: #666;
            font-size: 12px;
            cursor: pointer;
            padding: 5px 0;
            transition: color 0.3s ease;
        }

        .logout-btn:hover {
            color: #667eea;
        }

        /* Секция статистики */
        .stats-section {
            margin-top: 30px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
            width: 100%;
            position: sticky;
            top: 0;
            z-index: 50;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .section-header h3 {
            font-size: 20px;
            font-weight: 600;
            color: #1a1a1a;
            margin: 0;
        }

        .stats-controls {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            width: 100%;
            margin-top: 10px;
            position: sticky;
            top: 0;
            z-index: 40;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 10px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .chart-container-large {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
            margin-bottom: 20px;
            transition: transform 0.3s ease;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .chart-container-large:hover {
            transform: translateY(-2px);
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .chart-header h4 {
            font-size: 18px;
            font-weight: 600;
            color: #1a1a1a;
            margin: 0;
        }

        .chart-stats {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .stat-item {
            font-size: 14px;
            color: #2c3e50;
        }

        .stat-item strong {
            color: #2c3e50;
            font-weight: 600;
        }

        .chart-wrapper {
            position: relative;
            height: 300px;
            width: 100%;
        }

        /* Адаптивность */
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
                transition: transform 0.3s ease;
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
            }

            .cards-grid {
                grid-template-columns: 1fr;
            }

            .charts-container {
                grid-template-columns: repeat(2, 1fr);
            }

            .modal-content {
                width: 95%;
                margin: 20px;
            }

            .stats-controls {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }

            .refresh-btn {
                justify-content: center;
                padding: 8px 10px;
                font-size: 11px;
                height: 36px;
                min-width: 100px;
                max-width: 120px;
                margin: 2px;
            }

            .section-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
                margin-bottom: 15px;
            }

            .table-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
                margin-bottom: 15px;
            }

            .table-header > div {
                justify-content: flex-start;
                width: 100%;
                gap: 6px;
            }

            .stats-controls {
                justify-content: flex-start;
                gap: 6px;
                margin-top: 15px;
            }

            /* Стили для основного контейнера кнопок мониторинга */
            #status-tab > div > div > div[style*="display: flex"] {
                gap: 6px !important;
                margin-top: 20px !important;
                justify-content: center !important;
            }

            /* Стили для контейнеров кнопок в таблицах */
            .table-header > div {
                justify-content: center !important;
                width: 100% !important;
            }

            /* Стили для секции истории */
            .stats-controls {
                justify-content: center !important;
                width: 100% !important;
            }

            /* Стили для заголовков секций */
            .section-header h3,
            .table-title {
                text-align: center !important;
                width: 100% !important;
                margin-bottom: 10px !important;
            }

            /* Стили для контейнеров кнопок */
            #status-tab > div[style*="background: rgba(255, 255, 255, 0.95)"] {
                margin: 10px 0 !important;
                padding: 10px !important;
            }

            #status-tab > div[style*="background: rgba(255, 255, 255, 0.95)"] > div[style*="display: flex"] {
                gap: 4px !important;
                justify-content: center !important;
            }

            #status-tab > div[style*="background: rgba(255, 255, 255, 0.95)"] > div[style*="display: flex"] > button {
                margin: 2px !important;
                min-width: 90px !important;
                max-width: 110px !important;
            }

            /* Стили для заголовков в блоках кнопок */
            #status-tab > div[style*="background: rgba(255, 255, 255, 0.95)"] > h3 {
                font-size: 16px !important;
                margin-bottom: 12px !important;
            }

            /* Стили для заголовков секций */
            .section-header h3,
            .table-title {
                text-align: center !important;
                width: 100% !important;
                margin-bottom: 10px !important;
            }
        }
        
        /* Стили для области проверки Firebase */
        .firebase-check-area {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid #e9ecef;
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .check-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            color: #667eea;
            font-weight: 600;
        }
        
        .check-header i {
            margin-right: 10px;
            color: #667eea;
        }
        
        .check-status {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .status-item {
            display: flex;
            align-items: center;
            padding: 8px 0;
            font-size: 14px;
            color: #666;
        }
        
        .status-item i {
            margin-right: 8px;
            font-size: 8px;
            color: #667eea;
        }
        
        .status-item.success i {
            color: #27ae60;
        }
        
        .status-item.error i {
            color: #e74c3c;
        }
    
        /* Диаграммы с тенью и скруглением */
        .chart-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .chart-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .chart-title {
            text-align: center;
            margin-bottom: 15px;
            font-weight: 600;
            color: #333;
            font-size: 16px;
        }

        .chart-container {
            position: relative;
            height: 300px;
            width: 100%;
        }

        /* Docker управление */
        .action-btn {
            padding: 6px 10px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.3s ease;
            color: white;
            min-width: 35px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .action-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .start-btn {
            background: linear-gradient(45deg, #28a745, #20c997);
        }

        .start-btn:hover {
            background: linear-gradient(45deg, #218838, #1fa086);
        }

        .stop-btn {
            background: linear-gradient(45deg, #dc3545, #c82333);
        }

        .stop-btn:hover {
            background: linear-gradient(45deg, #c82333, #bd2130);
        }

        .restart-btn {
            background: linear-gradient(45deg, #ffc107, #e0a800);
        }

        .restart-btn:hover {
            background: linear-gradient(45deg, #e0a800, #d39e00);
        }

        /* Статусы контейнеров */
        .status-running {
            background: #d4edda !important;
            color: #155724 !important;
            border: 1px solid #c3e6cb;
        }

        .status-stopped {
            background: #f8d7da !important;
            color: #721c24 !important;
            border: 1px solid #f5c6cb;
        }

        /* Таблицы Docker */
        .table th {
            background: #f8f9fa !important;
            font-weight: 600 !important;
            color: #333 !important;
            border-bottom: 2px solid #dee2e6 !important;
        }

        .table td {
            vertical-align: middle;
            padding: 12px !important;
        }

        .table tr:hover {
            background: #f8f9fa !important;
        }

        /* Секции нового сервера */
        .new-server-section {
            margin-top: 30px;
            border-top: 2px solid #e9ecef;
            padding-top: 30px;
        }

        .new-server-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 15px;
            text-align: center;
            margin-bottom: 20px;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .new-server-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .new-server-stat-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .new-server-stat-value {
            font-size: 24px;
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
        }

        .new-server-stat-label {
            font-size: 12px;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

/* Индикатор обработки больших файлов */
.processing-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.processing-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.processing-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: progress-shimmer 1.5s infinite;
}

@keyframes progress-shimmer {
    0% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.8); }
    100% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.5); }
}

.processing-content p {
    margin: 10px 0;
    color: #666;
    font-size: 16px;
}

.processing-content small {
    color: #999;
    font-size: 14px;
    display: block;
    margin-top: 15px;
}

/* ===== СТИЛИ ДЛЯ КОНТРОЛЬНЫХ ПАНЕЛЕЙ И КНОПОК ===== */

/* Контрольная панель */
.control-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.control-panel h3 {
    color: white !important;
    margin: 0 0 15px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Контейнер для кнопок */
.control-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Стили для кнопок в контрольной панели */
.control-buttons .refresh-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    height: 40px;
}

.control-buttons .refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.control-buttons .refresh-btn:active {
    transform: translateY(0);
}

/* Блоки секций */
.section-block {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Контент внутри блоков */
.section-block > .cards-grid,
.section-block > .charts-container,
.section-block > .new-server-section,
.section-block > .stats-section {
    padding: 20px;
    margin: 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .control-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-buttons .refresh-btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .section-block {
        margin-bottom: 20px;
    }
}
    