* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f8f9fa;
            min-height: 100vh;
            padding: 10px;
            color: #333;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .header {
            background: linear-gradient(135deg, #000000 0%, #333333 100%);
            color: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 3px solid #eb0a1e;
        }

        .header h1 {
            color: white;
            margin-bottom: 5px;
            font-size: 1.5em;
        }

        .header p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.9em;
        }

        .header-buttons {
            display: flex;
            gap: 10px;
        }

        .load-btn, .pdf-btn {
            background: #eb0a1e;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }

        .pdf-btn {
            background: #000000;
        }

        .load-btn:hover {
            background: #000000;
        }

        .pdf-btn:hover {
            background: #eb0a1e;
        }

        .load-btn:disabled, .pdf-btn:disabled {
            background: #6c757d;
            cursor: not-allowed;
        }

        .ai-section {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .ai-title {
            font-size: 1.1em;
            font-weight: 600;
            color: #000000;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .ai-input-group {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .ai-input {
            flex: 1;
            padding: 12px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 0.9em;
            transition: border-color 0.3s;
        }

        .ai-input:focus {
            outline: none;
            border-color: #eb0a1e;
        }

        .ai-button {
            background: #eb0a1e;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .ai-button:hover {
            background: #c40819;
        }

        .ai-button:disabled {
            background: #6c757d;
            cursor: not-allowed;
        }

        .ai-response {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 15px;
            min-height: 100px;
            max-height: 300px;
            overflow-y: auto;
            font-size: 0.9em;
            line-height: 1.5;
        }

        .ai-loading {
            display: none;
            text-align: center;
            padding: 20px;
            color: #666;
        }

        .ai-loading.spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #eb0a1e;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin: 0 auto 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

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

        .metric-card {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            text-align: center;
            border-left: 4px solid #eb0a1e;
        }

        .metric-value {
            font-size: 1.8em;
            font-weight: bold;
            color: #000000;
            margin: 10px 0;
        }

        .metric-label {
            color: #666;
            font-size: 0.9em;
            text-transform: uppercase;
        }

        .metric-change {
            font-size: 0.8em;
            padding: 4px 8px;
            border-radius: 12px;
            display: inline-block;
            margin-top: 5px;
        }

        .positive {
            background: #d4edda;
            color: #28a745;
        }

        .negative {
            background: #f8d7da;
            color: #dc3545;
        }

        .charts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .chart-container {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            height: 300px;
        }

        .chart-title {
            font-size: 1.1em;
            font-weight: 600;
            color: #000000;
            margin-bottom: 15px;
            text-align: center;
        }

        .chart-canvas {
            height: 240px !important;
        }

        .status {
            text-align: center;
            padding: 10px;
            font-size: 0.9em;
            color: #666;
        }

        .error {
            color: #dc3545;
        }

        .success {
            color: #28a745;
        }

        @media (max-width: 768px) {
            .charts-grid {
                grid-template-columns: 1fr;
            }
            
            .header {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }
            
            .ai-input-group {
                flex-direction: column;
            }
        }
