/* BMP Counter Pro WordPress Plugin Styles */
.bmp-counter-pro-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bmp-counter-pro-wrapper.dark {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #f9fafb;
}

/* Reset and base styles */
.bmp-counter-pro-wrapper * {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  box-sizing: border-box;
}

.bmp-counter-pro-wrapper input,
.bmp-counter-pro-wrapper textarea,
.bmp-counter-pro-wrapper select {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

/* Animations */
.bmp-pulse-beat {
  animation: bmpPulseBeat 0.3s ease-out;
}

@keyframes bmpPulseBeat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  }
  100% {
    transform: scale(1);
  }
}

.bmp-tap-ripple {
  position: relative;
  overflow: hidden;
}

.bmp-tap-ripple::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.bmp-tap-ripple.active::before {
  width: 300px;
  height: 300px;
}

/* Glass morphism effect */
.bmp-glass {
  backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(209, 213, 219, 0.3);
}

.bmp-counter-pro-wrapper.dark .bmp-glass {
  background-color: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(75, 85, 99, 0.3);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .bmp-mobile-tap-area {
    min-height: 80px;
    font-size: 1.25rem;
  }

  .bmp-counter-pro-wrapper .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Loading spinner */
.bmp-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: bmpSpin 1s linear infinite;
}

@keyframes bmpSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Toast notifications */
.bmp-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 14px;
  max-width: 90%;
  text-align: center;
}

.bmp-toast.show {
  opacity: 1;
}

/* Button styles */
.bmp-counter-pro-wrapper button {
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.bmp-counter-pro-wrapper button:hover {
  transform: translateY(-1px);
}

.bmp-counter-pro-wrapper button:active {
  transform: translateY(0);
}

.bmp-counter-pro-wrapper button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Form elements */
.bmp-counter-pro-wrapper input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
}

.bmp-counter-pro-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
}

.bmp-counter-pro-wrapper input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: none;
}

/* Responsive grid */
.bmp-counter-pro-wrapper .grid {
  display: grid;
}

.bmp-counter-pro-wrapper .grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bmp-counter-pro-wrapper .grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .bmp-counter-pro-wrapper .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bmp-counter-pro-wrapper .md\\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bmp-counter-pro-wrapper .md\\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

