@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  .gradient-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  }

  .gradient-secondary {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
  }

  .gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  }

  .gradient-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.9) 100%);
  }

  .gradient-header {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  }

  .tab-active {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    border-color: transparent;
  }

  .tab-inactive {
    background: linear-gradient(135deg, #f2f2f2 0%, #f3f4f6 100%);
    color: #4b5563;
  }

  .shadow-card {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
      0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }

  .toggle-bg::after {
    content: '';
    @apply absolute top-0.5 left-0.5 bg-white border border-gray-300 rounded-full h-5 w-5 transition shadow-sm;
  }

  input:checked+.toggle-bg::after {
    transform: translateX(100%);
    @apply border-white;
  }

    .ssnfw-admin select {
      @apply border border-gray-300 rounded-lg px-3 py-2 focus:ring-primary-500 focus:border-primary-500 !important;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
    }

    .ssnfw-admin input[type="text"], .ssnfw-admin input[type="email"]{
      @apply border border-gray-300 rounded-lg px-3 py-2 focus:ring-primary-500 focus:border-primary-500 !important;
    }
    .ssnfw-admin input[type="number"]{
      @apply border border-gray-300 rounded-lg px-3 py-2 focus:ring-primary-500 focus:border-primary-500 !important;
    }

    .ssnfw-admin input[type="email"].preview_email_field{
      border-radius: 0.5rem 0 0 0.5rem !important;
      -webkit-border-radius: 0.5rem 0 0 0.5rem !important;
      -moz-border-radius: 0.5rem 0 0 0.5rem !important;
      -ms-border-radius: 0.5rem 0 0 0.5rem !important;
      -o-border-radius: 0.5rem 0 0 0.5rem !important;
}

    .ssnfw-admin .notice-dismiss{
      top: 6px !important;
    }
}

body.toplevel_page_restock-notifier-for-woocommerce {
  margin: 0;
  line-height: inherit;
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

button#copy-shortcode{
  margin-left: 0;
}

.wp-admin-header {
  background: #fff;
  border-bottom: 1px solid #dcdcde;
}

.wp-admin-tabs .active-tab {
  border-bottom: 4px solid #2271b1;
  color: #2271b1;
  font-weight: 600;
}

.wp-admin-tabs a:hover:not(.active-tab) {
  color: #2271b1;
  border-bottom: 4px solid #c3c4c7;
}

.color-picker-wrapper {
  position: relative;
}
img.plugin-logo {
  max-width: 150px;
}
input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: 1px solid #dcdcde;
  border-radius: 4px;
}

.wp-input {
  border: 1px solid #8c8f94;
  border-radius: 4px;
  padding: 0 8px;
  line-height: 2;
  min-height: 30px;
}

.wp-input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: 2px solid transparent;
}

.save-button {
  background: linear-gradient(180deg, #2271b1 0%, #135e96 100%);
  border: 1px solid #2271b1;
  border-radius: 3px;
  color: white;
  padding: 0 12px;
  min-height: 32px;
  transition: all 0.3s;
}

.save-button:hover {
  background: linear-gradient(180deg, #135e96 0%, #0d3d62 100%);
  border-color: #135e96;
  transform: translateY(-1px);
}

.save-button:active {
  background: #135e96;
  border-color: #135e96;
  transform: translateY(0);
}

.form-row:hover {
  background-color: #f6f7f7;
}

iframe#restock_stock_notifier_for_woocommerce_settings_restocknotifierpcprajapatemail_body_ifr {
  height: 500px !important;
}

iframe#restock_stock_notifier_for_woocommerce_settings_restocknotifierpcprajapatemail_body_stock_in_ifr {
  height: 500px !important;
}

#preview-email-field:focus,
#preview-email-field:active,
#preview-email-field:hover {
  outline: none !important;
  box-shadow: none !important;
}
