/* STYLE.CSS - Quantum Glass Architecture v2.2 */

:root {
    --bg-peach: #FDF6F0;
    --bg-lavender: #E6E6FA;
    --white-pure: #ffffff;
    --text-primary: #2d2d2d;
    --accent-lavender: #B19CD9;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.7);
    --dot-border: rgba(0, 0, 0, 0.1);
    --shadow-contactless: 0 30px 60px rgba(0, 0, 0, 0.05);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: linear-gradient(-45deg, var(--bg-peach), var(--bg-lavender), #ffffff, var(--bg-peach));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.workspace {
    position: relative;
    height: 100vh;
    width: 100vw;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--glass-border);
    box-shadow: var(--shadow-contactless);
}

/* Side Panel Layout */
.side-panel {
    position: fixed;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 85px;
    padding: 20px 0;
    border-radius: 40px;
    z-index: 100;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.side-panel.collapsed {
    left: -65px;
}

.panel-toggle {
    background: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-bottom: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.side-panel.collapsed .panel-toggle {
    transform: translateX(60px);
}

.tool-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.section-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    opacity: 0.4;
}

/* Tool Buttons & Colors */
.color-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--dot-border);
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.color-dot.active {
    border: 3px solid var(--accent-lavender);
    box-shadow: 0 0 15px var(--accent-lavender);
    transform: scale(1.1);
}

.black {
    background: #000000;
}

.red {
    background: #FF5F5F;
}

.green {
    background: #50C878;
}

.blue {
    background: #007BFF;
}

.mini-picker {
    width: 34px;
    height: 34px;
    border: 2px solid var(--dot-border);
    border-radius: 50%;
    cursor: pointer;
    background: white;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    color: var(--text-primary);
}

.icon-btn.active {
    background: var(--text-primary);
    color: white;
}

.icon-btn.danger:hover {
    background: #FF5F5F;
    color: white;
}

/* Top Toolbar */
.toolbar-wrapper {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.toolbar {
    padding: 8px 24px;
    border-radius: 40px;
    display: flex;
    align-items: center;
}

.slider-tool {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tool-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.6;
}

/* Branding (Top Right) */
.branding-header {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 100;
}

.branding-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.brand-text-small {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0.6;
    font-weight: 600;
}

.logo-circle-small {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.logo-circle-small img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* Global Canvas */
.canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

canvas {
    display: block;
    cursor: crosshair;
}

.divider-horiz {
    width: 40%;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 10px 0;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 120px;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-lavender);
    cursor: pointer;
}