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

body {
    font-family: 'Inter', sans-serif;
    background-color: #FCFBF8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 300px;
    margin-bottom: 16px;
}

h1 {
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.subheadline {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
    max-width: 500px;
}

.upload-area {
    width: 300px;
    height: 300px;
    background-color: #e8e8e8;
    border: 3px dashed #ccc;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.upload-area:hover {
    background-color: #ddd;
    border-color: #999;
}

.upload-area.drag-over {
    background-color: #d0d0d0;
    border-color: #333;
}

.upload-area.has-image {
    border-style: solid;
    border-color: #999;
}

.upload-placeholder {
    font-size: 48px;
    font-weight: 300;
    color: #999;
    pointer-events: none;
}

#previewCanvas {
    display: none;
    max-width: 100%;
    max-height: 100%;
    border-radius: 17px;
}

#previewCanvas.active {
    display: block;
}

.upload-area.has-image {
    cursor: move;
    cursor: grab;
}

.upload-area.has-image.dragging {
    cursor: grabbing;
}

.zoom-control {
    display: none;
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
    align-items: center;
    gap: 12px;
}

.zoom-control.active {
    display: flex;
}

.zoom-label {
    font-size: 12px;
    color: #666;
    min-width: 50px;
}

.zoom-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
}

.zoom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    border: none;
}

.reset-position {
    font-size: 11px;
    padding: 4px 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.reset-position:hover {
    background: #eee;
    border-color: #999;
}

input[type="file"] {
    display: none;
}

.controls {
    width: 100%;
    max-width: 500px;
}

.control-group {
    margin-bottom: 25px;
}

.control-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
}

.frame-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.frame-option {
    position: relative;
}

.frame-option input[type="radio"] {
    display: none;
}

.frame-option label {
    display: block;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    background-color: #fff;
}

.frame-option label:hover {
    border-color: #ccc;
    transform: translateY(-2px);
}

.frame-option input[type="radio"]:checked + label {
    border-color: #333;
    transform: translateY(-2px);
}

.frame-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    display: block;
}


.color-options {
    display: flex;
    gap: 15px;
}

.color-option {
    position: relative;
    cursor: pointer;
}

.color-option input[type="radio"] {
    display: none;
}

.color-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 0 0 3px transparent;
}

.color-option input[type="radio"]:checked + label .color-circle {
    box-shadow: 0 0 0 3px #333;
}

.color-circle:hover {
    transform: scale(1.05);
}

.color-multi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    overflow: hidden;
}

.color-multi-segment {
    width: 100%;
    height: 100%;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

button {
    flex: 1;
    padding: 14px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.download-btn {
    background-color: #333;
    color: white;
}

.download-btn:hover {
    background-color: #000;
}

.download-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.clear-btn {
    background-color: #fff;
    color: #333;
    border: 2px solid #ddd;
}

.clear-btn:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.clear-btn:disabled {
    background-color: #f9f9f9;
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
}

.icon {
    width: 16px;
    height: 16px;
}

.privacy-notice {
    font-size: 14px;
    color: #bbbbbb;
    text-align: center;
    margin-top: 40px;
    max-width: 500px;
    line-height: 1.5;
}
