* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: #07090d;
    color: #f5f7fa;
    min-height: 100vh;
}


/* NAVBAR */

.navbar {
    border-bottom: 1px solid #181c24;
    background: rgba(7, 9, 13, 0.9);
}

.nav-container {
    max-width: 1180px;
    height: 72px;
    margin: auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    color: white;
    text-decoration: none;

    font-size: 18px;
    font-weight: 700;
}

.logo-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 1px solid #2b313d;
    border-radius: 9px;

    color: #9da7b8;
    font-size: 14px;
}

.logo-accent {
    color: #8994ff;
}

.back-link {
    color: #8b94a5;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: white;
}


/* HERO */

.tool-hero {
    max-width: 900px;
    margin: auto;
    padding: 80px 24px 45px;

    text-align: center;
}

.tool-badge {
    display: inline-block;

    padding: 6px 11px;

    border: 1px solid #292f3b;
    border-radius: 999px;

    color: #8994ff;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.tool-hero h1 {
    margin-top: 18px;

    font-size: clamp(42px, 6vw, 68px);
    letter-spacing: -3px;
}

.tool-hero p {
    margin-top: 16px;

    color: #858e9e;
    font-size: 16px;
}


/* BASE64 AREA */

.base64-wrapper {
    width: min(1000px, calc(100% - 40px));
    margin: auto;

    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}


/* PANELS */

.editor-panel {
    padding: 24px;

    background: #0c1016;
    border: 1px solid #252b35;
    border-radius: 14px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;

    color: #aeb6c4;
    font-size: 13px;
    font-weight: 600;
}

textarea {
    width: 100%;
    height: 220px;

    display: block;

    padding: 16px;

    resize: vertical;

    background: #090c11;
    color: #dce2ec;

    border: 1px solid #252b35;
    border-radius: 10px;

    outline: none;

    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
}

textarea:focus {
    border-color: #5965c9;
}

textarea::placeholder {
    color: #4f5867;
}


/* CONTROLS */

.controls {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.action-btn,
.secondary-action-btn {
    padding: 12px 24px;

    border-radius: 8px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

.action-btn {
    border: none;

    background: #8994ff;
    color: #07090d;
}

.secondary-action-btn {
    border: 1px solid #2b323e;

    background: #11151c;
    color: #aeb6c4;
}

.action-btn:hover,
.secondary-action-btn:hover {
    transform: translateY(-1px);
}

.action-btn:hover {
    filter: brightness(1.08);
}

.secondary-action-btn:hover {
    background: #181d26;
    color: white;
}


/* SECONDARY BUTTON */

.secondary-btn {
    padding: 7px 13px;

    border: 1px solid #2b323e;
    border-radius: 7px;

    background: #11151c;
    color: #aeb6c4;

    cursor: pointer;
}

.secondary-btn:hover {
    background: #181d26;
    color: white;
}


/* OUTPUT */

pre {
    min-height: 220px;

    padding: 16px;

    overflow: auto;

    background: #090c11;
    color: #dce2ec;

    border: 1px solid #252b35;
    border-radius: 10px;

    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;

    white-space: pre-wrap;
    word-break: break-word;
}

.placeholder {
    color: #535d6d;
}


/* MESSAGE */

.message {
    min-height: 20px;

    text-align: center;

    color: #7f8999;

    font-size: 12px;
}


/* FOOTER */

footer {
    margin-top: 80px;

    padding: 30px;

    border-top: 1px solid #181c24;

    text-align: center;

    color: #555e6d;

    font-size: 12px;
}


/* MOBILE */

@media (max-width: 700px) {

    .base64-wrapper {
        width: calc(100% - 24px);
    }

    .tool-hero {
        padding-top: 55px;
    }

    .tool-hero h1 {
        letter-spacing: -2px;
    }

    .controls {
        flex-direction: column;
    }

    .action-btn,
    .secondary-action-btn {
        width: 100%;
    }
}
.tool-card {
    text-decoration: none;
    color: inherit;
}