/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode (Default) */
    --primary-color: #0891b2;
    --primary-hover: #0e7490;
    --primary-light: #06b6d4;
    --accent-color: #14b8a6;
    --accent-hover: #0d9488;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --bg-body: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-gradient: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --warning-bg: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    --warning-text: #92400e;
    --warning-border: #f59e0b;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #22d3ee;
    --primary-hover: #06b6d4;
    --primary-light: #67e8f9;
    --accent-color: #2dd4bf;
    --accent-hover: #14b8a6;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --bg-body: #0f172a;
    --bg-primary: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    --bg-gradient: linear-gradient(135deg, #22d3ee 0%, #06b6d4 50%, #0891b2 100%);
    --border-color: #334155;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --warning-bg: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    --warning-text: #fde68a;
    --warning-border: #fbbf24;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

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

/* Header */
header {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-primary);
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Typography */
h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Sections */
.info-section, .tool-section, .results-section {
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-section:hover, .tool-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.info-section p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Tool Section */
.tool-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-panel, .output-panel {
    display: flex;
    flex-direction: column;
}

/* Panel Header with Live Counter */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.panel-header h3 {
    margin-bottom: 0;
}

.live-counter {
    animation: slideIn 0.3s ease;
}

.counter-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

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

/* Drop Zone */
.drop-zone {
    position: relative;
    width: 100%;
}

.drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.95));
    border-radius: 6px;
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.drop-zone.drag-over .drop-overlay {
    display: flex;
}

.drop-zone.drag-over textarea {
    border-color: var(--primary-color);
    border-width: 3px;
}

.drop-message {
    text-align: center;
    color: white;
}

.drop-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 10px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.drop-message p {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* Shortcuts Hint */
.shortcuts-hint {
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.shortcuts-hint small {
    color: #1e40af;
    font-size: 0.8125rem;
    font-weight: 600;
}

textarea {
    width: 100%;
    min-height: 300px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    resize: vertical;
    background: var(--bg-secondary);
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

textarea::placeholder {
    color: var(--text-secondary);
}

/* Buttons */
.button-group {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--bg-secondary);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
}

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

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

/* Settings Section */
.settings-section {
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    padding: 24px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.settings-section::before {
    content: '⚙️';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.1;
}

.settings-section h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9375rem;
}

.setting-item input[type="checkbox"],
.setting-item input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.setting-item span {
    user-select: none;
}

.dash-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 28px;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.sub-option {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Results Section */
.results-section {
    border: 2px solid rgba(8, 145, 178, 0.3);
    position: relative;
}

.results-section::before {
    content: '📊';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    opacity: 0.1;
}

/* Visualization Box Section */
.visualization-box-section {
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.visualization-box-section::before {
    content: '🔍';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    opacity: 0.1;
}

.visualization-box-section h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.visualization-box-section textarea {
    min-height: 250px;
    background-color: #fffbeb;
    border: 2px solid var(--warning-color);
}

/* Visualization Section */
.visualization-section {
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.visualization-section::before {
    content: '✨';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    opacity: 0.1;
}

.viz-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.char-visualization {
    padding: 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9375rem;
    line-height: 1.8;
    max-height: 500px;
    overflow-y: auto;
    word-break: break-all;
}

/* Character tooltip styling */
.char-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.char-tooltip .tooltip-text {
    visibility: hidden;
    background-color: var(--text-primary);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -80px;
    width: 160px;
    font-size: 11px;
    white-space: normal;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: var(--shadow-lg);
    line-height: 1.4;
}

.char-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Different character types */
.char-hex {
    background-color: #fef08a;
    color: #92400e;
    padding: 2px 6px;
    margin: 0 1px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #fbbf24;
}

.char-space {
    background-color: rgba(34, 197, 94, 0.2);
    color: #15803d;
    padding: 2px 4px;
    margin: 0;
}

.char-printable {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.char-symbol {
    background-color: #e0e7ff;
    color: #4338ca;
    padding: 2px 4px;
    margin: 0 1px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.detail-char {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background-color: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.detail-count {
    font-weight: 600;
    color: var(--warning-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 6px;
}

.feature-item h4 {
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step-card {
    background: var(--bg-secondary);
    padding: 30px 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-gradient);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.step-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.125rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Benefit List */
.benefit-list {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.benefit-list li {
    padding: 12px 0 12px 35px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 800;
    font-size: 1.25rem;
}

.disclaimer-text {
    margin-top: 20px;
    padding: 15px 20px;
    background: var(--warning-bg);
    border-left: 4px solid var(--warning-border);
    border-radius: 8px;
    color: var(--warning-text);
    font-size: 0.9375rem;
}

/* FAQ Section */
.faq-section {
    border: 2px solid rgba(8, 145, 178, 0.2);
}

.faq-item {
    margin-bottom: 25px;
    padding: 25px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}

.faq-item ul, .faq-item ol {
    margin: 15px 0;
    padding-left: 25px;
    color: var(--text-secondary);
}

.faq-item li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    background: var(--bg-primary);
    border-radius: 16px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

footer p {
    margin: 0 0 20px 0;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.footer-nav a:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.footer-nav .separator {
    opacity: 0.5;
}

.copyright {
    font-size: 0.8125rem;
    opacity: 0.7;
    margin-top: 20px;
}

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 16px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.theme-toggle-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-toggle-icon {
    transform: rotate(20deg);
}

.theme-toggle-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 4px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
}

/* Visualization Output Styling */
.visualization-output {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: var(--bg-secondary);
    color: var(--text-primary);
    margin-bottom: 12px;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.8;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.visualization-output:empty::before {
    content: 'Character markers will appear here...';
    color: var(--text-secondary);
    opacity: 0.7;
    font-style: italic;
}

.viz-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 12px;
    font-style: italic;
}

/* Special marker styling for watermark characters */
.watermark-marker {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-weight: 900;
    font-size: 1.1em;
    padding: 2px 6px;
    border-radius: 4px;
    border: 2px solid #f59e0b;
    display: inline-block;
    margin: 0 2px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
}

[data-theme="dark"] .watermark-marker {
    background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
    color: #fde68a;
    border-color: #fbbf24;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.4);
}

/* Normal text in visualization */
.normal-char {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }
    
    .theme-toggle-text {
        display: none;
    }
    
    .language-toggle {
        top: 60px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }

    .tool-section {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 10px;
    }

    .info-section, .tool-section, .results-section {
        padding: 20px;
    }

    textarea {
        min-height: 200px;
    }
}

/* Copy Success Animation */
@keyframes successPulse {
    0% { background-color: var(--primary-color); }
    50% { background-color: var(--success-color); }
    100% { background-color: var(--primary-color); }
}

.btn-success {
    animation: successPulse 0.5s ease;
}

