/* Enhanced Reset and Base Styles for Pro Version */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

*,
*::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: no-preference) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1;
    text-rendering: optimizeLegibility;
}

/* Enhanced CSS Variables with Professional Color Scheme */
:root {
    /* Brand Colors */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #4CAF50;
    --warning-color: #FF9800;
    --error-color: #F44336;
    --info-color: #2196F3;
    
    /* Text Colors - High Contrast for Accessibility */
    --text-primary: #333333;
    --text-secondary: #6c757d;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-dark: #212529;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Border and Shadow */
    --border-color: #e0e0e0;
    --border-light: #f1f3f4;
    --border-accent: var(--primary-color);
    --shadow-color: rgba(0,0,0,0.1);
    --shadow-light: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-heavy: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    --gradient-warning: linear-gradient(135deg, #FF9800 0%, #f57c00 100%);
    --gradient-info: linear-gradient(135deg, #2196F3 0%, #1976d2 100%);
}

/* Accessibility - Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dark Theme Variables */
body.dark-theme {
    --text-primary: #ffffff;
    --text-secondary: #e8e8e8;
    --text-muted: #6b7280;
    --bg-primary: #1f2937;
    --bg-secondary: #374151;
    --bg-tertiary: #4b5563;
    --border-color: #4b5563;
    --border-light: #6b7280;
    --shadow-color: rgba(255,255,255,0.1);
    --shadow-light: 0 2px 4px rgba(255,255,255,0.05);
    --shadow-medium: 0 4px 8px rgba(255,255,255,0.1);
    --shadow-heavy: 0 8px 24px rgba(255,255,255,0.15);
    --shadow-card: 0 2px 8px rgba(255,255,255,0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #e8e8e8;
        --text-muted: #6b7280;
        --bg-primary: #1f2937;
        --bg-secondary: #374151;
        --bg-tertiary: #4b5563;
        --border-color: #4b5563;
        --border-light: #6b7280;
        --shadow-color: rgba(255,255,255,0.1);
        --shadow-light: 0 2px 4px rgba(255,255,255,0.05);
        --shadow-medium: 0 4px 8px rgba(255,255,255,0.1);
        --shadow-heavy: 0 8px 24px rgba(255,255,255,0.15);
        --shadow-card: 0 2px 8px rgba(255,255,255,0.08);
    }
}

/* Accessibility and WCAG compliance enhancements */
*:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #000000;
        --border-color: #000000;
        --border-accent: #0000ff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Enhanced App Layout and Structure */
#app {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Enhanced Header Design */
.app-header {
    background: var(--bg-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-card);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    position: relative;
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
}

.logo-section {
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.logo i {
    font-size: var(--font-size-3xl);
    color: var(--primary-color);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.pro-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tagline {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    margin: 0;
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: var(--font-size-lg);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.version-info {
    background: var(--bg-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Enhanced Navigation Tabs */
.main-navigation {
    background: var(--bg-primary);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
}

.nav-tabs {
    display: flex;
    padding: 0;
    margin: 0;
    background: var(--bg-secondary);
}

.nav-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--spacing-lg) var(--spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    position: relative;
    font-size: var(--font-size-base);
    border-bottom: 3px solid transparent;
}

.nav-tab i {
    font-size: var(--font-size-lg);
}

.nav-tab:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-tab.active {
    background: var(--bg-primary);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.nav-tab.active i {
    color: var(--primary-color);
}

/* Enhanced Main Content Area */
.main-content {
    flex: 1;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-medium);
    padding: var(--spacing-xl);
    min-height: 600px;
}

/* Tab Content Management */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-light);
}

.tab-header h2 {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.tab-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

/* Enhanced Card Design */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: var(--spacing-lg);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.card-header {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
}

.card-content {
    padding: var(--spacing-lg);
}

/* Enhanced Grid Layouts */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn:not(:disabled):active {
    transform: translateY(0);
}

/* Button Variants */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    border-color: var(--accent-color);
}

.btn-success:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
    border-color: var(--warning-color);
}

.btn-warning:hover {
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-info {
    background: var(--gradient-info);
    color: white;
    border-color: var(--info-color);
}

.btn-info:hover {
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Button Groups */
.editor-actions,
.converter-actions,
.output-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.export-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Enhanced Form Elements */
.form-input,
.form-select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    resize: vertical;
}

.form-input:focus,
.form-select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* Form Labels and Help Text */
.form-label {
    display: block;
    margin-bottom: 8px;
    margin-top: 16px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    line-height: 1.4;
}

.form-label:first-child {
    margin-top: 0;
}

.form-label i {
    margin-right: 6px;
    color: var(--primary-color);
    font-size: 14px;
}

.form-help {
    display: block;
    margin-top: 4px;
    margin-bottom: 12px;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    line-height: 1.3;
    font-style: italic;
}

/* Enhanced Editor Container */
.editor-container {
    position: relative;
}

.editor-container textarea {
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    line-height: 1.5;
    tab-size: 2;
    background: var(--bg-dark);
    color: #e9ecef;
    border: 1px solid var(--border-color);
    min-height: 400px;
}

/* Enhanced Radio Options */
.radio-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: var(--spacing-sm);
    background: var(--bg-primary);
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

.radio-option input[type="radio"] {
    margin: 0;
    accent-color: var(--primary-color);
}

.radio-option input[type="radio"]:checked + .radio-text {
    color: var(--primary-color);
    font-weight: 600;
}

/* Enhanced Checkbox Options */
.checkbox-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    cursor: pointer;
    position: relative;
}

.checkbox-option input[type="checkbox"] {
    margin: 0;
    accent-color: var(--primary-color);
}

/* Enhanced Results and Status */
.results-container {
    min-height: 200px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
}

.placeholder-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    height: 160px;
}

.placeholder-state i {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
    opacity: 0.6;
}

/* Additional Enhanced Styles for Schema Validator and Templates Tabs */

/* Modal Enhancements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-heavy);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

/* Schema Validator Enhanced Styles */
.validator-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.azure-integration .azure-status {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-accent);
    background: rgba(102, 126, 234, 0.08);
    color: var(--text-primary);
}

body.dark-theme .azure-integration .azure-status {
    background: rgba(102, 126, 234, 0.18);
    border-color: var(--border-light);
}

.azure-integration .azure-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.azure-integration .azure-actions .btn {
    flex: 1 1 200px;
}

.azure-integration .azure-helper {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

body.dark-theme .azure-integration .azure-helper {
    color: var(--text-muted);
}

.validation-controls {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.validation-results .no-results,
.test-results .no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    text-align: center;
}

.validation-status {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.validation-status.valid {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.validation-status.invalid {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.test-suite-controls {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.test-progress {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-success);
    transition: width 0.3s ease;
}

/* Templates Tab Enhanced Styles */
.templates-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.template-library {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.resource-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.resource-checkbox:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    box-shadow: var(--shadow-medium);
}

.deployment-builder {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.deployment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.option-group {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid var(--border-light);
}

.option-group h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.deployment-preview {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-size-sm);
    max-height: 400px;
    overflow-y: auto;
}

/* Enhanced Pro Styling */
.notification-pro {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-heavy);
    color: white;
    font-weight: 500;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-pro.success {
    background: var(--gradient-success);
}

.notification-pro.error {
    background: linear-gradient(135deg, var(--error-color), #c62828);
}

.notification-pro.info {
    background: var(--gradient-info);
}

.notification-pro.warning {
    background: var(--gradient-warning);
}

/* Sample Code Styles */
.sample-code {
    background: var(--bg-dark);
    color: #e9ecef;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-size-sm);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    overflow-x: auto;
    white-space: pre;
    line-height: 1.5;
}

/* Enhanced Button Groups */
.btn-group {
    display: flex;
    gap: var(--spacing-xs);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.btn-group .btn {
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--border-light);
}

.btn-group .btn:last-child {
    border-right: none;
}

/* Code Editor Enhancements */
.code-editor-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.code-editor-header {
    background: var(--bg-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.code-editor-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.line-numbers {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    padding: var(--spacing-md) var(--spacing-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border-right: 1px solid var(--border-light);
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.status-indicator.online {
    background: rgba(76, 175, 80, 0.1);
    color: var(--accent-color);
}

.status-indicator.offline {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
}

.status-indicator.processing {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

/* Enhanced Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    #app {
        padding: var(--spacing-md);
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .nav-tab {
        justify-content: flex-start;
        padding: var(--spacing-md);
    }
    
    .main-content {
        padding: var(--spacing-lg);
    }
    
    .logo h1 {
        font-size: var(--font-size-xl);
    }
    
    .editor-actions,
    .converter-actions,
    .output-actions {
        justify-content: center;
    }
    
    .validation-controls,
    .test-suite-controls {
        flex-direction: column;
    }
    
    .deployment-options {
        grid-template-columns: 1fr;
    }
    
    .resource-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .notification-pro {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    will-change: transform;
    transform: translateZ(0);
}

/* Animation and Interaction Enhancements */
.card,
.btn,
.form-input,
.form-select,
textarea {
    will-change: transform;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

/* Success and Error States */
.success {
    border-color: var(--accent-color) !important;
    background: rgba(76, 175, 80, 0.05);
}

.error {
    border-color: var(--error-color) !important;
    background: rgba(244, 67, 54, 0.05);
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .notification-pro {
        animation: none;
    }
    
    .progress-fill {
        transition: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Optimizations */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .app-header,
    .main-navigation,
    .btn,
    .theme-toggle {
        display: none !important;
    }
    
    .main-content {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .modal-overlay,
    .notification-pro,
    .floating-actions {
        display: none !important;
    }
    
    .code-editor-container,
    .deployment-preview {
        border: 1px solid #000 !important;
        background: white !important;
        color: black !important;
    }
}
