:root {
    --bg-dark: #121212; /* Very deep dark theme */
    --card-dark: #282828;
    --accent-blue: #00AFFF; /* Electric Blue Accent */
    --text-light: #EFEFEF;
    --font-stack: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {

    color: var(--text-light);
    font-family: var(--font-stack);
    padding: 20px;
    margin: 0;
    min-height: 100vh;
}

header {
    text-align: center;
    padding-bottom: 30px;
}

h1 {
    color: var(--accent-blue);
    font-size: 2.5em;
    margin-bottom: 5px;
}

/* --- Layout --- */
.container {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Transparency & Frosted Glass Panel Style --- */
.panel {
    background-color: rgba(40, 40, 40, 0.6); /* Semi-transparent background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* The key for the modern, transparent "frosted glass" look */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* --- Input and Controls --- */
.file-input {
    width: 100%;
    margin-bottom: 20px;
    padding: 10px 0;
    cursor: pointer;
}

fieldset {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
}

legend {
    color: var(--accent-blue);
    font-weight: bold;
    padding: 0 10px;
}

.option-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

select, input[type="color"] {
    background-color: var(--card-dark);
    color: var(--text-light);
    border: 1px solid #555;
    padding: 8px;
    border-radius: 6px;
}

.size-options label {
    display: inline-block;
    margin-right: 15px;
    font-size: 0.9em;
}

/* --- Preview Area --- */
.image-container {
    margin-top: 15px;
    border: 3px dashed rgba(0, 175, 255, 0.4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.1);
}

#previewCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.instruction-text {
    text-align: center;
    color: #999;
    margin-top: 15px;
    font-style: italic;
}

/* --- Button --- */
.cta-button {
    width: 100%;
    padding: 18px;
    margin-top: 15px;
    background-color: var(--accent-blue);
    color: var(--bg-dark);
    font-size: 1.2em;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

.cta-button:hover:not(:disabled) {
    background-color: #33C5FF;
}

.cta-button:disabled {
    background-color: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.disclaimer {
    color: orange;
    text-align: center;
    margin-top: 10px;
    font-size: 0.85em;
}