/* partner-promocodes.css */
.partner-promocodes {
  margin: 0 auto;
  padding: 16px;
  width: 100%;
}

.generate-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}
.promocodes-list {
  border-radius: 16px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  margin-bottom: 100px;
}

.form-row {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.select-group {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.select-group label {
  margin-bottom: 5px;
  font-weight: bold;
}

.select-group select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.generate-btn {
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  line-height: 150%;
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  transition: 0.3s;
  border: none;
  background: #3c3c3b;
  color: #FFFFFF !important;
  text-align: center;
  text-decoration: none;
}

.generate-btn:hover {
  background-color: #181818;
}

.promocodes-list table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.promocodes-list th,
.promocodes-list td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.promocodes-list th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}

.status-active {
  background-color: #d4edda;
  color: #155724;
}

.status-used {
  background-color: #f8d7da;
  color: #721c24;
}

.generated-notice {
  background: #d4edda;
  border-left: 4px solid #155724;
  padding: 15px;
  margin: 20px 0;
}

.generated-codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.code-item {
  background: #f1f1f1;
  padding: 8px;
  text-align: center;
  font-family: monospace;
  border-radius: 3px;
}

.generate-btn {
}

.generate-btn:hover {
  background-color: #181818;
}


/* partner-promocodes.css */
.delete-promocode-btn {
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  line-height: 150%;
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  transition: 0.3s;
  border: none;
  background: #dc3545;
  color: white;
  text-align: center;
  text-decoration: none;
}

.delete-promocode-btn:hover {
  background: #c82333;
}

.delete-promocode-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.promocode-notice {
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  color: white;
  animation: fadeIn 0.3s;
}

.notice-success {
  background: #28a745;
}

.notice-error {
  background: #dc3545;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

