/* CSS */


/* =================================================================================
   Universal CSS Helper Classes for CWP Snippets
   =================================================================================
   These classes are designed for quick, reusable layout and UI tweaks in the admin area.
   Add them to any element to control visibility or styling across devices.
================================================================================= */

/* --- CWP Snippets Global Admin CSS for Floating AJAX Response Notifications --- */

.cwp-floating-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-weight: 500;
    font-size: 14px;
    animation: cwp-slideIn 0.3s ease-out;
    max-width: 300px;
}

@keyframes cwp-slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* -----------------------------------------------------------------------------
   Responsive Utility Classes
   -----------------------------------------------------------------------------
   Use these to show/hide elements on mobile or desktop devices.
   - .cwp-hide-mobile: Hides element on screens <= 767px (mobile)
   - .cwp-show-desktop: Shows element only on desktop (> 767px)
   - .cwp-show-mobile: Shows element only on mobile (<= 767px)
----------------------------------------------------------------------------- */
.cwp-hide-mobile {
  display: block !important;
}
@media (max-width: 767px) {
  .cwp-hide-mobile {
    display: none !important;
  }
}

.cwp-show-desktop {
  display: block !important;
}
@media (max-width: 767px) {
  .cwp-show-desktop {
    display: none !important;
  }
}

.cwp-show-mobile {
  display: none !important;
}
@media (max-width: 767px) {
  .cwp-show-mobile {
    display: block !important;
  }
}

/* -----------------------------------------------------------------------------
   Universal Transition Utility Classes
   -----------------------------------------------------------------------------
   Use .cwpAnimate to add a smooth transition to all properties.
   Add to any element to enable smooth state changes (hover, JS, etc.)
----------------------------------------------------------------------------- */
.cwpAnimate {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cwpAnimate-fast {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.cwpAnimate-slow {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------------------------------------------------------------
   Universal Spinner Overlay & Pinwheel Spinner
   ----------------------------------------------------------------------------- */
.cwp-spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.18);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: opacity 0.3s;
}
.cwp-spinner-overlay.cwp-spinner-hidden {
  opacity: 0;
  pointer-events: none;
}
.cwp-spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #e0e0e0;
  border-top: 5px solid #007cba;
  border-radius: 50%;
  animation: cwp-spin 0.8s linear infinite;
  background: transparent;
}
@keyframes cwp-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
