* {
    box-sizing: border-box;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
    background: #f4f6fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.card {
    max-width: 1600px;
    width: 100%;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    overflow: hidden;
    padding: 2rem;
}
h1 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.sub {
    color: #475569;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    background: #f8fafc;
    border-radius: 0 1rem 1rem 0;
    line-height: 1.5;
}
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}
.left-panel {
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    max-height: 90vh;
    overflow-y: auto;
}
.file-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}
.file-label {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 3rem;
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.file-label:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.file-label input {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
}
.file-info {
    font-size: 0.85rem;
    color: #64748b;
    background: #ffffffd0;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    border: 1px dashed #cbd5e1;
}
.clear-file-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
    transition: color 0.2s;
}
.clear-file-btn:hover {
    color: #ef4444;
}
.clear-file-btn:focus {
    outline: none;
}
textarea {
    width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.2rem;
    padding: 1.2rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: 0.15s;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}
textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px #3b82f620;
}
#codeInput {
    min-height: 200px;
}
.btn-obfuscate {
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 3rem;
    padding: 0.9rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    margin: 1.2rem 0 1.5rem 0;
    cursor: pointer;
    transition: 0.15s;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 20px -8px #1e293b80;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-obfuscate:hover {
    background: #0f172a;
    transform: scale(1.01);
}
.options-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.option-group {
    background: white;
    border-radius: 1.2rem;
    padding: 1rem 1.2rem;
    border: 1px solid #e2e8f0;
}
.group-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.8rem;
    letter-spacing: 0.3px;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 0.4rem;
}
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.6rem 1rem;
}
.option-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #1e293b;
    flex-wrap: wrap;
}
.option-item input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #3b82f6;
}
.option-item input[type="number"], .option-item input[type="text"], .option-item select {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 1.5rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    color: #0f172a;
    outline: none;
    width: 65px;
}
.option-item input[type="text"] {
    width: 120px;
}
.option-item select {
    width: auto;
}
.right-panel {
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: fit-content;
}
.result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}
.result-title {
    font-weight: 600;
    font-size: 1rem;
    color: #334155;
}
.copy-btn {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 2rem;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.15s;
    margin-left: auto;
}
.copy-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.copy-btn.copied {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}
#resultOutput {
    flex: 1;
    min-height: 500px;
    background: #0f172a;
    color: #bbf7d0;
    border: 1px solid #334155;
    border-radius: 1.2rem;
    padding: 1.2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    resize: vertical;
    white-space: pre-wrap;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.6);
}
.badge {
    background: #3b82f6;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}
.footer-note {
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 1.8rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.2rem;
}
@media (max-width: 1000px) {
    .main-grid { grid-template-columns: 1fr; }
    body { padding: 0.8rem; }
    .card { padding: 1.2rem; }
}
