body {
            background: linear-gradient(135deg, #6B87A2 0%, #3E4C64 100%);
            min-height: 100vh;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        .main-container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            margin: 20px 0;
            padding: 40px;
        }
        
        .header {
            text-align: center;
            margin-bottom: 40px;
            color: #333;
        }
        
        .header h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: #FF6600;
        }
        
        .section-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            border-left: 5px solid #FF6600;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .section-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }
        
        .section-title {
            font-size: 1.4rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .form-label {
            font-weight: 600;
            color: #555;
            margin-bottom: 8px;
        }
        
        .form-control, .form-select {
            border: 2px solid #e9ecef;
            border-radius: 10px;
            padding: 12px 15px;
            transition: all 0.3s ease;
            font-size: 1rem;
        }
        
        .form-control:focus, .form-select:focus {
            border-color: #FF6600;
            box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
        }
        
        .page-section {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            border: 2px dashed #dee2e6;
        }
        
        .page-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: #495057;
            margin-bottom: 15px;
            text-align: center;
            background: white;
            padding: 10px;
            border-radius: 8px;
        }
        
        .btn-generate {
            background: linear-gradient(45deg, #FF6600, #556982);
            border: none;
            border-radius: 50px;
            padding: 15px 40px;
            font-size: 1.1rem;
            font-weight: 600;
            color: white;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: 30px;
        }
        
        .btn-generate:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3);
            color: white;
        }
        
        .alert {
            border-radius: 12px;
            border: none;
            margin-top: 20px;
        }
        
        .loading {
            display: none;
        }
        
        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid #ffffff;
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .icon {
            color: #FF6600;
        }
        
        .text-warning-custom {
            background: #fff8e1;
            border: 2px solid #FF6600;
            border-radius: 8px;
            padding: 10px;
            margin-top: 10px;
            display: none;
            animation: fadeIn 0.3s ease;
        }
        
        .text-warning-custom.show {
            display: block;
        }
        
        .text-danger-custom {
            background: #f8d7da;
            border: 2px solid #dc3545;
            border-radius: 8px;
            padding: 10px;
            margin-top: 10px;
            display: none;
            animation: fadeIn 0.3s ease;
        }
        
        .text-danger-custom.show {
            display: block;
        }
        
        .form-control.warning {
            border-color: #FF6600;
            box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
        }
        
        .form-control.danger {
            border-color: #dc3545;
            box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .page-overflow-warning {
            background: linear-gradient(135deg, #FF6600, #CC3300);
            color: white;
            border-radius: 12px;
            padding: 15px;
            margin: 15px 0;
            display: none;
            animation: pulse 2s infinite;
        }
        
        .page-overflow-warning.show {
            display: block;
        }
        
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(255, 102, 0, 0); }
            100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
        }

        /* PDF Extraction specific styles */
        .loading-extract {
            display: inline-block;
        }

        .loading-extract .spinner {
            width: 16px;
            height: 16px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #007bff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: 8px;
        }

        #pdfUpload {
            border: 2px dashed #dee2e6;
            border-radius: 8px;
            padding: 10px;
            transition: border-color 0.3s ease;
        }

        #pdfUpload:hover {
            border-color: #FF6600;
        }

        #pdfUpload:focus {
            border-color: #FF6600;
            box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
        }

        .alert-info {
            background-color: #e7f3ff;
            border-color: #b8daff;
            color: #004085;
        }

        /* AI Configuration fields */
        #cfAccountId, #cfApiToken {
            border-left: 3px solid #17a2b8;
        }

        /* Extraction status */
        #extractionStatus {
            border-radius: 8px;
            padding: 12px 16px;
        }

        .btn-primary {
            background: linear-gradient(45deg, #007bff, #0056b3);
            border: none;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-primary:hover {
            background: linear-gradient(45deg, #0056b3, #004085);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
        }

        .btn-primary:disabled {
            background: #6c757d;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* Styling für ausgefüllte Input-Felder */
        .form-control:not(:placeholder-shown),
        .form-select option:checked,
        .form-control[value]:not([value=""]),
        .form-select:not([value=""]) {
            border-color: #FF6600 !important;
            border-width: 2px;
            box-shadow: 0 0 0 0.15rem rgba(255, 102, 0, 0.15);
            background-color: rgba(255, 102, 0, 0.02);
        }

        /* Spezielle Behandlung für Input-Felder mit JavaScript-gesetzten Werten */
        .form-control.filled,
        .form-select.filled {
            border-color: #FF6600 !important;
            border-width: 2px;
            box-shadow: 0 0 0 0.15rem rgba(255, 102, 0, 0.15);
            background-color: rgba(255, 102, 0, 0.02);
        }

        /* Fokus-State für ausgefüllte Felder verstärken */
        .form-control:not(:placeholder-shown):focus,
        .form-control.filled:focus,
        .form-select.filled:focus {
            border-color: #FF6600 !important;
            box-shadow: 0 0 0 0.25rem rgba(255, 102, 0, 0.3);
            background-color: rgba(255, 102, 0, 0.05);
        }

        /* Sicherstellen, dass die Standard-Fokus-Styles nicht überschrieben werden */
        .form-control:focus:placeholder-shown {
            border-color: #FF6600;
            box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
            background-color: transparent;
        }