        body {
            font-family: 'Segoe UI', system-ui, sans-serif;
            font-size: 13px;
            line-height: 1.4;
            color: #212529;
            background: #f5f7ff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        .page-header {
            text-align: center;
            margin: 10px 0 10px;
            padding: 0 10px;
        }
        .page-header h1 {
            font-size: 22px;
            font-weight: 600;
            color: #1E293B;
            margin-bottom: 4px;
        }
        .subtitle {
            font-size: 13px;
            color: #6c757d;
        }
        
        .main-container {
            flex: 1;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 10px 10px 10px;
            display: flex;
            flex-direction: column;
        }
        
        .two-column {
            display: flex;
            gap: 10px;
            flex: 1;
            min-height: 0;
        }
        
        .column {
            width: 50%;
            display: flex;
            flex-direction: column;
        }
        
        .card {
            background: #ffffff;
            border-radius: 6px;
            border: 1px solid #e9ecef;
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .card-header {
            background: linear-gradient(135deg, rgba(67, 97, 238, 0.08), rgba(58, 12, 163, 0.08));
            padding: 8px 10px;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .card-header h1, .card-header h2 {
            font-size: 16px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .card-header h1 i, .card-header h2 i {
            color: #4361ee;
        }
        
        .btn {
            padding: 4px 8px;
            font-size: 12px;
            font-weight: 500;
            border: 1px solid transparent;
            border-radius: 4px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.2s;
            background: transparent;
        }
        .btn-icon {
            width: 24px;
            height: 24px;
            padding: 0;
            justify-content: center;
        }
        .btn-primary {
            background: #4361ee;
            color: white;
            border: none;
            padding: 6px 12px;
            font-size: 15px;
        }
        .btn-primary:hover {
            background: #3a0ca3;
        }
        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .btn-outline-primary {
            background: transparent;
            color: #4361ee;
            border: 1px solid #4361ee;
        }
        .btn-outline-primary:hover {
            background: #4361ee;
            color: white;
        }
        .btn-outline-success {
            background: transparent;
            color: #4cc9f0;
            border: 1px solid #4cc9f0;
        }
        .btn-outline-success:hover {
            background: #4cc9f0;
            color: white;
        }
        .btn-swap {
            background: #4361ee;
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: none;
        }
        .btn-swap:hover {
            background: #3a0ca3;
        }
        
        .content-section {
            padding: 5px;
        }
        
        .form-group {
            margin-bottom: 5px;
        }
        .form-row {
            display: flex;
            gap: 5px;
            margin-bottom: 5px;
        }
        .form-col {
            flex: 1;
        }
        
        .form-label {
            font-size: 15px;
            font-weight: 500;
            color: #495057;
            margin-bottom: 2px;
            display: flex;
            align-items: center;
            gap: 3px;
        }
        .form-label i {
            color: #4361ee;
            width: 14px;
            font-size: 12px;
        }
        
        .form-control, .form-select, .language-display-box {
            width: 100%;
            padding: 4px 6px;
            font-size: 14px;
            color: #212529;
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 4px;
            outline: none;
            height: 28px;
        }
        .form-control:focus, .form-select:focus, .language-display-box:focus-within {
            border-color: #4361ee;
        }
        
        .language-display-box {
            display: flex;
            align-items: center;
            padding: 0;
            overflow: hidden;
            cursor: pointer;
        }
        .language-display-box:hover {
            border-color: #4361ee;
        }
        .language-display-box.active {
            border-color: #4361ee;
            background: rgba(67, 97, 238, 0.05);
        }
        .language-icon {
            background: #f8f9fa;
            padding: 4px 6px;
            border-right: 1px solid #e9ecef;
            color: #6c757d;
            font-size: 11px;
            height: 100%;
            display: flex;
            align-items: center;
        }
        .language-display {
            flex: 1;
            padding: 4px 6px;
            font-size: 12px;
            color: #212529;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .language-arrow {
            color: #6c757d;
            font-size: 9px;
        }
        
        .select-container {
            background: #f8f9fa;
            border-radius: 4px;
            padding: 5px;
            border: 1px solid #e9ecef;
        }
        .radio-group {
            display: flex;
            gap: 10px;
            margin-bottom: 5px;
            padding-bottom: 5px;
            border-bottom: 1px dashed #dee2e6;
        }
        .radio-item {
            display: flex;
            align-items: center;
            gap: 3px;
            cursor: pointer;
            font-size: 11px;
        }
        .radio-item input[type="radio"] {
            margin: 0;
            cursor: pointer;
            width: 12px;
            height: 12px;
        }
        
        .checkbox-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 3px;
        }
        .five-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 3px;
        }
        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 3px;
            padding: 2px 4px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 11px;
        }
        .checkbox-item input[type="checkbox"] {
            margin: 0;
            cursor: pointer;
            width: 12px;
            height: 12px;
        }
        
        .metal-bg {
            background: rgba(255,215,0,0.1);
            color: #B8860B;
        }
        .wood-bg {
            background: rgba(76,175,80,0.1);
            color: #2E7D32;
        }
        .water-bg {
            background: rgba(33,150,243,0.1);
            color: #1565C0;
        }
        .fire-bg {
            background: rgba(244,67,54,0.1);
            color: #C62828;
        }
        .earth-bg {
            background: rgba(139,69,19,0.1);
            color: #795548;
        }
        
        .info-bar {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 5px;
            background: #f8f9fa;
            border-top: 1px solid #e9ecef;
            font-size: 11px;
            color: #6c757d;
        }
        .info-bar i {
            color: #4361ee;
            font-size: 11px;
        }
        
        .action-bar {
            padding: 5px;
            background: #f8f9fa;
            border-top: 1px solid #e9ecef;
            display: flex;
            justify-content: center;
        }
        
        .result-area {
            flex: 1;
            padding: 5px;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }
        .result-textarea {
            width: 100%;
            flex: 1;
            padding: 6px;
            font-size: 13px;
            line-height: 1.5;
            color: #212529;
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 4px;
            outline: none;
            font-family: inherit;
            min-height: 300px;
            overflow-y: auto;
        }
        .result-textarea:focus {
            border-color: #4361ee;
        }
        
        .metadata-panel {
            padding: 5px;
            background: #f8f9fa;
            border-top: 1px solid #e9ecef;
            font-size: 11px;
            color: #6c757d;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom:5px;
        }
        .metadata-item {
            display: flex;
            align-items: center;
            gap: 3px;
        }
        .metadata-item i {
            color: #4361ee;
            font-size: 11px;
        }
        
        .error-message {
            color: #e63946;
            font-size: 11px;
            margin-top: 2px;
            display: none;
        }
        .error-message.show {
            display: block;
        }
        
        .spinner-border {
            display: inline-block;
            width: 12px;
            height: 12px;
            border: 2px solid currentColor;
            border-right-color: transparent;
            border-radius: 50%;
            animation: spinner 0.75s linear infinite;
        }
        #loadingSpinner {
            display: none;
        }
        @keyframes spinner {
            to { transform: rotate(360deg); }
        }
        
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9998;
        }
        .spinner-large {
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #4361ee;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 10px;
        }
        .loading-text {
            color: white;
            font-size: 14px;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .message-toast {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 8px 16px;
            border-radius: 4px;
            font-size: 12px;
            z-index: 9999;
            animation: slideIn 0.3s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            display: none;
        }
        .message-toast.success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        .message-toast.error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .modal-overlay.show {
            display: flex;
        }
        .modal {
            background: white;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            display: flex;
            flex-direction: column;
            width: 450px;
            max-width: 90%;
            max-height: 80%;
        }
        .modal-header {
            padding: 8px 10px;
            border-bottom: 1px solid #e9ecef;
            background: rgba(67, 97, 238, 0.05);
        }
        .modal-header h3 {
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .modal-search {
            padding: 5px 8px;
            border-bottom: 1px solid #e9ecef;
        }
        .search-container {
            position: relative;
        }
        .search-container i {
            position: absolute;
            left: 6px;
            top: 50%;
            transform: translateY(-50%);
            color: #6c757d;
            font-size: 11px;
        }
        .search-input {
            width: 100%;
            padding: 4px 4px 4px 22px;
            border: 1px solid #e9ecef;
            border-radius: 4px;
            font-size: 12px;
            color: #212529;
            outline: none;
            height: 26px;
        }
        .search-input:focus {
            border-color: #4361ee;
        }
        .modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 0;
        }
        .language-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1px;
            background: #e9ecef;
        }
        .language-item {
            background: white;
            padding: 6px 2px;
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            text-align: center;
        }
        .language-item:hover {
            background: rgba(67, 97, 238, 0.05);
        }
        .language-item.selected {
            background: #4361ee;
            color: white;
        }
        .language-code {
            font-size: 10px;
            font-weight: 600;
            margin-bottom: 1px;
        }
        .language-name {
            font-size: 9px;
            line-height: 1.2;
        }
        .modal-footer {
            padding: 6px 8px;
            border-top: 1px solid #e9ecef;
            display: flex;
            justify-content: flex-end;
            gap: 5px;
            background: #f8f9fa;
        }
        
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }
        ::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
        
        @media (max-width: 768px) {
            .two-column {
                flex-direction: column;
            }
            .column {
                width: 100%;
            }
            .page-header h1 {
                font-size: 18px;
            }
            .language-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }