/* Theme: Easy Donation Addons Form - Improved UI/UX */
.eazypay-form-wrapper {
  max-width: 540px;
  margin: 48px auto;
  padding: 36px 32px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(244, 108, 20, 0.10), 0 1.5px 6px rgba(0,0,0,0.04);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.eazypay-form-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  color: #222;
  letter-spacing: 0.01em;
}

.eazypay-form-subheading {
  font-size: 1.08rem;
  color: #666;
  text-align: center;
  margin-bottom: 26px;
  margin-top: -12px;
  line-height: 1.5;
}

.eazypay-form-group {
  margin-bottom: 22px;
  position: relative;
}

.eazypay-form-row {
  display: flex;
  gap: 18px;
  margin-bottom: 0;
}
.eazypay-form-row .eazypay-form-group {
  flex: 1 1 0;
  margin-bottom: 22px;
}
@media (max-width: 700px) {
  .eazypay-form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Already supports flex row and responsive stacking. Ensure single-child .eazypay-form-row is full width. */
.eazypay-form-row:only-child, .eazypay-form-row > .eazypay-form-group:only-child {
  width: 100%;
}

.floating-label input[type="text"],
.floating-label input[type="email"],
.floating-label input[type="number"],
.floating-label input[type="file"],
.floating-label select {
  width: 100%;
  padding: 16px 14px 16px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  background: #faf9f7;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  outline: none;
}

.floating-label input:focus,
.floating-label select:focus {
  border-color: #F46C14;
  box-shadow: 0 0 0 2px rgba(244, 108, 20, 0.12);
}

.floating-label label {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #888;
  background: #fff;
  padding: 0 4px;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.2s all;
  border-radius: 4px;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label select:not([value=""]) + label {
  top: -12px;
  left: 10px;
  font-size: 0.92rem;
  color: #F46C14;
  background: #fff;
  padding: 0 6px;
}

.floating-label select {
  appearance: none;
  background: #faf9f7 url('data:image/svg+xml;utf8,<svg fill="%23F46C14" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 14px center/18px 18px;
}

.floating-label input[type="file"] {
  background: #faf9f7;
  padding: 14px 12px;
  border-radius: 8px;
}

.custom-file-input {
  cursor: pointer;
  color: #444;
}

.eazypay-submit-btn {
  width: 100%;
  background: #F46C14 !important;
  color: #fff !important;
  font-size: 1.15rem;
  padding: 15px 0;
  border: none;
  border-radius: 8px !important;
  cursor: pointer;
  font-weight: 700;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(244, 108, 20, 0.08) !important;
  transition: background 0.2s, box-shadow 0.2s, outline 0.2s !important;
  outline: none;
}
.eazypay-submit-btn:hover,
.eazypay-submit-btn:focus {
  background: #d95a00 !important;
  box-shadow: 0 4px 16px rgba(244, 108, 20, 0.16);
  outline: 2px solid #F46C14;
  border: none;
}

.eazypay-form-mode-badge {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 18px;
  color: #fff;
  background: #F46C14;
  display: inline-block;
  padding: 5px 18px;
  border-radius: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.eazypay-message-success {
  padding: 20px;
  background: #d4edda;
  border-left: 4px solid #28a745;
}
.eazypay-message-error {
  padding: 20px;
  background: #f8d7da;
  border-left: 4px solid #dc3545;
}
.eazypay-message-warning {
  padding: 20px;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
}

@media (max-width: 700px) {
  .eazypay-form-wrapper {
    padding: 18px 4vw;
    margin: 18px 0;
  }
  .eazypay-form-title {
    font-size: 1.3rem;
  }
  .eazypay-submit-btn {
    font-size: 1rem;
    padding: 12px 0;
  }
}

/* Remove default select arrow for Chrome */
.floating-label select::-ms-expand { display: none; }
.floating-label select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Accessibility: focus outline for all inputs */
.floating-label input:focus,
.floating-label select:focus {
  outline: 2px solid #F46C14;
  outline-offset: 1px;
}

/* Admin Table UI/UX Enhancements */
.widefat.fixed.striped {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  font-size: 15px;
}
.widefat.fixed.striped thead th {
  position: sticky;
  top: 0;
  background: #f6f7f7;
  z-index: 2;
  border-bottom: 2px solid #e1e1e1;
  font-weight: 600;
}
.widefat.fixed.striped tbody tr:nth-child(even) {
  background: #f9f9f9;
}
.widefat.fixed.striped tbody tr:hover {
  background: #f1f7ff;
}
.widefat.fixed.striped td, .widefat.fixed.striped th {
  padding: 8px 10px;
  border: 1px solid #e1e1e1;
  text-align: left;
}
@media (max-width: 900px) {
  .widefat.fixed.striped, .widefat.fixed.striped thead, .widefat.fixed.striped tbody, .widefat.fixed.striped th, .widefat.fixed.striped td, .widefat.fixed.striped tr {
    display: block;
  }
  .widefat.fixed.striped thead {
    display: none;
  }
  .widefat.fixed.striped tr {
    margin-bottom: 16px;
    border-bottom: 2px solid #e1e1e1;
  }
  .widefat.fixed.striped td {
    border: none;
    position: relative;
    padding-left: 50%;
    min-height: 36px;
  }
  .widefat.fixed.striped td:before {
    position: absolute;
    top: 8px;
    left: 10px;
    width: 45%;
    white-space: nowrap;
    font-weight: 600;
    color: #888;
    content: attr(data-label);
  }
}

/* Admin Filter Bar UI Enhancements */
.eazypay-admin-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 28px 28px 20px 28px;
  margin: 36px auto 0 auto;
  max-width: 98vw;
}
.eazypay-admin-filterbar {
  background: #f6f7f7;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 18px 20px 12px 20px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 14px 18px;
  align-items: center;
}
.eazypay-admin-filterbar input[type="text"],
.eazypay-admin-filterbar select {
  height: 38px;
  border-radius: 20px;
  border: 1.5px solid #ff5d00;
  padding: 0 16px;
  font-size: 16px;
  background: #fff;
  min-width: 0;
  transition: border-color 0.2s;
}
.eazypay-admin-filterbar input[type="text"]:focus,
.eazypay-admin-filterbar select:focus {
  border-color: #ff5d00;
  outline: none;
}
.eazypay-admin-filterbar .button {
  height: 38px;
  border-radius: 20px;
  font-size: 16px;
  padding: 0 26px;
  margin-top: 0;
  background: #ff5d00;
  color: #fff;
  border: none;
  font-weight: 600;
  transition: background 0.2s;
}
.eazypay-admin-filterbar .button:hover,
.eazypay-admin-filterbar .button:focus {
  background: #e04e00;
  color: #fff;
}
.eazypay-admin-quickfilters {
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
}
.eazypay-admin-quickfilters .button {
  background: #fff3ea;
  color: #ff5d00;
  border: 1.5px solid #ff5d00;
  border-radius: 20px;
  font-size: 15px;
  padding: 0 20px;
  height: 34px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.eazypay-admin-quickfilters .button.active,
.eazypay-admin-quickfilters .button:focus {
  background: #ff5d00;
  color: #fff;
  border-color: #ff5d00;
}
/* Table tweaks */
.widefat.fixed.striped {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(255,93,0,0.07);
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 0;
  font-size: 16px;
}
.widefat.fixed.striped thead th {
  background: #fff3ea;
  color: #ff5d00;
  font-size: 16px;
  border-bottom: 2px solid #ff5d00;
  border-top: none;
  position: relative;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  height: 48px;
}
.widefat.fixed.striped thead th.sort-asc:after {
  content: '▲';
  font-size: 13px;
  position: absolute;
  right: 8px;
  color: #ff5d00;
}
.widefat.fixed.striped thead th.sort-desc:after {
  content: '▼';
  font-size: 13px;
  position: absolute;
  right: 8px;
  color: #ff5d00;
}
.widefat.fixed.striped tbody tr {
  transition: background 0.15s;
  height: 48px;
}
.widefat.fixed.striped tbody tr:hover {
  background: #fff3ea;
}
.widefat.fixed.striped td {
  font-size: 16px;
  vertical-align: middle;
  padding: 10px 12px;
  letter-spacing: 0.01em;
}
.widefat.fixed.striped td .eazypay-action-btn {
  background: #fff3ea;
  border: 1.5px solid #ff5d00;
  border-radius: 16px;
  color: #ff5d00;
  font-size: 14px;
  padding: 3px 16px;
  margin-right: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.widefat.fixed.striped td .eazypay-action-btn:hover {
  background: #ff5d00;
  color: #fff;
}
.widefat.fixed.striped td input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 6px 0 0;
}
@media (max-width: 1100px) {
  .eazypay-admin-filterbar {
    grid-template-columns: 1fr 1fr 1fr auto;
  }
}
@media (max-width: 900px) {
  .eazypay-admin-card {
    padding: 10px 2vw 10px 2vw;
  }
  .eazypay-admin-filterbar {
    grid-template-columns: 1fr 1fr;
    flex-direction: column;
    gap: 10px 0;
    padding: 10px 6vw 6px 6vw;
  }
}
