/* ==========================================================================
   Kidsoo Theme - Rough.js Hand-Drawn Decorations (100% Reversible)
   Colores Pastel Infantiles & Amigables
   ========================================================================== */

/* Cuando el modo dibujo está ACTIVO:
   Oculta los bordes rectos y sombras CSS originales para que el trazo pastel
   sea el ÚNICO borde visible (cero líneas dobles / cero encimado) */
body.ck-rough-active .ck-rough-target {
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    position: relative !important;
}

/* El SVG se posiciona exactamente sobre el elemento con pointer-events none */
.ck-rough-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    overflow: visible !important;
    z-index: 5 !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Micro-efecto tierno al pasar el cursor sobre botones con trazo pastel */
.ck-rough-btn-target:hover .ck-rough-overlay {
    transform: scale(1.035) rotate(-0.5deg);
    filter: brightness(1.1);
}

/* ==========================================================================
   FLOATING TOGGLE SWITCH (Pastel Cute & Reversible)
   ========================================================================== */
#ck-rough-toggle-widget {
    position: fixed !important;
    bottom: 22px !important;
    left: 22px !important;
    z-index: 99999 !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
    user-select: none !important;
}

.ck-rough-toggle-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(244, 114, 182, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border: 2px solid #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.ck-rough-toggle-pill.is-active {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%) !important;
    color: #ffffff !important;
    border-color: #fbcfe8 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.ck-rough-toggle-pill.is-inactive {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    opacity: 0.9 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

.ck-rough-toggle-pill:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.45) !important;
    opacity: 1 !important;
}

.ck-rough-toggle-dot {
    width: 11px !important;
    height: 11px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    box-shadow: 0 0 10px currentColor !important;
}

.ck-rough-toggle-pill.is-active .ck-rough-toggle-dot {
    background: #fef08a !important;
    color: #fef08a !important;
    border: 1.5px solid #ffffff !important;
}

.ck-rough-toggle-pill.is-inactive .ck-rough-toggle-dot {
    background: #cbd5e1 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
}

@media (max-width: 767px) {
    #ck-rough-toggle-widget {
        bottom: 16px !important;
        left: 14px !important;
    }
    .ck-rough-toggle-pill {
        padding: 6px 12px !important;
        font-size: 11.5px !important;
    }
}
