/*:root {
    --primary: #007bff;
    --secondary: #6c757d;
    --text: #333;
    --text-dark: #222;
}*/

.cad-control-bar {
    position: absolute;
    z-index: 20;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    user-select: none;
}

.cad-control-bar--left  { left: 12px;  bottom: 12px; }
.cad-control-bar--right { right: 12px; bottom: 12px; }

.cad-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cad-divider-h {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 2px 0;
}

.cad-divider {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 2px;
}

.cad-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    -webkit-tap-highlight-color: transparent;
}

.cad-btn:hover  { background: var(--primary); color: var(--text-light); }
.cad-btn:active { transform: scale(0.92); }
.cad-btn.active { background: var(--primary); color: var(--text-light); }

.cad-btn-spacer {
    width: 30px;
    height: 30px;
}

/* Skeleton shimmer */
.cad-skeleton {
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.cad-skeleton.fade-out {
    opacity: 0;
    pointer-events: none;
}

.cad-skeleton__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cadPulse 1.8s ease-in-out infinite;
}

.cad-skeleton__icon svg {
    opacity: 0.5;
}

.cad-skeleton__text {
    color: var(--text-dark);
    font-size: 13px;
    font-family: sans-serif;
    letter-spacing: 0.04em;
}

.cad-progress-wrap {
    width: 180px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
}

.cad-progress-bar {
    height: 100%;
    width: 0;
    /* Added the missing closing parenthesis here */
    background: linear-gradient(90deg, var(--primary), var(--secondary)); 
    border-radius: 2px;
    transition: width 0.2s ease;
}

@keyframes cadPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}




