/* filepath: c:\Users\filip\Documents\GitHub\aitp-canvas\style.css */
/* Dark theme canvas paint application */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d42 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e8e8e8;
    padding: 20px;
}

.controls {
    background: rgba(45, 45, 66, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

button {
    background: linear-gradient(145deg, #3a3a52, #2d2d42);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e8e8e8;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button:hover {
    background: linear-gradient(145deg, #4a4a62, #3d3d52);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

button:active {
    transform: translateY(0px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#paintCanvas {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: crosshair;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.3s ease;
}

#paintCanvas:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

#colorPicker {
    width: 50px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#colorPicker::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 6px;
}

#colorPicker::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
    margin: 0;
}

#colorPicker::-moz-color-swatch {
    border: none;
    border-radius: 6px;
}

#colorPicker:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.brush-size-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

label {
    color: #b8b8c8;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

#brushSizeValue {
    color: #fff;
    font-weight: bold;
}

#brushSize {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    background: #2d2d42;
    outline: none;
    cursor: pointer;
}

#brushSize::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #6c6c8a, #5a5a78);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

#brushSize::-webkit-slider-thumb:hover {
    background: linear-gradient(145deg, #7c7c9a, #6a6a88);
    transform: scale(1.2);
}

#brushSize::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #6c6c8a, #5a5a78);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .controls {
        flex-wrap: wrap;
        padding: 15px 20px;
        gap: 10px;
    }
    
    button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    #paintCanvas {
        max-width: 90vw;
        max-height: 60vh;
    }
}