@media (min-width: 1024px) {
  .bmp-counter-pro-wrapper .lg\\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Utility classes */
.bmp-counter-pro-wrapper .hidden {
  display: none;
}

.bmp-counter-pro-wrapper .flex {
  display: flex;
}

.bmp-counter-pro-wrapper .items-center {
  align-items: center;
}

.bmp-counter-pro-wrapper .justify-center {
  justify-content: center;
}

.bmp-counter-pro-wrapper .justify-between {
  justify-content: space-between;
}

.bmp-counter-pro-wrapper .space-x-2 > * + * {
  margin-left: 0.5rem;
}

.bmp-counter-pro-wrapper .space-x-4 > * + * {
  margin-left: 1rem;
}

.bmp-counter-pro-wrapper .space-y-2 > * + * {
  margin-top: 0.5rem;
}

.bmp-counter-pro-wrapper .space-y-4 > * + * {
  margin-top: 1rem;
}

.bmp-counter-pro-wrapper .space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* Text utilities */
.bmp-counter-pro-wrapper .text-center {
  text-align: center;
}

.bmp-counter-pro-wrapper .text-xs {
  font-size: 0.75rem;
}

.bmp-counter-pro-wrapper .text-sm {
  font-size: 0.875rem;
}

.bmp-counter-pro-wrapper .text-lg {
  font-size: 1.125rem;
}

.bmp-counter-pro-wrapper .text-xl {
  font-size: 1.25rem;
}

.bmp-counter-pro-wrapper .text-2xl {
  font-size: 1.5rem;
}

.bmp-counter-pro-wrapper .text-6xl {
  font-size: 3.75rem;
}

@media (min-width: 768px) {
  .bmp-counter-pro-wrapper .md\\:text-8xl {
    font-size: 6rem;
  }
}

.bmp-counter-pro-wrapper .font-bold {
  font-weight: 700;
}

.bmp-counter-pro-wrapper .font-medium {
  font-weight: 500;
}

/* Color utilities */
.bmp-counter-pro-wrapper .text-white {
  color: #ffffff;
}

.bmp-counter-pro-wrapper .text-gray-600 {
  color: #4b5563;
}

.bmp-counter-pro-wrapper .text-gray-800 {
  color: #1f2937;
}

.bmp-counter-pro-wrapper .text-blue-600 {
  color: #2563eb;
}

.bmp-counter-pro-wrapper .text-purple-600 {
  color: #9333ea;
}

.bmp-counter-pro-wrapper.dark .text-white {
  color: #f9fafb;
}

.bmp-counter-pro-wrapper.dark .text-gray-400 {
  color: #9ca3af;
}

.bmp-counter-pro-wrapper.dark .text-blue-400 {
  color: #60a5fa;
}

.bmp-counter-pro-wrapper.dark .text-purple-400 {
  color: #c084fc;
}

/* Background utilities */
.bmp-counter-pro-wrapper .bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bmp-counter-pro-wrapper .from-blue-500 {
  --tw-gradient-from: #3b82f6;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0));
}

.bmp-counter-pro-wrapper .to-purple-600 {
  --tw-gradient-to: #9333ea;
}

/* Spacing utilities */
.bmp-counter-pro-wrapper .p-2 {
  padding: 0.5rem;
}

.bmp-counter-pro-wrapper .p-4 {
  padding: 1rem;
}

.bmp-counter-pro-wrapper .p-6 {
  padding: 1.5rem;
}

.bmp-counter-pro-wrapper .p-8 {
  padding: 2rem;
}

.bmp-counter-pro-wrapper .px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.bmp-counter-pro-wrapper .px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.bmp-counter-pro-wrapper .py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.bmp-counter-pro-wrapper .py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.bmp-counter-pro-wrapper .py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.bmp-counter-pro-wrapper .py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.bmp-counter-pro-wrapper .py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.bmp-counter-pro-wrapper .m-4 {
  margin: 1rem;
}

.bmp-counter-pro-wrapper .mb-2 {
  margin-bottom: 0.5rem;
}

.bmp-counter-pro-wrapper .mb-4 {
  margin-bottom: 1rem;
}

.bmp-counter-pro-wrapper .mt-2 {
  margin-top: 0.5rem;
}

.bmp-counter-pro-wrapper .mt-3 {
  margin-top: 0.75rem;
}

.bmp-counter-pro-wrapper .mt-4 {
  margin-top: 1rem;
}

.bmp-counter-pro-wrapper .mt-6 {
  margin-top: 1.5rem;
}

.bmp-counter-pro-wrapper .mr-2 {
  margin-right: 0.5rem;
}

.bmp-counter-pro-wrapper .ml-1 {
  margin-left: 0.25rem;
}

/* Border utilities */
.bmp-counter-pro-wrapper .rounded {
  border-radius: 0.25rem;
}

.bmp-counter-pro-wrapper .rounded-lg {
  border-radius: 0.5rem;
}

.bmp-counter-pro-wrapper .rounded-xl {
  border-radius: 0.75rem;
}

.bmp-counter-pro-wrapper .rounded-2xl {
  border-radius: 1rem;
}

.bmp-counter-pro-wrapper .rounded-3xl {
  border-radius: 1.5rem;
}

.bmp-counter-pro-wrapper .rounded-full {
  border-radius: 9999px;
}

.bmp-counter-pro-wrapper .border {
  border-width: 1px;
}

.bmp-counter-pro-wrapper .border-2 {
  border-width: 2px;
}

.bmp-counter-pro-wrapper .border-4 {
  border-width: 4px;
}

.bmp-counter-pro-wrapper .border-b {
  border-bottom-width: 1px;
}

.bmp-counter-pro-wrapper .border-dashed {
  border-style: dashed;
}

/* Shadow utilities */
.bmp-counter-pro-wrapper .shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Position utilities */
.bmp-counter-pro-wrapper .fixed {
  position: fixed;
}

.bmp-counter-pro-wrapper .absolute {
  position: absolute;
}

.bmp-counter-pro-wrapper .relative {
  position: relative;
}

.bmp-counter-pro-wrapper .sticky {
  position: sticky;
}

.bmp-counter-pro-wrapper .inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.bmp-counter-pro-wrapper .top-0 {
  top: 0;
}

.bmp-counter-pro-wrapper .z-40 {
  z-index: 40;
}

.bmp-counter-pro-wrapper .z-50 {
  z-index: 50;
}

/* Width and height utilities */
.bmp-counter-pro-wrapper .w-full {
  width: 100%;
}

.bmp-counter-pro-wrapper .w-10 {
  width: 2.5rem;
}

.bmp-counter-pro-wrapper .w-16 {
  width: 4rem;
}

.bmp-counter-pro-wrapper .w-20 {
  width: 5rem;
}

.bmp-counter-pro-wrapper .w-32 {
  width: 8rem;
}

.bmp-counter-pro-wrapper .h-10 {
  height: 2.5rem;
}

.bmp-counter-pro-wrapper .h-20 {
  height: 5rem;
}

.bmp-counter-pro-wrapper .h-32 {
  height: 8rem;
}

@media (min-width: 768px) {
  .bmp-counter-pro-wrapper .md\\:h-40 {
    height: 10rem;
  }
}

.bmp-counter-pro-wrapper .h-64 {
  height: 16rem;
}

.bmp-counter-pro-wrapper .max-w-md {
  max-width: 28rem;
}

.bmp-counter-pro-wrapper .max-h-64 {
  max-height: 16rem;
}

.bmp-counter-pro-wrapper .max-h-\\[90vh\\] {
  max-height: 90vh;
}

/* Overflow utilities */
.bmp-counter-pro-wrapper .overflow-hidden {
  overflow: hidden;
}

.bmp-counter-pro-wrapper .overflow-y-auto {
  overflow-y: auto;
}

/* Transform utilities */
.bmp-counter-pro-wrapper .transform {
  transform: var(--tw-transform);
}

.bmp-counter-pro-wrapper .hover\\:scale-105:hover {
  transform: scale(1.05);
}

.bmp-counter-pro-wrapper .active\\:scale-95:active {
  transform: scale(0.95);
}

/* Transition utilities */
.bmp-counter-pro-wrapper .transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.bmp-counter-pro-wrapper .transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.bmp-counter-pro-wrapper .duration-200 {
  transition-duration: 200ms;
}

.bmp-counter-pro-wrapper .duration-300 {
  transition-duration: 300ms;
}

/* Container */
.bmp-counter-pro-wrapper .container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .bmp-counter-pro-wrapper .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .bmp-counter-pro-wrapper .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .bmp-counter-pro-wrapper .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .bmp-counter-pro-wrapper .container {
    max-width: 1280px;
  }
}

/* Custom scrollbar */
.bmp-counter-pro-wrapper ::-webkit-scrollbar {
  width: 8px;
}

.bmp-counter-pro-wrapper ::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.bmp-counter-pro-wrapper ::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.bmp-counter-pro-wrapper ::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.bmp-counter-pro-wrapper.dark ::-webkit-scrollbar-track {
  background: #374151;
}

.bmp-counter-pro-wrapper.dark ::-webkit-scrollbar-thumb {
  background: #6b7280;
}
