* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    padding: 16px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin: 20px 0 30px;
    color: #bb86fc;
}

.tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    margin-bottom: 24px;
    justify-content: center;
}

.tab-button {
    padding: 12px 20px;
    background: #1e1e1e;
    border: 1px solid #333;
    color: #e0e0e0;
    cursor: pointer;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

.tab-button:hover {
    background: #2d2d2d;
}

.tab-button.active {
    background: #bb86fc;
    color: #000;
    border-color: #bb86fc;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

h2 {
    margin-bottom: 16px;
    color: #03dac6;
    text-align: center;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: #2d2d2d;
    border: 1px solid #444;
    color: white;
    border-radius: 6px;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: #03dac6;
    box-shadow: 0 0 0 2px rgba(3,218,198,0.3);
}

button {
    width: 100%;
    padding: 14px;
    background: #03dac6;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #018786;
}

.result {
    margin-top: 16px;
    padding: 16px;
    background: #282828;
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    min-height: 60px;
}

/* Responsive */
@media (max-width: 600px) {
    .tabs {
        flex-direction: column;
    }
    .tab-button {
        width: 100%;
    }
    h1 {
        font-size: 1.8rem;
    }
}