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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #1db954;
    font-weight: 900;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.spotify-icon {
    width: 30px;
    height: 30px;
    fill: #1db954;
}

.canvas-container {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#coverCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    background-color: #f0f0f0;
}

.controls {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.control-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.control-icon {
    margin-right: 8px;
    color: #1db954;
    width: 16px;
    text-align: center;
}

label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

input, select, button {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.2s ease;
}

input[type="file"] {
    padding: 8px;
}

input[type="color"] {
    height: 40px;
    cursor: pointer;
}

input[type="range"] {
    padding: 0;
}

button {
    background-color: #1db954;
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background-color: #1aa34a;
}

.download-btn {
    background-color: #1db954;
    padding: 12px;
    font-size: 16px;
    margin-top: 20px;
}

.footer {
    text-align: center;
    margin-top: auto;
    padding: 20px 0;
    color: #777;
    font-size: 14px;
}

.range-value {
    display: inline-block;
    margin-left: 10px;
    font-weight: 700;
    color: #1db954;
}

.toggle-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1db954;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.border-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.border-option {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.border-option:hover {
    background-color: #f0f0f0;
}

.border-option.selected {
    background-color: #1db954;
    color: white;
    border-color: #1db954;
}

.border-width-container {
    margin-top: 10px;
}

.position-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.position-option {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.position-option:hover {
    background-color: #f0f0f0;
}

.position-option.selected {
    background-color: #1db954;
    color: white;
    border-color: #1db954;
}

.position-icon {
    font-size: 18px;
}

.effects-container {
    margin-top: 10px;
}

.effect-control {
    margin-bottom: 10px;
}

.color-presets {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.color-preset {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

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

.color-preset.selected {
    border-color: #333;
}

.spotify-green { background-color: #1db954; }
.spotify-black { background-color: #191414; }
.spotify-white { background-color: #ffffff; border: 1px solid #ddd; }
.spotify-gray { background-color: #b3b3b3; }
.spotify-blue { background-color: #2d46b9; }
.spotify-purple { background-color: #7b3ff2; }
