:root {
    --bg-main: #fcfbf8;
    --frame-bg: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #c2e9fb 100%);
    --shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: #1d1d1f;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    width: 100%;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

header p {
    font-size: 1.1rem;
    color: #86868b;
    margin-bottom: 3rem;
}

.controls {
    margin-bottom: 3rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 1rem 2rem;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.gradient-presets {
    display: flex;
    gap: 8px;
    align-items: center;
}

.preset {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}

.preset:hover {
    transform: scale(1.1);
}

.preset.active {
    box-shadow: 0 0 0 2px #0071e3;
}

.upload-btn {
    padding: 12px 24px;
    border-radius: 980px;
    background-color: #0071e3;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-btn:hover {
    background-color: #0077ed;
    transform: scale(1.02);
}

#download-btn {
    padding: 12px 24px;
    border-radius: 980px;
    background-color: #1d1d1f;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#download-btn:disabled {
    background-color: #f5f5f7;
    color: #86868b;
    cursor: not-allowed;
}

#download-btn:not(:disabled):hover {
    background-color: #000;
    transform: scale(1.02);
}

#capture-area {
    padding: 20px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 0 1px rgba(0,0,0,0.1), 0 10px 40px rgba(0,0,0,0.05);
}

.frame {
    background: var(--frame-bg);
    padding: 80px 100px;
    border-radius: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 500px;
    min-height: 300px;
    transition: all 0.3s ease;
}

.image-container {
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    line-height: 0;
}

#preview {
    max-width: 100%;
    height: auto;
}

#placeholder {
    padding: 80px;
    font-weight: 500;
    color: rgba(0,0,0,0.3);
}

