/**
 * Stylesheet for Subscription Management
 */

/* Main action buttons - keep your original styles */
.custom-on-hold, .custom-reactivate-this-month, .custom-reactivate-next-month, .custom-pay, .custom-resubscribe {
  display: inline-block !important;
  padding: 5px 20px !important;
  background-color: #000 !important;
  color: #fff !important;
  text-decoration: none !important;
  border: 2px solid #000 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  margin-bottom: 20px !important;
  margin-top: 20px !important;
  margin-right: 20px !important;
}

.custom-on-hold:hover, .custom-reactivate-this-month:hover, .custom-reactivate-next-month:hover, .custom-pay:hover, .custom-resubscribe:hover {
  background-color: #FFF !important;
  color: #000 !important;
}

.custom-cancel {
  display: inline-block !important;
  padding: 5px 20px !important;
  background-color: #fff !important;
  color: #000 !important;
  text-decoration: none !important;
  border: 2px solid #000 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
}

.custom-cancel:hover {
  background-color: #000 !important;
  color: #FFF !important;
}

/* Dialog overlay - standard semi-transparent overlay */
.arsm-dialog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.arsm-dialog-overlay.active {
  display: flex;
}

/* Standard dialog box with subtle shadow */
.arsm-dialog {
  background: white;
  border-radius: 4px; /* More standard radius */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  width: 90%;
  max-width: 400px;
  overflow: hidden;
  animation: arsm-dialog-appear 0.2s ease-out;
}

@keyframes arsm-dialog-appear {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Clean dialog header with title */
.arsm-dialog-header {
  border-bottom: 1px solid #eee;
  padding: 16px 24px;
  font-weight: bold;
  font-size: 16px;
}

/* Dialog content */
.arsm-dialog-content {
  padding: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* Standard button container */
.arsm-dialog-buttons {
  display: flex;
  padding: 16px;
  border-top: 1px solid #eee;
  justify-content: flex-end; /* Align buttons to the right */
  background-color: #f9f9f9; /* Light gray background */
}

/* Standard buttons with spacing */
.arsm-dialog-button {
  margin-left: 8px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

/* Primary action button */
.arsm-confirm-button {
  background-color: #000;
  color: white;
  border: 1px solid #000;
}

.arsm-confirm-button:hover {
  background-color: #333;
}

/* Secondary/cancel button */
.arsm-cancel-button {
  background-color: white;
  color: #333;
  border: 1px solid #ddd;
}

.arsm-cancel-button:hover {
  background-color: #f1f1f1;
  border-color: #ccc;
}

/* Notification dialog */
#arsm-notification-dialog {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 4px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  width: 90%;
  max-width: 400px;
  z-index: 10000;
  overflow: hidden;
  animation: arsm-dialog-appear 0.2s ease-out;
}

#arsm-notification-dialog.active {
  display: block;
}

/* Icon for notification */
.arsm-notification-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.arsm-notification-success .arsm-notification-icon {
  background-color: #f1f9f1;
  color: #000;
}

.arsm-notification-error .arsm-notification-icon {
  background-color: #fdf1f0;
  color: #000;
}

/* Notification content */
.arsm-notification-content {
  padding: 24px;
  text-align: center;
  color: #333;
}

/* Standard OK button */
.arsm-notification-button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #f9f9f9;
  border: none;
  border-top: 1px solid #eee;
  color: #000;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.arsm-notification-button:hover {
  background-color: #f1f1f1;
}


/* Button highlight styles */
.button-highlight {
    border: 2px solid #6ab04c !important;
    box-shadow: 0 0 10px rgba(106, 176, 76, 0.5) !important;
}

/* Pulsate animation (fallback if jQuery UI is not available) */
@keyframes pulsate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulsate-button {
    animation: pulsate 0.5s ease-in-out 3;
}

/* Info notification styling */
.arsm-notification-info .arsm-notification-icon {
    background-color: #e7f3fe;
    color: #2196F3;
}

.arsm-notification-info {
    border-left: 4px solid #2196F3;
}
