* { 
    font-family: 'Tajawal', sans-serif; 
}

body { 
    background-color: #f1f5f9; 
    overflow-x: hidden;
}

.canvas-container { 
    margin: 0 auto !important; 
}

#image-overlay-wrapper { 
    position: relative; 
    width: 100%; 
    max-width: 900px; 
    aspect-ratio: 16/9; 
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); 
}

img { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

canvas { 
    position: absolute; 
    top: 0; 
    left: 0; 
    z-index: 10; 
    cursor: default;
}

.btn-tool { 
    transition: all 0.3s ease; 
    cursor: pointer;
}

.btn-tool:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.success-toast { 
    animation: slideIn 0.4s ease-out; 
}

.animate-in {
    animation: popIn 0.3s ease-out;
}

@keyframes slideIn { 
    from { 
        transform: translateX(400px); 
        opacity: 0; 
    } 
    to { 
        transform: translateX(0); 
        opacity: 1; 
    } 
}

@keyframes popIn {
    from {
        transform: scale(0.95) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}