/* Simple Drawing Pad Tool Specific Styles */

/* Gradient Text for Tool Title */
.gradient-text-drawing {
    background: linear-gradient(135deg, #9333ea, #ec4899, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Canvas Styling */
.canvas-container {
    width: 100%;
    height: 450px;
    position: relative;
}

#drawing-canvas {
    touch-action: none; /* Prevents scrolling on touch devices */
}

/* Loading Spinner */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #9333ea;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Range Slider Styling */
.slider {
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 5px;
    background: #e5e7eb;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #9333ea;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #9333ea;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #7e22ce;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #7e22ce;
}

/* Color Palette */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.color-swatch.selected {
    outline: 2px solid #9333ea;
    outline-offset: 2px;
}

/* Button Styling */
.tool-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.tool-btn.active {
    background-color: #9333ea;
    color: white;
}

.tool-btn.danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.tool-btn.danger:hover {
    background-color: #fecaca;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    color: white;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.action-btn:active {
    transform: translateY(0);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: #64748b;
    font-size: 0.925rem;
    line-height: 1.5;
}

/* Tip Cards */
.tip-card {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border-left: 4px solid #9333ea;
}

.tip-card:hover {
    background-color: #f3f4f6;
    transform: translateX(5px);
}

/* Idea Cards */
.idea-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.idea-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.idea-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.idea-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.idea-description {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Fullscreen Mode */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    padding: 1rem;
}

.fullscreen-controls {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    z-index: 1001;
}

.exit-fullscreen-btn {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Cursor Styles */
.brush-cursor {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%239333ea" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/></svg>') 12 12, auto;
}

.eraser-cursor {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ef4444" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20H7L3 16c-1.5-1.5-1.5-3.5 0-5l7-7c1.5-1.5 3.5-1.5 5 0l5 5"/></svg>') 12 12, auto;
}

.fill-cursor {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%230ea5e9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v20M2 12h20"/></svg>') 12 12, auto;
}

/* Custom Color Input */
input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .canvas-container {
        height: 350px;
    }
    
    .controls-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brush-tools {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-around;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .canvas-size-controls, .save-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .gradient-text-drawing {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .canvas-container {
        height: 300px;
    }
    
    .brush-settings {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brush-color, .brush-opacity, .brush-size {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .color-palette {
        justify-content: flex-start;
    }
    
    .color-swatch {
        width: 25px;
        height: 25px;
    }
} 