        /* Main Layout */
        .gbt3k-optimizer-wrap {
            max-width: 1200px;
        }
        
        .optimizer-header {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            padding: 30px;
            border-radius: 12px;
            margin-bottom: 30px;
            text-align: center;
        }
        
        .optimizer-header h1 {
            margin: 0 0 10px 0;
            font-size: 32px;
            font-weight: 300;
        }
        
        .optimizer-header .dashicons {
            font-size: 32px;
            margin-right: 10px;
        }
        
        .optimizer-subtitle {
            margin: 0;
            font-size: 16px;
            opacity: 0.9;
            color: #fff;
        }
        
        /* Section Styling */
        .dashboard-section,
        .optimization-section,
        .settings-section {
            background: white;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
            border: 1px solid #e1e5e9;
        }
        
        .dashboard-section h2,
        .optimization-section h2,
        .settings-section h2 {
            margin-top: 0;
            margin-bottom: 25px;
            color: #2c3e50;
            font-size: 24px;
            font-weight: 600;
        }
        
        .dashboard-section h2 .dashicons,
        .optimization-section h2 .dashicons,
        .settings-section h2 .dashicons {
            margin-right: 10px;
            color: #2c3e50;
        }
        
        /* Enhanced Statistics */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }
        
        .stat-card {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border: 1px solid #dee2e6;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }
        
        .stat-card.optimized {
            background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
            border-color: #27ae60;
        }
        
        .stat-card.unoptimized {
            background: linear-gradient(135deg, #fef9e7 0%, #fcf3cf 100%);
            border-color: #f39c12;
        }
        
        .stat-card.rate {
            background: linear-gradient(135deg, #ebf3fd 0%, #d6eaf8 100%);
            border-color: #3498db;
        }
        
        .stat-icon {
            font-size: 32px;
            margin-bottom: 10px;
            display: block;
        }
        
        .stat-number {
            font-size: 36px;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 8px;
            display: block;
        }
        
        .stat-label {
            font-size: 14px;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }
        
        /* Auto Status */
        .auto-status {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border: 1px solid #6c757d;
            border-radius: 12px;
            padding: 25px;
            margin: 20px 0;
        }
        
        .auto-status h3 {
            margin-top: 0;
            margin-bottom: 20px;
            color: #495057;
            font-size: 20px;
        }
        
        .status-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
        }
        
        .status-item {
            display: flex;
            justify-content: space-between;
            padding: 12px 16px;
            background: white;
            border-radius: 8px;
            border: 1px solid #e3f2fd;
        }
        
        .status-label {
            color: #546e7a;
            font-weight: 500;
        }
        
        .status-value {
            color: #495057;
            font-weight: 600;
        }
        
        /* Optimization Controls */
        .optimization-controls {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 20px;
        }
        
        .control-group {
            margin-bottom: 20px;
        }
        
        .control-group label {
            display: block;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
        }
        
        .optimizer-select {
            width: 100%;
            max-width: 300px;
            padding: 12px 16px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 14px;
            background: white;
            transition: border-color 0.3s ease;
        }
        
        .optimizer-select:focus {
            outline: none;
            border-color: #2c3e50;
        }
        
        .control-group small {
            display: block;
            color: #6c757d;
            font-size: 12px;
            margin-top: 5px;
        }
        
        .control-actions {
            margin-top: 25px;
        }
        
        .optimizer-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-right: 10px;
        }
        
        .optimizer-btn.primary {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
        }
        
        .optimizer-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(44, 62, 80, 0.4);
        }
        
        .optimizer-btn.secondary {
            background: #6c757d;
            color: white;
        }
        
        .optimizer-btn.secondary:hover {
            background: #5a6268;
        }
        
        /* Settings Form */
        .settings-form {
            margin-top: 20px;
        }
        
        .settings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-bottom: 30px;
        }
        
        .setting-group {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            border: 1px solid #e9ecef;
        }
        
        .setting-group label {
            display: block;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
        }
        
        .setting-group input,
        .setting-group select {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e9ecef;
            border-radius: 6px;
            font-size: 14px;
            background: white;
            transition: border-color 0.3s ease;
        }
        
        .setting-group input:focus,
        .setting-group select:focus {
            outline: none;
            border-color: #2c3e50;
        }
        
        .setting-group small {
            display: block;
            color: #6c757d;
            font-size: 12px;
            margin-top: 5px;
        }
        
        .settings-actions {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }
        
        /* Progress Bar Enhancements */
        #progress_wrapper {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border: 1px solid #dee2e6;
            border-radius: 12px;
            padding: 25px;
            margin: 20px 0;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
        }
        
        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            font-weight: 600;
        }
        
        #progress_percentage {
            font-size: 20px;
            color: #2c3e50;
            font-weight: 700;
        }
        
        #progress_status {
            color: #6c757d;
            font-size: 14px;
        }
        
        #progress_container {
            width: 100%;
            background: #e9ecef;
            border: 1px solid #dee2e6;
            height: 35px;
            border-radius: 18px;
            overflow: hidden;
            position: relative;
        }
        
        #progress_bar {
            width: 0%;
            height: 100%;
            background: linear-gradient(90deg, #2c3e50, #34495e);
            border-radius: 18px;
            transition: width 0.6s ease;
            position: relative;
        }
        
        #progress_bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: shimmer 2s infinite;
        }
        
        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
        
        .progress-details {
            margin-top: 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 15px;
        }
        
        .progress-row {
            display: flex;
            justify-content: space-between;
            padding: 12px 16px;
            background: white;
            border-radius: 8px;
            border: 1px solid #e9ecef;
            font-size: 14px;
        }
        
        .progress-row span:first-child {
            color: #6c757d;
            font-weight: 500;
        }
        
        .progress-row span:last-child {
            color: #2c3e50;
            font-weight: 600;
        }
        
        .optimization-complete {
            background: linear-gradient(90deg, #28a745, #20c997) !important;
        }
        
        .optimization-error {
            background: linear-gradient(90deg, #dc3545, #e74c3c) !important;
        }
        
        /* Results Section */
        .results-section {
            background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
            border: 1px solid #28a745;
            border-radius: 12px;
            padding: 25px;
            margin: 20px 0;
            display: none;
        }
        
        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .results-title {
            font-size: 20px;
            font-weight: 600;
            color: #155724;
        }
        
        .hide-results {
            background: #6c757d;
            border: none;
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: background 0.3s ease;
        }
        
        .hide-results:hover {
            background: #5a6268;
        }
        
        .results-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }
        
        .result-item {
            background: white;
            padding: 16px;
            border-radius: 8px;
            border: 1px solid #c3e6cb;
            font-size: 14px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .result-item strong {
            color: #155724;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .gbt3k-optimizer-wrap {
                padding: 0 15px;
            }
            
            .optimizer-header {
                padding: 20px;
                margin-bottom: 20px;
            }
            
            .optimizer-header h1 {
                font-size: 24px;
            }
            
            .dashboard-section,
            .optimization-section,
            .settings-section {
                padding: 20px;
                margin-bottom: 20px;
            }
            
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            .settings-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .status-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            
            .progress-details {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .results-summary {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            
            .control-group {
                margin-bottom: 15px;
            }
            
            .optimizer-select {
                max-width: 100%;
            }
            
            .setting-group {
                padding: 15px;
            }
            
            .setting-group input,
            .setting-group select {
                padding: 10px 12px;
            }
            
            .optimizer-btn {
                padding: 10px 20px;
                font-size: 13px;
            }
            
            .progress-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            
            .results-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
        }
        
        @media (max-width: 480px) {
            .gbt3k-optimizer-wrap {
                padding: 0 10px;
            }
            
            .optimizer-header {
                padding: 15px;
            }
            
            .optimizer-header h1 {
                font-size: 20px;
            }
            
            .dashboard-section,
            .optimization-section,
            .settings-section {
                padding: 15px;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            
            .progress-details {
                grid-template-columns: 1fr;
            }
            
            .stat-card {
                padding: 15px;
            }
            
            .stat-number {
                font-size: 28px;
            }
        }

            .error-notice {
                background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
                border: 2px solid #e53e3e;
                border-radius: 12px;
                padding: 30px;
                margin: 20px 0;
                box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
            }
            
            .error-content h2 {
                color: #c53030;
                margin-top: 0;
                margin-bottom: 20px;
                font-size: 24px;
            }
            
            .error-content h2 .dashicons {
                margin-right: 10px;
                color: #e53e3e;
            }
            
            .error-content p {
                color: #2d3748;
                font-size: 16px;
                line-height: 1.6;
                margin-bottom: 25px;
            }
            
            .error-actions h3 {
                color: #2d3748;
                margin-bottom: 15px;
                font-size: 18px;
            }
            
            .error-actions ul {
                margin-bottom: 25px;
                padding-left: 20px;
            }
            
            .error-actions li {
                color: #4a5568;
                margin-bottom: 8px;
                line-height: 1.5;
            }
            
            .error-actions code {
                background: #2d3748;
                color: #e2e8f0;
                padding: 2px 6px;
                border-radius: 4px;
                font-family: 'Courier New', monospace;
            }
            
            .contact-info {
                background: #f7fafc;
                border: 1px solid #e2e8f0;
                border-radius: 8px;
                padding: 20px;
                margin-top: 20px;
            }
            
            .contact-info h4 {
                color: #2d3748;
                margin-top: 0;
                margin-bottom: 10px;
                font-size: 16px;
            }
            
            .contact-info p {
                color: #4a5568;
                margin: 0;
                font-size: 14px;
            }
            
            @media (max-width: 768px) {
                .error-notice {
                    padding: 20px;
                }
                
                .error-content h2 {
                    font-size: 20px;
                }
                
                .error-actions ul {
                    padding-left: 15px;
                }
            }