/* Modal container */
#coupon-modal {
  display: none; /* hidden by default */
/*  background: linear-gradient(45deg, #ff00ff, #00ffff);*/
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fffefa;
  padding: 20px;
  border: 1px solid #ccc;
  z-index: 1000;
  width: 400px;
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

/* Modal overlay */
#coupon-modal-overlay {
  display: none; /* hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Show modal & overlay when active */
#coupon-modal.active,
#coupon-modal-overlay.active {
  display: block;
}

/* Modal title and headline */
.modal-message-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.modal-message-headline
{
  margin-bottom: 4px;
  font-size: 16px;
  color: #333;
}

/* Details */
.modal-message-detail {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.coupon-filename {
  margin-bottom: 10px;
}

/* Message */
.modal-message-message {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 300;
  color: #333;
}

/* Buttons container */
.modal-buttons {
  text-align: right;
}

/* Buttons */
.modal-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
/*  color: #fff;*/
}

.choice1-btn {
  background-color: #4a90e2;
  color: #fff;
  display: none;
}

.choice2-btn {
  background-color: #7fa69a;
  color: #fff;
  display: none;
}

.ok-btn {
  background-color: #dce6e1;
  color: #4a6c63;
}

.cancel-btn {
  background-color: #ccc;
  color: #333;
  margin-right: 0; /* last button no margin */
}

/* Show buttons when needed */
.modal-buttons button.show {
  display: inline-block !important;
}

/******************* Email entry modal for coupons sent by email **************/
/* Spinner style*/
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073e6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/******************* Email log list displayed on frontend **************/
/* Enhanced CSV Button */
.button.download-csv-button {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
  transition: background-color 0.2s ease;
}

.button.download-csv-button:hover {
  background-color: #005177;
  color: #fff;
}

/* Custom Log Table Enhancements */
.wp-list-table.logs-table {
  font-size: 14px;
  margin-top: 10px;
}

.wp-list-table.logs-table th,
.wp-list-table.logs-table td {
  padding: 10px 12px;
  vertical-align: middle;
}

.wp-list-table.logs-table th {
  background-color: #f4f6f8;
  color: #222;
  text-transform: uppercase;
  font-size: 12px;
}

.wp-list-table.logs-table tr:hover {
  background-color: #f9f9f9;
}
