        .modern-container {
            background: linear-gradient(135deg, #2089b6 0%, #0d4d66 100%);
            border-radius: 30px;
            padding: 40px;
            margin: 40px 0;
            /* margin-top: 0 !important; */
            box-shadow: 0 10px 40px rgba(18, 96, 130, 0.2);
        }

        .modern-title {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 20px;
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
            line-height: 1.2;
        }

        .modern-subtitle {
            color: rgba(255, 255, 255, 0.95);
            font-size: 18px;
            line-height: 1.6;
            margin-bottom: 0;
        }

        .modern-card {
            background: #fff;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            margin-bottom: 25px;
            border: none;
        }

        .input-group-modern {
            margin-bottom: 25px;
        }

        .input-group-modern label {
            color: #495057;
            font-weight: 600;
            margin-bottom: 10px;
            display: block;
            font-size: 15px;
        }

        .file-upload-area {
            border: 2px dashed #126082;
            border-radius: 12px;
            padding: 40px;
            text-align: center;
            background: linear-gradient(135deg, #f0f7fa 0%, #fff 100%);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .file-upload-area:hover {
            border-color: #FF7B07;
            background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
            transform: translateY(-2px);
        }

        .file-upload-area i {
            font-size: 48px;
            color: #126082;
            margin-bottom: 15px;
            transition: all 0.3s ease;
        }

        .file-upload-area:hover i {
            color: #FF7B07;
        }

        .file-upload-text {
            color: #495057;
            font-weight: 600;
            font-size: 16px;
            margin-top: 10px;
        }

        .textarea-modern {
            border: 2px solid #e9ecef;
            border-radius: 12px;
            padding: 15px;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            transition: all 0.3s ease;
            resize: vertical;
        }

        .textarea-modern:focus {
            border-color: #126082;
            box-shadow: 0 0 0 3px rgba(18, 96, 130, 0.1);
            outline: none;
        }

        .btn-modern-primary {
            background: linear-gradient(135deg, #126082 0%, #0d4d66 100%);
            border: none;
            border-radius: 10px;
            padding: 12px 30px;
            font-weight: 600;
            color: #fff;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(18, 96, 130, 0.3);
        }

        .btn-modern-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(18, 96, 130, 0.4);
            color: #fff;
            background: linear-gradient(135deg, #0d4d66 0%, #126082 100%);
        }

        .btn-modern-secondary {
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            padding: 12px 30px;
            font-weight: 600;
            color: #6c757d;
            transition: all 0.3s ease;
        }

        .btn-modern-secondary:hover {
            background: #e9ecef;
            color: #495057;
            transform: translateY(-2px);
        }

        .size-indicator {
            display: inline-block;
            padding: 5px 12px;
            background: #f8f9fa;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            margin-top: 8px;
        }

        .size-indicator.warning {
            background: #fff3cd;
            color: #856404;
        }

        .size-indicator.error {
            background: #f8d7da;
            color: #721c24;
        }

        .option-toggle {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            background: #f8f9fa;
            padding: 8px;
            border-radius: 10px;
        }

        .option-toggle button {
            flex: 1;
            border: none;
            background: transparent;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            color: #6c757d;
            transition: all 0.3s ease;
        }

        .option-toggle button.active {
            background: #126082;
            color: #fff;
            box-shadow: 0 2px 8px rgba(18, 96, 130, 0.3);
        }

        .option-toggle button:hover:not(.active) {
            background: #f0f7fa;
            color: #126082;
        }

        .result-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 2px solid #e9ecef;
        }

        .result-title {
            color: #495057;
            font-weight: 700;
            font-size: 20px;
            margin: 0;
        }

        .result-actions {
            display: flex;
            gap: 10px;
        }

        .result-content {
            max-height: 500px;
            overflow-y: auto;
            border: 2px solid #e9ecef;
            padding: 20px;
            background-color: #f8f9fa;
            border-radius: 12px;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            line-height: 1.6;
            color: #495057;
            text-align: left;
        }

        /* Header Analysis Styles */
        .header-analysis {
            margin-top: 20px;
        }

        #analysis_content {
            max-height: none !important;
            overflow-y: visible;
        }

        .analysis-section {
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e9ecef;
        }

        .analysis-section:last-child {
            border-bottom: none;
        }

        .analysis-section h6 {
            color: #126082;
            font-weight: 700;
            font-size: 18px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .analysis-section h6 i {
            color: #FF7B07;
        }

        .analysis-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 15px;
        }

        .analysis-item {
            padding: 12px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 3px solid #126082;
        }

        .analysis-item strong {
            color: #495057;
            display: block;
            margin-bottom: 5px;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .analysis-item span {
            color: #212529;
            word-break: break-word;
            font-size: 14px;
        }

        .analysis-item .monospace {
            font-family: 'Courier New', monospace;
            font-size: 12px;
            background: #fff;
            padding: 5px 8px;
            border-radius: 4px;
            display: inline-block;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .status-badge:hover {
            transform: scale(1.05);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
        }

        .status-badge.success {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: #fff;
            border-color: #1e7e34;
            box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
        }

        .status-badge.success::before {
            content: '✓';
            margin-right: 5px;
            font-size: 13px;
        }

        .status-badge.success:hover {
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
            background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
        }

        .status-badge.danger {
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
            color: #fff;
            border-color: #bd2130;
            box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
        }

        .status-badge.danger::before {
            content: '✗';
            margin-right: 5px;
            font-size: 13px;
        }

        .status-badge.danger:hover {
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
            background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
        }

        .status-badge.warning {
            background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
            color: #fff;
            border-color: #e0a800;
            box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
        }

        .status-badge.warning::before {
            content: '⚠';
            margin-right: 5px;
            font-size: 13px;
        }

        .status-badge.warning:hover {
            box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
            background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
        }

        .status-badge.info {
            background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
            color: #fff;
            border-color: #117a8b;
            box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
        }

        .status-badge.info::before {
            content: 'ℹ';
            margin-right: 5px;
            font-size: 13px;
        }

        .status-badge.info:hover {
            box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
            background: linear-gradient(135deg, #138496 0%, #17a2b8 100%);
        }

        .analysis-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .analysis-badge {
            display: inline-flex;
            align-items: center;
            padding: 10px 18px;
            border-radius: 8px;
            font-size: 13px;
            font-family: 'Courier New', monospace;
            margin: 6px 6px 6px 0;
            word-break: break-word;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            position: relative;
            border: 2px solid transparent;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .analysis-badge:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .analysis-badge.success {
            background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
            color: #155724;
            border-color: #28a745;
            box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25), 0 0 0 1px rgba(40, 167, 69, 0.1);
        }

        .analysis-badge.success::before {
            content: '✓';
            margin-right: 6px;
            font-weight: 700;
            font-size: 14px;
            color: #28a745;
        }

        .analysis-badge.success:hover {
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.35), 0 0 0 1px rgba(40, 167, 69, 0.2);
            background: linear-gradient(135deg, #c3e6cb 0%, #d4edda 100%);
        }

        .analysis-badge.danger {
            background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
            color: #721c24;
            border-color: #dc3545;
            box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25), 0 0 0 1px rgba(220, 53, 69, 0.1);
            animation: pulse-alert 2s ease-in-out infinite;
        }

        .analysis-badge.danger::before {
            content: '✗';
            margin-right: 6px;
            font-weight: 700;
            font-size: 14px;
            color: #dc3545;
        }

        .analysis-badge.danger:hover {
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35), 0 0 0 1px rgba(220, 53, 69, 0.2);
            background: linear-gradient(135deg, #f5c6cb 0%, #f8d7da 100%);
        }

        .analysis-badge.warning {
            background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
            color: #856404;
            border-color: #ffc107;
            box-shadow: 0 2px 8px rgba(255, 193, 7, 0.25), 0 0 0 1px rgba(255, 193, 7, 0.1);
        }

        .analysis-badge.warning::before {
            content: '⚠';
            margin-right: 6px;
            font-weight: 700;
            font-size: 14px;
            color: #ffc107;
        }

        .analysis-badge.warning:hover {
            box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35), 0 0 0 1px rgba(255, 193, 7, 0.2);
            background: linear-gradient(135deg, #ffeaa7 0%, #fff3cd 100%);
        }

        .analysis-badge.info {
            background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
            color: #0c5460;
            border-color: #17a2b8;
            box-shadow: 0 2px 8px rgba(23, 162, 184, 0.25), 0 0 0 1px rgba(23, 162, 184, 0.1);
        }

        .analysis-badge.info::before {
            content: 'ℹ';
            margin-right: 6px;
            font-weight: 700;
            font-size: 14px;
            color: #17a2b8;
        }

        .analysis-badge.info:hover {
            box-shadow: 0 4px 12px rgba(23, 162, 184, 0.35), 0 0 0 1px rgba(23, 162, 184, 0.2);
            background: linear-gradient(135deg, #bee5eb 0%, #d1ecf1 100%);
        }

        @keyframes pulse-alert {
            0%, 100% {
                box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25), 0 0 0 1px rgba(220, 53, 69, 0.1);
            }
            50% {
                box-shadow: 0 2px 12px rgba(220, 53, 69, 0.4), 0 0 0 2px rgba(220, 53, 69, 0.2);
            }
        }

        .received-path {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .received-item {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #126082;
        }

        .received-number {
            flex-shrink: 0;
            width: 35px;
            height: 35px;
            background: linear-gradient(135deg, #126082 0%, #0d4d66 100%);
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
        }

        .received-content {
            flex: 1;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            color: #495057;
            line-height: 1.6;
            word-break: break-word;
        }

        /* RFC Compliance Analysis Styles */
        .rfc-analysis {
            display: flex;
            flex-direction: column;
            gap: 25px;
            margin-top: 10px;
        }

        .rfc-item {
            padding: 20px;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border-radius: 12px;
            border-left: 5px solid #126082;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .rfc-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background: linear-gradient(135deg, #126082 0%, #0d4d66 100%);
            transition: width 0.3s ease;
        }

        .rfc-item:hover {
            transform: translateX(5px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        }

        .rfc-item:hover::before {
            width: 8px;
        }

        .rfc-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        .rfc-header strong {
            color: #126082;
            font-size: 16px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .rfc-header strong::before {
            content: '📋';
            font-size: 18px;
        }

        .rfc-issues {
            margin-top: 15px;
            padding: 15px;
            background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
            border-radius: 8px;
            border-left: 4px solid #dc3545;
            box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
        }

        .rfc-issue {
            color: #721c24;
            font-size: 14px;
            margin-top: 8px;
            padding: 10px 12px;
            line-height: 1.6;
            background: #fff;
            border-radius: 6px;
            border-left: 3px solid #dc3545;
            font-weight: 500;
            display: flex;
            align-items: flex-start;
            gap: 8px;
            transition: all 0.2s ease;
        }

        .rfc-issue::before {
            content: '⚠';
            color: #dc3545;
            font-weight: 700;
            font-size: 16px;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .rfc-issue:hover {
            background: #fff;
            transform: translateX(5px);
            box-shadow: 0 2px 6px rgba(220, 53, 69, 0.15);
        }

        .rfc-issue:first-child {
            margin-top: 0;
        }

        .rfc-success {
            color: #155724;
            font-size: 14px;
            margin-top: 15px;
            padding: 12px 16px;
            background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
            border-radius: 8px;
            border: 2px solid #28a745;
            box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }

        .rfc-success::before {
            content: '✓';
            font-size: 18px;
            font-weight: 700;
            color: #28a745;
        }

        .rfc-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
            background: linear-gradient(135deg, #c3e6cb 0%, #d4edda 100%);
        }

        .rfc-info {
            color: #0c5460;
            font-size: 14px;
            margin-top: 15px;
            padding: 12px 16px;
            background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
            border-radius: 8px;
            border: 2px solid #17a2b8;
            box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }

        .rfc-info::before {
            content: 'ℹ';
            font-size: 18px;
            font-weight: 700;
            color: #17a2b8;
        }

        .rfc-info:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
            background: linear-gradient(135deg, #bee5eb 0%, #d1ecf1 100%);
        }

        @media (max-width: 768px) {
            .analysis-grid {
                grid-template-columns: 1fr;
            }

            .result-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .result-actions {
                width: 100%;
            }

            .result-actions button {
                flex: 1;
            }
        }