/* MARAME Ad Redirect Manager */
.marame-redirect-manager-page {
  margin: 0;
  background: #e8ebe4;
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

.redirect-mgr__page {
  min-height: 100vh;
}

.redirect-mgr__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(214, 211, 209, 0.6);
  position: sticky;
  top: 0;
  z-index: 20;
}

.redirect-mgr__header h1 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.redirect-mgr__header p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #78716c;
}

.redirect-mgr__header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.redirect-mgr__btn-primary {
  border: none;
  border-radius: 9999px;
  background: #7d8f72;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: inherit;
}

.redirect-mgr__btn-primary:hover {
  background: #6d7f62;
}

.redirect-mgr__btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.redirect-mgr__btn-muted {
  border: none;
  background: transparent;
  color: #57534e;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.redirect-mgr__btn-danger {
  border: none;
  background: transparent;
  color: #ef4444;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
}

.redirect-mgr__btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.redirect-mgr__btn-inline svg {
  flex: 0 0 auto;
}

.redirect-mgr__btn-secondary {
  width: 100%;
  border: 1px solid #e7e5e4;
  background: #fff;
  color: #57534e;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

.redirect-mgr__btn-secondary:hover {
  background: #fafaf9;
}

.redirect-mgr__btn-primary--full {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
}

.redirect-mgr__main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.redirect-mgr__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.redirect-mgr__card {
  background: #fff;
  border: 1px solid rgba(214, 211, 209, 0.9);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.06);
}

.redirect-mgr__card-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.redirect-mgr__card-label {
  color: #8b6914;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.redirect-mgr__slug {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  color: #3d5c45;
  margin: 0 0 0.25rem;
}

.redirect-mgr__url {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: #a8a29e;
  margin: 0 0 0.75rem;
  word-break: break-all;
}

.redirect-mgr__dest {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  color: #57534e;
  margin: 0 0 1rem;
}

.redirect-mgr__date {
  font-size: 0.75rem;
  color: #a8a29e;
  text-align: end;
  margin: 0;
}

.redirect-mgr__icon,
.redirect-mgr__slug a {
  margin-inline-start: 0.25rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1rem;
}

.redirect-mgr__icon svg {
  display: inline-block;
  vertical-align: middle;
}

.redirect-mgr__help-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.redirect-mgr__help-head h2 {
  margin: 0;
}

.redirect-mgr__help {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid rgba(214, 211, 209, 0.9);
  border-radius: 1rem;
  padding: 1.25rem;
}

.redirect-mgr__help h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #1e3a5f;
}

.redirect-mgr__help code {
  font-size: 0.75rem;
  background: #f5f5f4;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.redirect-mgr__empty {
  text-align: center;
  padding: 4rem 1rem;
  color: #78716c;
}

.redirect-mgr__overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.3);
  z-index: 40;
}

.redirect-mgr__modal {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2rem);
  max-width: 28rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(214, 211, 209, 0.8);
}

.redirect-mgr__modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f5f5f4;
}

.redirect-mgr__modal-head h2 {
  margin: 0;
  font-size: 1rem;
}

.redirect-mgr__close {
  border: none;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  color: #a8a29e;
}

.redirect-mgr__close svg {
  display: block;
}

.redirect-mgr__form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.redirect-mgr__form label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #57534e;
}

.redirect-mgr__form input {
  border: 1px solid #e7e5e4;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-family: ui-monospace, monospace;
}

.redirect-mgr__prefix {
  font-family: ui-monospace, monospace;
  color: #a8a29e;
  font-size: 0.75rem;
}

.redirect-mgr__slug-input {
  display: flex;
  align-items: center;
  border: 1px solid #e7e5e4;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-top: 0.25rem;
}

.redirect-mgr__slug-input input {
  border: none;
  border-radius: 0;
  flex: 1;
}

.redirect-mgr__slug-preview {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-family: ui-monospace, monospace;
  color: #a8a29e;
  word-break: break-all;
}

.redirect-mgr__field-hint {
  margin: -0.5rem 0 0;
  font-size: 0.75rem;
  color: #a8a29e;
}

.redirect-mgr__admin-bar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.redirect-mgr__login-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.redirect-mgr__login-card {
  width: 100%;
  max-width: 24rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(214, 211, 209, 0.9);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(28, 25, 23, 0.08);
  text-align: center;
}

.redirect-mgr__login-card h1 {
  margin: 0;
  font-size: 1.25rem;
}

.redirect-mgr__login-sub {
  margin: 0.5rem 0 1.5rem;
  color: #78716c;
  font-size: 0.875rem;
}

.redirect-mgr__login-form label {
  text-align: start;
  width: 100%;
}

.redirect-mgr__login-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin: 0;
}

.redirect-mgr__login-hint {
  margin-top: 1rem;
  font-size: 0.75rem;
}

.redirect-mgr__login-hint a {
  color: #7d8f72;
}

.redirect-mgr__toast {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.redirect-mgr__toast--success {
  background: #7d8f72;
}

.redirect-mgr__toast--error {
  background: #dc2626;
}

.number {
  direction: ltr;
  unicode-bidi: isolate;
}
