/* Loading overlay container */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}

/* Spinner wrapper */
.spinner-wrapper {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Spinner animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25em;
    animation: spinner 0.75s linear infinite;
}

/* Progress message styling */
.progress-message {
    margin-top: 15px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    animation: fadeIn 0.3s ease-in;
}

/* Loading animation for the text */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner animation */
@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Custom spinner color */
.spinner-border.text-primary {
    border-color: #3b2afb;
    border-right-color: transparent;
}

/* Make sure the container has relative positioning */
.image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

/* Messages styling */
.messages {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Message states */
.messages.error {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.messages.success {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}


.icon-shape-rectangle {
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-shape-rectangle.active {
    color: #ff0000;
    transform: scale(1.1);
}

/* Path number labels */
canvas {
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
}