/**
 * ============================================
 * MRZ TOOLKIT STYLES
 * Bumaga Service
 * ============================================
 * 
 * @version 1.0.0
 * @extracted 2026-01-06
 */


/* ============================================
   MRZ TOOLKIT STYLES
   ============================================ */

/* OCR-B Font - using Courier as fallback, OCR-B style via letter-spacing */

.mrz-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.mrz-header {
    text-align: center;
    margin-bottom: 40px;
}

.mrz-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.mrz-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4a9eff 0%, #2d7cd6 100%);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(74, 158, 255, 0.3);
}

.mrz-title-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.mrz-title-text {
    color: #fff;
}

.mrz-subtitle {
    color: #888;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* Tabs */
.mrz-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.mrz-tab {
    padding: 15px 30px;
    border-radius: 12px;
    background: #272727;
    border: 1px solid #333;
    color: #888;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mrz-tab:hover {
    background: #333;
    color: #fff;
}

.mrz-tab.active {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(74, 158, 255, 0.1) 100%);
    border-color: rgba(74, 158, 255, 0.5);
    color: #4a9eff;
}

.mrz-tab-icon {
    font-size: 20px;
}

/* Tab Content */
.tab-content {
    display: none;
}

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

/* Main Layout */
.mrz-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

/* Form Grids */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Full Width MRZ Preview */
.mrz-preview-fullwidth {
    background: #272727;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #333;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.mrz-actions-inline {
    display: flex;
    gap: 10px;
}

.mrz-btn-sm {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.mrz-btn-sm.primary {
    background: linear-gradient(135deg, #4a9eff 0%, #2d7cd6 100%);
    color: #fff;
}

.mrz-btn-sm.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(74, 158, 255, 0.3);
}

.mrz-btn-sm.secondary {
    background: #333;
    color: #fff;
}

.mrz-btn-sm.secondary:hover {
    background: #444;
}

/* Wide MRZ Display */
.mrz-display-wide {
    background: #f5f5dc;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    overflow-x: auto;
}

.mrz-lines-mono {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.8;
    color: #000;
    letter-spacing: 2px;
    white-space: nowrap;
    text-align: center;
}

.mrz-lines-mono .mrz-line {
    display: block;
    margin-bottom: 5px;
}

.mrz-lines-mono .mrz-line:last-child {
    margin-bottom: 0;
}

/* Inline Validation */
.validation-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    flex-wrap: wrap;
}

.validation-inline.invalid {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
}

.val-icon {
    font-size: 18px;
}

.val-text {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 500;
}

.validation-inline.invalid .val-text {
    color: #F44336;
}

.val-details {
    display: flex;
    gap: 15px;
    margin-left: auto;
    font-size: 12px;
    color: #888;
}

.val-details .check-item {
    padding: 0;
}

.val-details .check-item.pass {
    color: #4CAF50;
}

.val-details .check-item.fail {
    color: #F44336;
}

