:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-light: #d1fae5;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #34d399;
    --accent-hover: #10b981;
    --accent-light: #064e3b;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.theme-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    font-size: 1.25rem;
    transition: transform 0.2s;
    z-index: 100;
}
.theme-toggle:hover { transform: scale(1.1); }

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; }
.container { max-width: 1000px; margin: 0 auto; padding: 20px; }
header { text-align: center; padding: 40px 20px; background: var(--bg-secondary); border-radius: var(--radius); margin-bottom: 30px; box-shadow: var(--shadow); position: relative; }
header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tagline { color: var(--text-secondary); }
.dark-mode-btn { position: absolute; top: 20px; right: 20px; background: var(--bg-primary); border: 2px solid var(--border); border-radius: 50%; width: 45px; height: 45px; font-size: 1.3rem; cursor: pointer; }
.converter-card { background: var(--bg-secondary); border-radius: var(--radius); padding: 30px; margin-bottom: 25px; box-shadow: var(--shadow); }
.tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tab { flex: 1; padding: 15px; background: var(--bg-primary); border: 2px solid var(--border); border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s; color: var(--text-primary); }
.tab.active { background: var(--accent); color: white; border-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.input-section, .output-section { margin-bottom: 20px; }
.input-section label, .output-section label { display: block; margin-bottom: 10px; font-weight: 600; color: var(--text-secondary); }
textarea { width: 100%; padding: 15px; border: 2px solid var(--border); border-radius: 8px; font-size: 0.95rem; background: var(--bg-primary); color: var(--text-primary); resize: vertical; font-family: 'Monaco', 'Consolas', monospace; }
textarea:focus { outline: none; border-color: var(--accent); }
.file-upload { margin-top: 10px; }
.file-upload input[type="file"] { display: none; }
.file-upload label { display: inline-block; padding: 10px 20px; background: var(--bg-primary); border: 2px dashed var(--border); border-radius: 8px; cursor: pointer; transition: all 0.3s; }
.file-upload label:hover { border-color: var(--accent); color: var(--accent); }
.options { display: flex; gap: 20px; margin: 15px 0; flex-wrap: wrap; align-items: center; }
.options label { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 0.95rem; }
.options input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.options input[type="text"] { padding: 5px 10px; border: 2px solid var(--border); border-radius: 4px; background: var(--bg-primary); color: var(--text-primary); text-align: center; }
.convert-btn { width: 100%; padding: 15px; background: var(--accent); color: white; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s; margin: 15px 0; }
.convert-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.action-buttons { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.action-btn { padding: 10px 20px; background: var(--bg-primary); color: var(--text-primary); border: 2px solid var(--border); border-radius: 8px; cursor: pointer; font-weight: 500; transition: all 0.3s; }
.action-btn:hover { border-color: var(--accent); color: var(--accent); }
.trust-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin: 40px 0; }
.badge { display: flex; align-items: center; gap: 10px; padding: 15px 20px; background: var(--bg-secondary); border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 600; color: var(--text-secondary); }
.badge-icon { font-size: 1.5rem; }
.faq-section { background: var(--bg-secondary); border-radius: var(--radius); padding: 30px; margin: 30px 0; box-shadow: var(--shadow); }
.faq-section h2 { color: var(--accent); margin-bottom: 20px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 15px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { font-weight: 600; cursor: pointer; padding: 10px 0; list-style: none; }
.faq-item summary::after { content: '+'; float: right; font-size: 1.5rem; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 15px 0; color: var(--text-secondary); }
footer { text-align: center; padding: 30px; color: var(--text-secondary); }
@media (max-width: 768px) {
    header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
    .dark-mode-btn { position: static; margin-top: 15px; }
    .tabs { flex-direction: column; }
    .options { flex-direction: column; gap: 10px; }
}

/* Theme Toggle Button */

[data-theme="dark"]