body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    /* Light gradient from a very light blue to white */
    background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
    min-height: 100vh;
}

.input-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.color-palette {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
}

.color-box {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 10px;
    color: white;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.content-divider {
    height: 1px;
    background-color: var(--border);
    margin: 2rem 0;
    width: 100%;
}

.image-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

#imagePreview {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius);
    object-fit: contain;
}

.bottom-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.button {
    background-color: black;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

.button-secondary {
    background-color: black;
}

.button-secondary:hover {
    background-color: #333;
}

#clearImage {
    display: none; /* Hidden by default */
}

.color-strip-container {
    margin: 2rem 0;
}

.color-strip {
    height: 40px;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
}

.color-strip-segment {
    height: 100%;
    flex-grow: 1;
}

.select-wrapper {
    position: relative;
}

select {
    appearance: none;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    width: 100%;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
}

select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

select option {
    background: var(--background);
    color: var(--foreground);
    padding: 0.5rem;
}

.input-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.input-row .input-group {
    flex: 1;
    width: 50%;
    min-width: 0;
}

.input-row input[type="text"],
.input-row input[type="number"],
.input-row select {
    width: 100%;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

label {
    display: inline-block;
    margin-bottom: 0;
    font-weight: 600;
    color: #333;
    min-width: 120px;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

input[type="file"] {
    padding: 0.3rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #f8f9fa;
}

input[type="file"]::-webkit-file-upload-button {
    background-color: #000000;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #000000;
}

select {
    cursor: pointer;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    appearance: none;
}

.input-group {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.input-group input[type="file"] {
    flex: 1;
    width: 100%;
    padding: 0.3rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group select {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--background);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--background);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    color: #666;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #333;
}

.toast {
    visibility: hidden;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 16px;
    border-radius: 4px;
    z-index: 1000;
}

.toast.show {
    visibility: visible;
    animation: fadeIn 0.5s, fadeOut 0.5s 2s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fadeOut {
    from {opacity: 1;}
    to {opacity: 0;}
}

.color-palette .color-block {
    cursor: pointer;
}

.description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: #666;
    line-height: 1.5;
}

.header-stripe {
    background-color: #000;
    width: 100%;
    padding: 2rem 0;
    margin: 0;
}

.title {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    margin: 0;
    color: white;
    text-align: center;
}

.loading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Hex Code Container */
.hex-code-container {
    margin: 2rem auto;
    max-width: 600px;
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: none; /* Initially hidden */
}

.hex-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.hex-code-list {
    font-family: monospace;
    line-height: 1.5;
}

.hex-code {
    padding: 0.5rem;
    margin: 0.25rem 0;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hex-code:hover {
    background-color: #eee;
}

.adjustment-toast {
    display: none;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.adjustment-toast.show {
    display: block;
} 