:root {
    --bg-color: #ffffff;
    --border-color: #EAECF0;
    --accent-color: #F4343F;
    --text-color: #141416;
    --font-family: 'Albert Sans', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    background: #fff;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: auto;
}

h1 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

input {
    font-family: var(--font-family);
    font-size: 16px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    color: var(--text-color);
}

input:focus {
    border-color: var(--accent-color);
}

.preview-container {
    margin-top: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-family);
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
}

button:hover {
    background-color: #d82b35;
}

button:active {
    transform: scale(0.98);
}

footer {
    margin-top: 40px;
    font-size: 14px;
    color: var(--text-color);
    text-align: center;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}

footer a:hover {
    text-decoration: underline;
}
