
:root {
--primary: #fbbf24;
--bg: #000000;
--surface: #111111;
--border: #333333;
--text: #ffffff;
--radius: 8px;
}
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Inter', -apple-system, sans-serif;
    }

    body {
        background-color: var(--bg);
        color: var(--text);
        display: flex;
        justify-content: center;
        min-height: 100vh;
        overflow: hidden;
    }

    .main-wrapper {
        width: 1000px;
        padding: 20px 0;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid var(--border);
        padding-bottom: 10px;
    }

    .logo {
        font-size: 1.1rem;
        font-weight: 900;
        color: var(--primary);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .credit-badge {
        font-size: 0.65rem;
        font-weight: 700;
        color: var(--primary);
        background: rgba(251, 191, 36, 0.1);
        padding: 3px 10px;
        border-radius: 20px;
        border: 1px solid var(--primary);
    }

    /* Mode Switcher */
    .switcher-wrapper {
        display: flex;
        justify-content: center;
        margin: 5px 0;
    }

    .mode-slider {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 40px;
        display: flex;
        position: relative;
        padding: 3px;
        width: 360px;
        cursor: pointer;
        user-select: none;
    }

    .mode-label {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        font-size: 0.8rem;
        font-weight: 800;
        z-index: 2;
        color: #555;
        text-transform: uppercase;
        transition: color 0.3s ease;
    }

    .mode-label.active {
        color: #000;
    }

    .slider-thumb {
        position: absolute;
        top: 3px;
        left: 3px;
        width: calc(50% - 3px);
        height: calc(100% - 6px);
        background: var(--primary);
        border-radius: 40px;
        transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        z-index: 1;
    }

    .mode-slider[data-active="m2t"] .slider-thumb {
        transform: translateX(100%);
    }

    /* Grid Layout */
    .panel-container {
        width: 100%;
    }

    .converter-panel {
        display: none;
        grid-template-columns: 1fr 1fr;
        border: 2px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
        background: var(--border);
        gap: 2px;
    }

    .converter-panel.active {
        display: grid;
    }

    .block {
        background: var(--surface);
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .header-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 30px;
    }

    .label {
        font-size: 0.75rem;
        font-weight: 900;
        color: var(--primary);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    textarea {
        width: 100%;
        height: 300px; /* Bigger for better visibility */
        background: #000;
        border: 1px solid var(--border);
        padding: 15px;
        color: #ffffff;
        font-size: 1.1rem;
        resize: none;
        outline: none;
        line-height: 1.5;
    }

    textarea:focus {
        border-color: var(--primary);
    }

    .output-box {
        background: #000;
        height: 300px; /* Matched height */
        padding: 15px;
        border: 1px solid var(--border);
        font-family: 'JetBrains Mono', monospace;
        font-size: 1.1rem;
        color: var(--primary);
        overflow-y: auto;
        word-break: break-all;
        white-space: pre-wrap;
        line-height: 1.4;
    }

    /* High Visibility Copy Button Moved Up */
    .copy-btn {
        background: var(--primary);
        border: none;
        color: #000;
        padding: 6px 15px;
        font-size: 0.7rem;
        font-weight: 900;
        cursor: pointer;
        border-radius: 4px;
        text-transform: uppercase;
        transition: all 0.2s ease;
    }

    .copy-btn:hover {
        background: #ffffff;
        transform: translateY(-1px);
    }

    footer {
        margin-top: auto;
        padding: 15px 0;
        border-top: 1px solid var(--border);
        text-align: center;
    }

    .portfolio-credit {
        font-size: 0.75rem;
        color: #444;
        letter-spacing: 1px;
    }

    .portfolio-credit b {
        color: var(--text);
        text-transform: uppercase;
    }

    @media (max-width: 1000px) {
        .main-wrapper { width: 95%; height: auto; overflow: visible; padding-bottom: 50px; }
        body { overflow: auto; }
        .converter-panel { grid-template-columns: 1fr; }
        textarea, .output-box { height: 200px; }
    }
