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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #f5f7f5;
            color: #2c3e2c;
            padding: 20px;
            min-height: 100vh;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, #2c5a3e 0%, #1e3a2a 100%);
            padding: 25px 30px;
            color: white;
        }

        .header h1 {
            font-size: 1.8rem;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .header h1::before {
            content: "🌲";
            font-size: 2rem;
        }

        .header p {
            opacity: 0.85;
            font-size: 0.9rem;
        }

        .controls {
            padding: 20px 30px;
            background: #f8faf8;
            border-bottom: 1px solid #e0e8e0;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            align-items: flex-end;
        }

        .file-input-group {
            flex: 1;
            min-width: 250px;
        }

        .file-input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #2c5a3e;
            font-size: 0.9rem;
        }

        input[type="file"] {
            width: 100%;
            padding: 10px 12px;
            background: white;
            border: 2px solid #cbdccb;
            border-radius: 8px;
            color: #2c3e2c;
            cursor: pointer;
            font-size: 14px;
            transition: border-color 0.2s;
        }

        input[type="file"]:hover {
            border-color: #6aab5a;
        }

        .target-select-group {
            flex: 1;
            min-width: 250px;
        }

        .target-select-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #2c5a3e;
            font-size: 0.9rem;
        }

        .target-select-group select {
            width: 100%;
            padding: 10px 12px;
            background: white;
            border: 2px solid #cbdccb;
            border-radius: 8px;
            color: #2c3e2c;
            font-size: 14px;
            cursor: pointer;
        }

        .analyze-btn, .export-btn {
            padding: 10px 24px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .analyze-btn {
            background: linear-gradient(135deg, #6aab5a, #4a8a3a);
            color: white;
        }

        .analyze-btn:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(106, 171, 90, 0.3);
        }

        .export-btn {
            background: #4a6a8a;
            color: white;
        }

        .export-btn:hover:not(:disabled) {
            background: #3a5a7a;
        }

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

        .tabs {
            display: flex;
            flex-wrap: wrap;
            background: #f0f4f0;
            border-bottom: 1px solid #d0e0d0;
            padding: 0 10px;
        }

        .tab-btn {
            padding: 12px 24px;
            background: none;
            border: none;
            color: #5a7a5a;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            border-bottom: 2px solid transparent;
        }

        .tab-btn:hover {
            color: #2c5a3e;
            background: rgba(100, 150, 100, 0.08);
        }

        .tab-btn.active {
            color: #2c5a3e;
            border-bottom-color: #6aab5a;
            background: white;
        }

        .tab-content {
            display: none;
            padding: 25px 30px;
            max-height: 70vh;
            overflow-y: auto;
            background: white;
        }

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

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

        .stat-card {
            background: #f8faf8;
            padding: 15px;
            border-radius: 12px;
            border-left: 4px solid #6aab5a;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }

        .stat-card h4 {
            font-size: 12px;
            text-transform: uppercase;
            color: #6a8a6a;
            margin-bottom: 8px;
            letter-spacing: 0.5px;
        }

        .stat-card .value {
            font-size: 24px;
            font-weight: bold;
            color: #2c5a3e;
        }

        .regression-card {
            background: #f8faf8;
            border-radius: 12px;
            padding: 15px;
            margin: 15px 0;
            border: 1px solid #e0e8e0;
        }

        .regression-card h4 {
            color: #2c5a3e;
            margin-bottom: 12px;
            font-size: 16px;
        }

        .formula {
            font-family: 'Courier New', monospace;
            background: #f0f4f0;
            padding: 10px 12px;
            border-radius: 8px;
            margin: 8px 0;
            font-size: 13px;
            border-left: 3px solid #6aab5a;
        }

        .outlier-alert {
            background: #fff4e8;
            border-left: 4px solid #ff8844;
            padding: 12px 16px;
            margin: 10px 0;
            border-radius: 8px;
        }

        .best-combo {
            background: #e8f5e8;
            border-left: 4px solid #6aab5a;
            padding: 12px 16px;
            margin: 10px 0;
            border-radius: 8px;
        }

        /* ========== ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ТАБЛИЦ ========== */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin: 15px 0;
            font-size: 13px;
            background: white;
            border: 1px solid #d0d8d0;
            border-radius: 8px;
            overflow: hidden;
        }

        .data-table th, .data-table td {
            border: 1px solid #c8d0c8;
            padding: 8px 12px;
            text-align: left;
            vertical-align: top;
        }

        .data-table th {
            background: #e8f0e8;
            font-weight: 600;
            color: #2c5a3e;
            border-bottom: 2px solid #b8c8b8;
        }

        .data-table td {
            background: white;
        }

        .data-table tr:hover td {
            background: #f8faf8;
        }

        /* Стили для таблиц в разных вкладках */
        .tab-content table {
            margin: 15px 0;
            font-size: 13px;
        }

        /* Для таблиц с корреляционной матрицей */
        .correlation-matrix th,
        .correlation-matrix td {
            text-align: center;
            min-width: 70px;
        }

        /* Для компактных таблиц */
        .compact-table th,
        .compact-table td {
            padding: 6px 10px;
            font-size: 12px;
        }

        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #e8f0e8;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb {
            background: #9bbd9b;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #6aab5a;
        }

        @media (max-width: 768px) {
            .controls {
                flex-direction: column;
            }
            .tab-btn {
                padding: 10px 16px;
                font-size: 12px;
            }
            .stats-grid {
                grid-template-columns: 1fr;
            }
            .data-table {
                font-size: 11px;
            }
            .data-table th, .data-table td {
                padding: 6px 8px;
            }
        }
