/* Wallpaper Generator CSS */
.wallpaper-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    min-height: calc(100vh - 73px); /* Minus navbar approx */
    margin-top: 73px;
    background: var(--background);
}

.wallpaper-sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 73px);
    overflow-y: auto;
}

.wallpaper-sidebar::-webkit-scrollbar {
    width: 6px;
}
.wallpaper-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--surface-light);
}

.sidebar-tab {
    flex: 1;
    text-align: center;
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.sidebar-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.sidebar-content {
    padding: 24px;
    flex: 1;
}

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

.control-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.color-picker-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

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

.color-swatch.active {
    border-color: var(--white);
    box-shadow: 0 0 0 2px var(--surface);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: var(--surface-light);
    border-radius: 2px;
    outline: none;
}

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

.select-control {
    width: 100%;
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
}

.wallpaper-workspace {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: auto;
    position: relative;
    background: radial-gradient(circle at center, var(--surface) 0%, var(--background) 100%);
}

.workspace-actions {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
}

.canvas-container {
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    border: 8px solid #000; /* Simulated phone bezel */
    transition: all 0.3s ease;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 992px) {
    .wallpaper-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .wallpaper-sidebar {
        height: auto;
        max-height: 45vh;
    }
    
    .wallpaper-workspace {
        padding: 24px 16px;
    }
    
    .workspace-actions {
        top: 12px;
        right: 12px;
    }
    
    .canvas-container {
        transform: scale(0.85);
        transform-origin: top center;
    }
}
