/* ========================= */
/* Midnight Purple Theme     */
/* ========================= */

:root {
    --primary: #ffffff;
    --secondary: #c7b3ff; /* light purple text */
    --gray: #7a7a85;

    --purple-bg: #0d001a; /* deep midnight purple */
    --purple-accent: #5b2bff; /* cobalt-like accent */
    --purple-accent-hover: #6a3dff;
    --purple-accent-press: #4a22d9;

    --input-border: #3a2a66;
    --input-border-focus: #5b2bff;

    --button-bg: #1a0f33;
    --button-hover: #241144;
    --button-press: #2d1655;

    --padding: 12px;
    --border-radius: 11px;
}

/* ========================= */
/* Page Layout               */
/* ========================= */

body {
    margin: 0;
    background: var(--purple-bg);
    color: var(--secondary);
    font-family: "IBM Plex Mono", monospace;
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

/* Center Column */
.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 640px;
    padding: var(--padding);
}

/* ========================= */
/* Mascot + Subtitle         */
/* ========================= */

.mascot {
    width: 110px;
    opacity: 0.95;
    user-select: none;
}

.subtitle {
    font-size: 14px;
    color: var(--gray);
    margin-top: -6px;
}

/* ========================= */
/* Input Container           */
/* ========================= */

#input-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;

    background: transparent;
    border-radius: var(--border-radius);

    box-shadow: 0 0 0 1.5px var(--input-border) inset;
    outline: 1.5px solid var(--input-border);
    outline-offset: -1.5px;

    padding: 10px;
}

/* Focused State */
#input-container:focus-within {
    outline: 2px solid var(--input-border-focus);
    outline-offset: -1px;
    box-shadow: none;
}

/* Input Icon Placeholder */
.input-icon {
    width: 20px;
    height: 20px;
    opacity: 0.75;

    /* Your custom icon here */
    background: url("/bwobble.png") center/contain no-repeat;

}

/* Input Field */
#urlInput {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--secondary);
    font-size: 15px;
    font-weight: 500;
    outline: none;
}

#urlInput::placeholder {
    color: var(--gray);
}

/* ========================= */
/* Buttons                   */
/* ========================= */

.button,
button,
select {
    background: var(--button-bg);
    color: var(--secondary);
    border: none;
    border-radius: var(--border-radius);
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
    transition: background 0.15s ease;
}

.button:hover,
button:hover,
select:hover {
    background: var(--button-hover);
}

.button:active,
button:active,
select:active {
    background: var(--button-press);
}

/* Paste Button */
#pasteBtn {
    white-space: nowrap;
}

/* Format Dropdown */
#formatSelect {
    width: 100%;
}

/* Download Button */
#downloadBtn {
    width: 100%;
}

/* ========================= */
/* Status Text               */
/* ========================= */

#status {
    min-height: 20px;
    font-size: 13px;
    color: var(--gray);
}

/* ========================= */
/* Footer                    */
/* ========================= */

.footer {
    margin-top: 10px;
    font-size: 12px;
    color: var(--gray);
    text-align: center;
}

.footer a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
