:root {
    --bg-primary: #f2f9f7;
    --bg-secondary: #ffffff;
    --text-primary: #2a3d46;
    --text-secondary: #5e7380;
    --accent-color: #3dd5ab;
    --accent-hover: #2bc398;
    --border-color: #e6f0ed;
    --shadow-subtle: 0 4px 12px rgba(61, 213, 171, 0.1);
    --shadow-medium: 0 8px 24px rgba(61, 213, 171, 0.15);
}

/* Theme variations */
.theme-coral {
    --bg-primary: #fef6f5;
    --bg-secondary: #ffffff;
    --text-primary: #43292a;
    --text-secondary: #826668;
    --accent-color: #ff8176;
    --accent-hover: #ff6a5e;
    --border-color: #f5e6e6;
    --shadow-subtle: 0 4px 12px rgba(255, 129, 118, 0.1);
    --shadow-medium: 0 8px 24px rgba(255, 129, 118, 0.15);
}

.theme-lavender {
    --bg-primary: #f7f5fe;
    --bg-secondary: #ffffff;
    --text-primary: #332a43;
    --text-secondary: #6e6682;
    --accent-color: #9d76ff;
    --accent-hover: #8e5eff;
    --border-color: #e6e3f5;
    --shadow-subtle: 0 4px 12px rgba(157, 118, 255, 0.1);
    --shadow-medium: 0 8px 24px rgba(157, 118, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.theme-toggle {
    display: flex;
    gap: 0.25rem;
    background-color: var(--bg-secondary);
    padding: 0.2rem;
    border-radius: 6px;
    box-shadow: var(--shadow-subtle);
}

.theme-toggle button {
    background: none;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.theme-toggle button.active {
    background-color: var(--accent-color);
    color: white;
}

main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.preview-section, .controls-section, .code-section {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-subtle);
}

.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background-color: var(--bg-primary);
    border-radius: 6px;
    padding: 1rem;
}

.preview-box {
    width: 150px;
    height: 150px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.preview-box span {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
}

h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.preset-btn {
    padding: 0.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.preset-btn.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.control-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slider {
    flex: 1;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.slider-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 2.5rem;
    text-align: right;
}

.color-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
    box-shadow: 0 0 0 1px var(--border-color);
}

input[type="text"]#color-text {
    flex: 1;
    padding: 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.toggle {
    position: relative;
    appearance: none;
    width: 36px;
    height: 20px;
    background-color: var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle:checked {
    background-color: var(--accent-color);
}

.toggle:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toggle:checked:before {
    transform: translateX(16px);
}

.multi-shadow-container {
    margin-top: 1rem;
}

.shadow-layers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.shadow-layer {
    display: flex;
    align-items: center;
    padding: 0.6rem;
    background-color: var(--bg-primary);
    border-radius: 6px;
    gap: 0.5rem;
}

.shadow-layer-info {
    flex: 1;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Space Grotesk', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shadow-layer-actions {
    display: flex;
    gap: 0.25rem;
}

.shadow-layer-actions button {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-size: 0.7rem;
}

.shadow-layer-actions button:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.accent-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accent-button:hover {
    background-color: var(--accent-hover);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.icon-button {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-button:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.code-output {
    background-color: var(--bg-primary);
    padding: 0.75rem;
    border-radius: 6px;
    overflow-x: auto;
}

pre {
    margin: 0;
}

code {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.copy-notification {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

footer {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.illustration img {
    max-width: 100px;
    height: auto;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

footer i.fa-heart {
    color: var(--accent-color);
}

@media (min-width: 768px) {
    main {
        grid-template-columns: 6fr 6fr;
        grid-template-areas:
            "preview controls"
            "code controls";
    }
    
    .preview-section {
        grid-area: preview;
    }
    
    .controls-section {
        grid-area: controls;
    }
    
    .code-section {
        grid-area: code;
    }
}

@media (max-width: 767px) {
    .app-container {
        padding: 0.5rem;
    }
    
    header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .preview-section, .controls-section, .code-section {
        padding: 0.75rem;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Add this to your styles.css file */

/* Dark theme */
.theme-dark {
    --bg-primary: #1a1d21;
    --bg-secondary: #272b30;
    --text-primary: #f2f2f2;
    --text-secondary: #b0b8c1;
    --accent-color: #3dd5ab; /* Keeping the accent color */
    --accent-hover: #2bc398;
    --border-color: #383c42;
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Update the theme-toggle styles */
.theme-toggle {
    display: flex;
    gap: 0.25rem;
    background-color: var(--bg-secondary);
    padding: 0.2rem;
    border-radius: 6px;
    box-shadow: var(--shadow-subtle);
}

/* Dark mode toggle switch */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    cursor: pointer;
}

.dark-mode-toggle .fa-moon {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

.dark-mode-toggle .fa-sun {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

.dark-mode-toggle.active .fa-moon,
.dark-mode-toggle.active .fa-sun {
    color: var(--accent-color);
}

/* Input styling updates for dark mode */
.theme-dark input[type="text"]#color-text {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.theme-dark .preview-container {
    background-color: #141619;
}

.theme-dark .code-output,
.theme-dark .shadow-layer,
.theme-dark .preset-btn {
    background-color: #141619;
}

.theme-dark input[type="color"]::-webkit-color-swatch {
    box-shadow: 0 0 0 1px var(--border-color);
}

/* For the slider colors in dark mode */
.theme-dark .slider {
    background: #383c42;
}

.theme-dark .slider::-webkit-slider-thumb {
    background: var(--accent-color);
}

/* Ensure contrast for code in dark mode */
.theme-dark code {
    color: var(--text-primary);
}