/* Form Section */
.mrz-form-section {
    background: #272727;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #333;
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Document Type Selector */
.doc-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.doc-type-btn {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    background: #1a1a1a;
    border: 2px solid #333;
    color: #888;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doc-type-btn:hover {
    border-color: #4a9eff;
    color: #fff;
}

.doc-type-btn.active {
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
}

.doc-type-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.doc-type-desc {
    font-size: 12px;
    color: #666;
}

/* Form Fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-label .required {
    color: #F44336;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form-input::placeholder {
    color: #555;
}

.form-input.uppercase {
    text-transform: uppercase;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.char-counter {
    font-size: 11px;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

.char-counter.warning {
    color: #FF9800;
}

.char-counter.error {
    color: #F44336;
}

.input-hint {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.country-hint {
    font-size: 11px;
    color: #4CAF50;
    margin-top: 5px;
}

/* Country Autocomplete */
.country-wrapper {
    position: relative;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.country-dropdown.show {
    display: block;
}

.country-option {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.country-option:last-child {
    border-bottom: none;
}

.country-option:hover {
    background: #333;
}

.country-option-name {
    color: #ccc;
}

.country-option-code {
    color: #4a9eff;
    font-weight: 600;
    font-family: monospace;
}

/* Preview Section */
.mrz-preview-section {
    background: #272727;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #333;
}

.preview-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* MRZ Display (for Validator/OCR) */
.mrz-display {
    background: #f5f5dc;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    overflow-x: auto;
}

.mrz-lines {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #000;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.mrz-line {
    display: block;
    margin-bottom: 3px;
}

.mrz-line:last-child {
    margin-bottom: 0;
}

/* MRZ Actions */
.mrz-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mrz-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mrz-btn.primary {
    background: linear-gradient(135deg, #4a9eff 0%, #2d7cd6 100%);
    color: #fff;
}

.mrz-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.3);
}

.mrz-btn.secondary {
    background: #333;
    color: #fff;
}

.mrz-btn.secondary:hover {
    background: #444;
}

/* Validation Result */
.validation-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    display: none;
}

.validation-result.valid {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: block;
}

.validation-result.invalid {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: block;
}

.validation-title {
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.validation-result.valid .validation-title {
    color: #4CAF50;
}

.validation-result.invalid .validation-title {
    color: #F44336;
}

.validation-details {
    font-size: 13px;
    color: #aaa;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.check-item.pass {
    color: #4CAF50;
}

.check-item.fail {
    color: #F44336;
}

/* Parsed Data */
.parsed-data {
    margin-top: 20px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 12px;
    display: none;
}

.parsed-data.show {
    display: block;
}

.parsed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.parsed-item {
    padding: 12px;
    background: #272727;
    border-radius: 8px;
}

.parsed-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.parsed-value {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

/* Validator Tab */
.validator-input-section {
    background: #272727;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #333;
    margin-bottom: 30px;
}

.validator-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border-radius: 12px;
    background: #f5f5dc;
    border: 2px dashed #ccc;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    letter-spacing: 1.5px;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 15px;
}

.validator-textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

.validator-textarea::placeholder {
    color: #999;
    font-family: 'Roboto', sans-serif;
    letter-spacing: normal;
}

/* Dropzone */
.dropzone {
    border: 2px dashed #444;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.dropzone:hover {
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.05);
}

.dropzone.dragover {
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
}

.dropzone-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.dropzone-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.dropzone-hint {
    font-size: 11px;
    color: #666;
}

/* OpenCV Status */
.cv-status {
    font-size: 11px;
    color: #666;
    margin-bottom: 15px;
    padding: 5px 10px;
    background: #1a1a1a;
    border-radius: 6px;
    display: inline-block;
}

/* Scan Mode Hint */
.scan-mode-hint {
    font-size: 11px;
    color: #666;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #4a9eff;
}

/* Debug Container */
.ocr-debug {
    margin-top: 15px;
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
}

.debug-title {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    font-weight: 600;
}

.debug-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.debug-images img {
    max-width: 150px;
    max-height: 100px;
    border: 1px solid #444;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

/* Progress Bar */
.ocr-progress {
    margin: 15px 0;
}

.progress-bar {
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff 0%, #00d4ff 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

/* OCR Status */
.ocr-status {
    display: none;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    align-items: flex-start;
    gap: 12px;
}

.ocr-status.processing {
    display: flex;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    color: #4a9eff;
}

.ocr-status.success {
    display: flex;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.ocr-status.warning {
    display: flex;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #FF9800;
}

.ocr-status.error {
    display: flex;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #F44336;
}

.status-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.status-content {
    flex: 1;
}

.status-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
}

.status-desc {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.status-tips {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.6;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

/* Tech Badges */
.ocr-tech-info {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tech-badge {
    padding: 6px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    font-size: 11px;
    color: #888;
}

/* Pipeline Info */
.ocr-pipeline-info {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
}

.pipeline-title {
    font-size: 13px;
    font-weight: 600;
    color: #4a9eff;
    margin-bottom: 15px;
}

.pipeline-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pipeline-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.step-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-text strong {
    font-size: 12px;
    color: #ccc;
}

.step-text span {
    font-size: 11px;
    color: #666;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 5px;
}

.progress-steps .step {
    font-size: 10px;
    color: #666;
    transition: color 0.3s ease;
}

.progress-steps .step.active {
    color: #4a9eff;
}

.progress-steps .step.done {
    color: #4CAF50;
}

/* Validation Result Warning State */
.validation-result.warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.3);
}

.validation-result.warning .validation-title span:first-child {
    color: #FF9800;
}

/* Preview Image */
.image-preview {
    margin-top: 20px;
    display: none;
}

.image-preview.show {
    display: block;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* OCR Status */
.ocr-status {
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 15px;
    display: none;
}

.ocr-status.processing {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    color: #4a9eff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ocr-status.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    display: block;
}

.ocr-status.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #F44336;
    display: block;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Country Select */
.country-select {
    position: relative;
}

.country-search {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    font-size: 14px;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.country-dropdown.show {
    display: block;
}

.country-option {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.country-option:hover {
    background: #333;
}

.country-code {
    color: #4a9eff;
    font-weight: 600;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(74, 158, 255, 0.05) 100%);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
}

.info-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-item {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.info-item-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a9eff;
}

.info-item-text {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1100px) {
    .mrz-layout {
        grid-template-columns: 1fr;
    }
    
    .form-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .doc-type-selector {
        flex-direction: column;
    }
    
    .form-grid-2,
    .form-grid-3,
    .form-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .parsed-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mrz-actions-inline {
        width: 100%;
        justify-content: space-between;
    }
    
    .mrz-lines-mono {
        font-size: 12px;
        letter-spacing: 1px;
        text-align: left;
    }
    
    .validation-inline {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .val-details {
        margin-left: 0;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .mrz-title {
        font-size: 28px;
        gap: 10px;
    }
    
    .mrz-title-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
    
    .mrz-title-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .mrz-tabs {
        flex-direction: column;
    }
    
    .mrz-lines-mono {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    .mrz-actions {
        flex-direction: column;
    }
    
    .mrz-btn {
        width: 100%;
        justify-content: center;
    }
    
    .mrz-btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ============================================
   LEGAL SECTION STYLES
   ============================================ */

.mrz-legal-section {
    background: #1a1a1a;
    padding: 50px 0 40px;
    margin-top: 60px;
}

.legal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(74, 158, 255, 0.3) 50%, transparent 100%);
    margin-bottom: 40px;
}

.legal-header {
    text-align: center;
    margin-bottom: 35px;
}

.legal-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #4a9eff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1100px) {
    .legal-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.legal-block {
    background: rgba(39, 39, 39, 0.5);
    border: 1px solid rgba(51, 51, 51, 0.8);
    border-radius: 12px;
    padding: 25px;
}

.legal-block-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    color: #4a9eff;
}

.legal-block-title {
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    margin: 0 0 12px 0;
    letter-spacing: 0.3px;
}

.legal-block-text {
    font-size: 13px;
    line-height: 1.7;
    color: #777;
    margin: 0 0 12px 0;
}

.legal-block-text:last-of-type {
    margin-bottom: 0;
}

.legal-block-text strong {
    color: #999;
    font-weight: 500;
}

.legal-highlight {
    color: #4a9eff;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    background: rgba(74, 158, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.legal-block-protocol {
    display: flex;
    flex-direction: column;
}

.legal-tech-note {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(51, 51, 51, 0.8);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #4a9eff;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.legal-footer-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(51, 51, 51, 0.5);
    flex-wrap: wrap;
    gap: 15px;
}

.legal-icao-ref {
    font-size: 11px;
    color: #555;
    font-family: 'Roboto Mono', monospace;
}

.legal-version {
    font-size: 11px;
    color: #444;
}

/* ============================================
   SERVER VALIDATION STYLES
   ============================================ */

.validation-result.server-valid {
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.05);
}

.validation-result.server-valid .validation-title {
    color: #4CAF50;
}

.validation-result.server-invalid {
    border-color: rgba(244, 67, 54, 0.5);
    background: rgba(244, 67, 54, 0.05);
}

.validation-result.server-invalid .validation-title {
    color: #f44336;
}

.validation-result.server-error {
    border-color: rgba(244, 67, 54, 0.5);
    background: rgba(244, 67, 54, 0.05);
}

.validation-result.server-error .validation-title {
    color: #f44336;
}

#server-validate-btn {
    background: linear-gradient(135deg, #6c5ce7 0%, #5541d7 100%);
}

#server-validate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

#server-validate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
