:root {
            --primary-color: #2c7da0;
            --secondary-color: #a9d6e5;
            --accent-color: #01497c;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --info-color: #17a2b8;
            --danger-color: #dc3545;
            --reverse-color: #9c27b0;
            --transform-color: #ff9800;
        }.mode-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
} .mode-option input[type="radio"]:checked + label {
    border-color: var(--reverse-color);
    background-color: rgba(156, 39, 176, 0.1);
    color: var(--reverse-color);
}
          .page-header {
            background: linear-gradient(135deg, rgba(169, 214, 229, 0.4) 0%, rgba(44, 125, 160, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(44, 125, 160, 0.2);
            position: relative;
            overflow: hidden;  color: var(--text-color);
        }
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: var(--text-color);
        }
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.15);
        }
        textarea.mode-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }
        .mode-option {
            flex: 1;
            min-width: 120px;
        }
        .mode-option input[type="radio"] {
            display: none;
        }
        .mode-option label {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
            border: 2px solid var(--border-color);
            border-radius: 6px;
            background-color: white;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            height: 100%;
        }
        .mode-option label:hover {
            border-color: var(--primary-color);
            background-color: rgba(44, 125, 160, 0.05);
        }
        .mode-option input[type="radio"]:checked + label {
            border-color: var(--reverse-color);
            background-color: rgba(156, 39, 176, 0.1);
            color: var(--reverse-color);
        }
        .mode-icon {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
        }
        .mode-option input[type="radio"]:checked + label .mode-icon {
            color: var(--reverse-color);
        }
        .options-panel {
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border: 1px solid var(--border-color);
        }
        .option-group {
            margin-bottom: 1rem;
        }
        .option-group:last-child {
            margin-bottom: 0;
        }
        .option-title {
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: var(--primary-color);
        }
        .form-check {
            margin-bottom: 0.5rem;
        }
        .form-check-label {
            cursor: pointer;
        }
        .result-text {
            padding: 12px;
            background-color: white;
            border-radius: 4px;
            border: 1px solid #eee;
            font-family: 'Courier New', monospace;
            font-size: 0.95rem;
            margin: 10px 0;
            min-height: 120px;
            white-space: pre-wrap;
            word-break: break-all;
        }
        .stats-container {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-top: 1rem;
        }
        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0.75rem;
            background-color: white;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            min-width: 100px;
        }
        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        .stat-label {
            color: var(--text-muted);
            font-size: 0.85rem;
            text-align: center;
        }
        .action-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }
        .action-btn i {
            margin-right: 0.5rem;
        }
        .example-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        .example-btn {
            background-color: rgba(44, 125, 160, 0.1);
            border: 1px solid rgba(44, 125, 160, 0.2);
            border-radius: 4px;
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.2s;
        }
        .example-btn:hover {
            background-color: rgba(44, 125, 160, 0.2);
            transform: translateY(-2px);
        }
        .reverse-box {
            background-color: rgba(156, 39, 176, 0.05);
            border-left: 3px solid var(--reverse-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        .visualization-container {
            display: none;
            flex-direction: column;
            align-items: center;
            margin: 2rem 0;
        }
        .visualization-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            margin-bottom: 1rem;
        }
        .visualization-text {
            padding: 0.75rem;
            background-color: white;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            font-family: 'Courier New', monospace;
            flex: 1;
            text-align: center;
        }
        .visualization-arrow {
            margin: 0 1rem;
            color: var(--reverse-color);
            font-size: 1.5rem;
        }
        @media (max-width: 768px) {
            .mode-selector {
                flex-direction: column;
            }
            .visualization-row {
                flex-direction: column;
            }
            .visualization-arrow {
                margin: 0.5rem 0;
                transform: rotate(90deg);
            }
        }
        .mode-badge {
            display: inline-block;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-left: 0.5rem;
        }
        .reverse-badge {
            background-color: rgba(156, 39, 176, 0.1);
            color: var(--reverse-color);
        }
        .processing-indicator {
            display: none;
            text-align: center;
            padding: 1rem;
            color: var(--text-muted);
        }
        .code-preview {
            background-color: #f5f5f5;
            border-radius: 6px;
            padding: 1rem;
            margin: 1rem 0;
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
            overflow-x: auto;
        }
        .character-map {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        .char-item {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            background-color: white;
            font-family: 'Courier New', monospace;
            font-weight: 600;
        }
        .char-original {
            background-color: rgba(44, 125, 160, 0.1);
            color: var(--primary-color);
        }
        .char-reversed {
            background-color: rgba(156, 39, 176, 0.1);
            color: var(--reverse-color);
        }