/* =============================================

   KRP Marketplace - Global Styles

   Screen 1: Admin Login

   ============================================= */

*,
*::before,
*::after {
  box-sizing: border-box;

  margin: 0;

  padding: 0;
}

html {
  font-size: 16px;

  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;

  font-size: 16px;

  line-height: 1.5;

  color: #1a2b48;

  background-color: #f4f7fa;

  -webkit-font-smoothing: antialiased;

  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;

  color: inherit;
}

button {
  font-family: inherit;

  cursor: pointer;

  border: none;

  background: none;
}

input {
  font-family: inherit;
}

img {
  max-width: 100%;

  height: auto;

  display: block;
}

/* =============================================

   Auth Layout

   ============================================= */

.auth-body {
  min-height: 100vh;

  background-color: #f4f7fa;
}

/* =============================================

   Admin Login Page

   ============================================= */

.admin-login-page {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  align-items: center;

  min-height: 100vh;

  padding: 30px 20px;

  background-color: #f4f7fa;
}

.admin-login-card {
  width: 100%;

  max-width: 460px;

  background-color: #ffffff;

  border-radius: 12px;

  border: 1px solid #e8edf2;

  box-shadow: 0 4px 24px rgba(10, 37, 64, 0.06);

  padding: 36px 40px;
}

.admin-login-logo {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  /* padding-bottom: 24px; */
  /* border-bottom: 1px solid #eef2f6; */
}

.admin-login-logo::after {
  content: "";
  display: block;
  width: 58px;
  height: 5px;
  background: #cce1df;
  border-radius: 999px;
  margin: 10px auto 0;
}

.admin-login-logo-img {
  width: 120px;
  max-width: 120px;
  height: auto;
}

.admin-login-header {
  text-align: center;

  margin-bottom: 28px;
}

.admin-login-title {
  font-size: 24px;

  font-weight: 700;

  color: #0a2540;

  letter-spacing: -0.3px;
}

.admin-login-subtitle {
  font-size: 14px;

  font-weight: 400;

  color: #6b7c93;

  line-height: 1.6;
}

/* =============================================

   Alerts

   ============================================= */

.admin-alert {
  padding: 12px 16px;

  border-radius: 8px;

  font-size: 14px;

  font-weight: 500;

  margin-bottom: 20px;

  line-height: 1.5;
}

.admin-alert-success {
  background-color: #e6f7f3;

  color: #007a65;

  border: 1px solid #b3e8dc;
}

.admin-alert-error {
  background-color: #fef2f2;

  color: #b91c1c;

  border: 1px solid #fecaca;
}

/* =============================================

   Form Elements

   ============================================= */

.admin-login-form {
  display: flex;

  flex-direction: column;

  gap: 6px;
}

.admin-form-group {
  display: flex;

  flex-direction: column;

  gap: 8px;
}

.admin-form-label-row {
  display: flex;

  flex-wrap: wrap;

  justify-content: space-between;

  align-items: center;

  gap: 8px;
}

.admin-form-label {
  font-size: 11px;

  font-weight: 600;

  color: #6b7c93;

  letter-spacing: 0.8px;

  text-transform: uppercase;
}

.admin-forgot-link {
  font-size: 13px;

  font-weight: 500;

  color: #00a88f;

  transition: color 0.2s ease;
}

.admin-forgot-link:hover {
  color: #008f78;

  text-decoration: underline;
}

.admin-input-wrapper {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  position: relative;

  width: 100%;
}

.admin-input-icon {
  position: absolute;

  left: 14px;

  top: 50%;

  transform: translateY(-50%);

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  color: #9aa5b4;

  pointer-events: none;

  z-index: 1;
}

.admin-form-input {
  width: 100%;

  height: 48px;

  padding: 12px 16px 12px 44px;

  font-size: 15px;

  font-weight: 400;

  color: #1a2b48;

  background-color: #ffffff;

  border: 1px solid #d8dfe8;

  border-radius: 8px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-form-input::placeholder {
  color: #a8b4c2;
}

.admin-form-input:focus {
  border-color: #00a88f;

  box-shadow: 0 0 0 3px rgba(0, 168, 143, 0.12);
}

.admin-form-input.is-invalid {
  border-color: #ef4444;

  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.admin-form-input-password {
  padding-right: 48px;
}

.admin-password-toggle {
  position: absolute;

  right: 12px;

  top: 50%;

  transform: translateY(-50%);

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  width: 32px;

  height: 32px;

  color: #9aa5b4;

  border-radius: 6px;

  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.admin-password-toggle:hover {
  color: #6b7c93;

  background-color: #f4f7fa;
}

.admin-field-error {
  font-size: 12px;

  font-weight: 500;

  color: #ef4444;

  min-height: 16px;

  display: block;
}

/* =============================================

   Checkbox - Remember Me

   ============================================= */

.admin-remember-group {
  margin-top: -4px;
}

.admin-checkbox-label {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 10px;

  cursor: pointer;

  user-select: none;
}

.admin-checkbox {
  position: absolute;

  opacity: 0;

  width: 0;

  height: 0;
}

.admin-checkbox-custom {
  width: 18px;

  height: 18px;

  border: 1.5px solid #d8dfe8;

  border-radius: 4px;

  background-color: #ffffff;

  flex-shrink: 0;

  position: relative;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.admin-checkbox:checked + .admin-checkbox-custom {
  background-color: #00a88f;

  border-color: #00a88f;
}

.admin-checkbox:checked + .admin-checkbox-custom::after {
  content: "";

  position: absolute;

  left: 5px;

  top: 2px;

  width: 5px;

  height: 9px;

  border: solid #ffffff;

  border-width: 0 2px 2px 0;

  transform: rotate(45deg);
}

.admin-checkbox:focus + .admin-checkbox-custom {
  box-shadow: 0 0 0 3px rgba(0, 168, 143, 0.12);
}

.admin-checkbox-text {
  font-size: 13px;

  font-weight: 400;

  color: #6b7c93;

  line-height: 1.4;
}

/* =============================================

   Sign In Button

   ============================================= */

.admin-btn-signin {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  align-items: center;

  gap: 10px;

  width: 100%;

  height: 50px;

  margin-top: 4px;

  padding: 14px 24px;

  font-size: 16px;

  font-weight: 600;

  color: #ffffff;

  background-color: #0a2540;

  border-radius: 8px;

  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    opacity 0.2s ease;
}

.admin-btn-signin:hover {
  background-color: #0d3054;
}

.admin-btn-signin:active {
  transform: scale(0.99);
}

.admin-btn-signin:disabled {
  opacity: 0.7;

  cursor: not-allowed;

  transform: none;
}

.admin-btn-text {
  line-height: 1;
}

.admin-btn-icon {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;
}

.admin-btn-loader {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;
}

.admin-spinner {
  animation: admin-spin 0.8s linear infinite;
}

@keyframes admin-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =============================================

   Dashboard Placeholder (Screen 2 preview)

   ============================================= */

.admin-placeholder-page {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  align-items: center;

  min-height: 100vh;

  padding: 30px 20px;
}

.admin-placeholder-card {
  background-color: #ffffff;

  border-radius: 12px;

  border: 1px solid #e8edf2;

  box-shadow: 0 4px 24px rgba(10, 37, 64, 0.06);

  padding: 40px;

  text-align: center;

  max-width: 500px;

  width: 100%;
}

.admin-placeholder-card h1 {
  font-size: 22px;

  font-weight: 700;

  color: #0a2540;

  margin-bottom: 12px;
}

.admin-placeholder-card p {
  font-size: 15px;

  color: #6b7c93;
}

/* =============================================

   Responsive - Tablet

   ============================================= */

@media (max-width: 768px) {
  .admin-login-card {
    max-width: 400px;

    padding: 32px 28px 28px;
  }

  .admin-login-title {
    font-size: 22px;
  }

  .admin-login-logo-img {
    width: 140px;
  }
}

/* =============================================

   Responsive - Mobile

   ============================================= */

@media (max-width: 480px) {
  .admin-login-page {
    padding: 20px 16px;

    align-items: flex-start;

    padding-top: 40px;
  }

  .admin-login-card {
    max-width: 100%;

    padding: 28px 20px 24px;

    border-radius: 10px;
  }

  .admin-login-title {
    font-size: 20px;
  }

  .admin-login-subtitle {
    font-size: 13px;
  }

  .admin-form-input {
    height: 46px;

    font-size: 14px;
  }

  .admin-btn-signin {
    height: 48px;

    font-size: 15px;
  }

  .admin-form-label-row {
    flex-direction: column;

    align-items: flex-start;
  }

  .admin-forgot-link {
    align-self: flex-end;
  }
}

/* =============================================

   Admin Panel Layout

   ============================================= */

.admin-body {
  background-color: #f4f7fa;

  min-height: 100vh;
}

.admin-wrapper {
  display: flex;

  flex-wrap: nowrap;

  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;

  min-width: 260px;

  background-color: #ffffff;

  border-right: 1px solid #e8edf2;

  display: flex;

  flex-direction: column;

  position: fixed;

  top: 0;

  left: 0;

  height: 100vh;

  z-index: 100;

  transition: transform 0.25s ease;
}

.admin-sidebar-logo {
  padding: 10px 20px;

  border-bottom: 1px solid #e8edf2;
}

.admin-sidebar-logo img {
  width: auto;
  height: 61px;
  max-width: 62px;
}

.admin-sidebar-nav {
  flex: 1;

  padding: 16px 12px;

  overflow-y: auto;
}

.admin-sidebar-link {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 12px;

  padding: 12px 14px;

  border-radius: 8px;

  color: #4a5b73;

  font-size: 14px;

  font-weight: 500;

  margin-bottom: 4px;

  transition:
    background-color 0.2s,
    color 0.2s;

  width: 100%;

  text-align: left;
}

.admin-sidebar-link:hover {
  background-color: #f0fdfa;

  color: #0d9488;
}

.admin-sidebar-link.active {
  background-color: #0d9488;

  color: #ffffff;
}

.admin-sidebar-icon {
  width: 20px;

  height: 20px;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;
}

.admin-sidebar-footer {
  padding: 16px 12px;

  border-top: 1px solid #e8edf2;
}

.admin-logout-btn {
  color: #dc2626;
}

.admin-logout-btn:hover {
  background-color: #fef2f2;

  color: #dc2626;
}

.admin-sidebar-toggle {
  display: none;

  position: fixed;

  top: 16px;

  left: 16px;

  z-index: 110;

  width: 40px;

  height: 40px;

  border-radius: 8px;

  background-color: #ffffff;

  border: 1px solid #e8edf2;

  color: #1a2b48;

  align-items: center;

  justify-content: center;
}

.admin-main {
  flex: 1;

  margin-left: 260px;

  display: flex;

  flex-direction: column;

  min-height: 100vh;
}

.admin-header {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  padding: 16px 28px;

  background-color: #ffffff;

  border-bottom: 1px solid #e8edf2;

  gap: 16px;

  height: 82px;
}

.admin-header-search-wrap {
  flex: 1;

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  max-width: 560px;

  margin: 0 auto;
}

.admin-header-search {
  position: relative;

  width: 100%;
}

.admin-search-icon {
  position: absolute;

  left: 14px;

  top: 50%;

  transform: translateY(-50%);

  color: #94a3b8;

  display: flex;
}

.admin-search-input {
  width: 100%;

  height: 44px;

  padding: 0 16px 0 42px;

  border: 1px solid #e2e8f0;

  border-radius: 10px;

  background-color: #f8fafc;

  font-size: 14px;

  color: #1a2b48;

  outline: none;
}

.admin-search-input:focus {
  border-color: #0d9488;

  background-color: #ffffff;
}

.admin-search-results {
  position: absolute;

  top: calc(100% + 6px);

  left: 0;

  right: 0;

  background-color: #ffffff;

  border: 1px solid #e8edf2;

  border-radius: 10px;

  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.1);

  z-index: 50;

  max-height: 320px;

  overflow-y: auto;
}

.admin-search-item {
  display: block;

  padding: 12px 16px;

  border-bottom: 1px solid #f1f5f9;

  transition: background-color 0.15s;
}

.admin-search-item:hover {
  background-color: #f8fafc;
}

.admin-search-item-type {
  display: block;

  font-size: 11px;

  font-weight: 600;

  color: #0d9488;

  text-transform: uppercase;

  margin-bottom: 2px;
}

.admin-search-item-title {
  display: block;

  font-size: 14px;

  font-weight: 600;

  color: #1a2b48;
}

.admin-search-item-subtitle {
  display: block;

  font-size: 12px;

  color: #6b7c93;
}

.admin-search-empty {
  padding: 16px;

  text-align: center;

  color: #6b7c93;

  font-size: 14px;
}

.admin-header-profile {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 12px;
}

.admin-profile-info {
  display: flex;

  flex-direction: column;

  text-align: right;
}

.admin-profile-name {
  font-size: 14px;

  font-weight: 600;

  color: #1a2b48;
}

.admin-profile-role {
  font-size: 12px;

  color: #6b7c93;
}

.admin-profile-avatar {
  width: 40px;

  height: 40px;

  border-radius: 50%;

  overflow: hidden;

  border: 2px solid #e8edf2;
}

.admin-profile-avatar img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.admin-content {
  padding: 28px;

  flex: 1;
}

.admin-content-alert {
  margin-bottom: 20px;
}

/* =============================================

   Admin Page Header & Toolbar

   ============================================= */

.admin-page-header {
  display: flex;

  flex-wrap: wrap;

  align-items: flex-start;

  justify-content: space-between;

  gap: 16px;

  margin-bottom: 24px;
}

.admin-page-title {
  font-size: 26px;

  font-weight: 700;

  color: #0a2540;

  margin-bottom: 6px;
}

.admin-page-subtitle {
  font-size: 14px;

  color: #6b7c93;
}

.admin-toolbar {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  margin-bottom: 16px;
}

.admin-filter-form {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 16px;
}

.admin-filter-group {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 8px;
}

.admin-filter-label {
  font-size: 13px;

  font-weight: 500;

  color: #4a5b73;
}

.admin-toolbar-meta {
  font-size: 13px;

  color: #6b7c93;
}

.admin-toolbar-actions {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 8px;

  margin-bottom: 12px;
}

/* =============================================

   Admin Buttons & Form Controls

   ============================================= */

.admin-btn {
  display: inline-flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  gap: 8px;

  height: 42px;

  padding: 0 20px;

  border-radius: 8px;

  font-size: 14px;

  font-weight: 600;

  transition:
    background-color 0.2s,
    border-color 0.2s,
    opacity 0.2s;
}

.admin-btn-primary {
  background-color: #0d9488;

  color: #ffffff;
}

.admin-btn-primary:hover {
  background-color: #0f766e;
}

.admin-btn-outline {
  background-color: #ffffff;

  color: #1a2b48;

  border: 1px solid #d1d9e6;
}

.admin-btn-outline:hover {
  background-color: #f8fafc;
}

.admin-btn-dark {
  background-color: #0a2540;

  color: #ffffff;
}

.admin-btn-dark:hover {
  background-color: #1a3a5c;
}

.admin-btn:disabled {
  opacity: 0.6;

  cursor: not-allowed;
}

.admin-select {
  height: 38px;

  padding: 0 32px 0 12px;

  border: 1px solid #e2e8f0;

  border-radius: 8px;

  background-color: #ffffff;

  font-size: 13px;

  color: #1a2b48;

  outline: none;

  appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%236b7c93' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat;

  background-position: right 10px center;
}

.admin-select-sm {
  height: 34px;

  font-size: 12px;
}

.admin-select:focus {
  border-color: #0d9488;
}

/* =============================================

   Admin Table

   ============================================= */

.admin-table-card {
  background-color: #ffffff;

  border: 1px solid #e8edf2;

  border-radius: 12px;

  overflow: hidden;

  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;

  border-collapse: collapse;
}

.admin-table thead th {
  padding: 14px 20px;

  text-align: left;

  font-size: 11px;

  font-weight: 700;

  color: #6b7c93;

  text-transform: uppercase;

  letter-spacing: 0.5px;

  background-color: #f8fafc;

  border-bottom: 1px solid #e8edf2;
}

.admin-table tbody td {
  padding: 16px 20px;

  border-bottom: 1px solid #f1f5f9;

  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background-color: #fafbfc;
}

.admin-table-primary {
  font-size: 14px;

  font-weight: 600;

  color: #1a2b48;
}

.admin-table-secondary {
  font-size: 12px;

  color: #6b7c93;

  margin-top: 2px;
}

.admin-table-actions-col {
  width: 120px;

  text-align: right;
}

.admin-table-actions {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: flex-end;

  gap: 8px;
}

.admin-action-btn {
  width: 32px;

  height: 32px;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  border-radius: 6px;

  color: #6b7c93;

  transition:
    background-color 0.15s,
    color 0.15s;
}

.admin-action-btn:hover {
  background-color: #f1f5f9;

  color: #0d9488;
}

.admin-action-delete:hover {
  color: #dc2626;

  background-color: #fef2f2;
}

.admin-table-empty {
  text-align: center;

  padding: 40px 20px;

  color: #6b7c93;

  font-size: 14px;
}

.admin-table-footer {
  padding: 14px 20px;

  border-top: 1px solid #e8edf2;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  gap: 12px;
}

.admin-table-footer-left {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 8px;
}

.admin-table-footer-right {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 12px;
}

.admin-per-page-label {
  font-size: 13px;

  color: #6b7c93;
}

.admin-select-xs {
  height: 32px;

  padding: 0 28px 0 10px;

  font-size: 13px;

  min-width: 64px;
}

.admin-pagination-range {
  font-size: 13px;

  color: #6b7c93;
}

.admin-pagination-nav {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 4px;
}

.admin-pagination-btn {
  width: 28px;

  height: 28px;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  border-radius: 6px;

  color: #6b7c93;

  border: 1px solid #e2e8f0;

  background-color: #ffffff;

  transition:
    background-color 0.15s,
    color 0.15s;
}

.admin-pagination-btn:hover {
  background-color: #f8fafc;

  color: #0d9488;
}

.admin-pagination-btn-disabled {
  opacity: 0.4;

  cursor: not-allowed;

  pointer-events: none;
}

/* =============================================

   Admin Badges

   ============================================= */

.admin-badge {
  display: inline-flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 6px;

  padding: 4px 10px;

  border-radius: 20px;

  font-size: 11px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.3px;
}

.admin-badge-dot {
  width: 6px;

  height: 6px;

  border-radius: 50%;

  background-color: currentColor;
}

.admin-badge-active {
  background-color: #ccfbf1;

  color: #0d9488;
}

.admin-badge-scheduled {
  background-color: #dbeafe;

  color: #2563eb;
}

.admin-badge-completed {
  background-color: #f1f5f9;

  color: #64748b;
}

.admin-badge-inactive {
  background-color: #f1f5f9;

  color: #64748b;
}

.admin-badge-sm {
  font-size: 10px;

  padding: 3px 8px;
}

/* =============================================

   Admin Forms

   ============================================= */

.admin-form-page {
  max-width: 800px;
}

.admin-form-page-header {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 12px;

  margin-bottom: 24px;
}

.admin-back-link {
  width: 36px;

  height: 36px;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  border-radius: 8px;

  color: #4a5b73;

  border: 1px solid #e2e8f0;

  background-color: #ffffff;
}

.admin-back-link:hover {
  background-color: #f8fafc;

  color: #0d9488;
}

.admin-form-card {
  background-color: #ffffff;

  border: 1px solid #e8edf2;

  border-radius: 12px;

  padding: 28px;

  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
}

.admin-form-meta {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 12px;

  margin-bottom: 20px;

  padding-bottom: 16px;

  border-bottom: 1px solid #f1f5f9;
}

.admin-form-meta-label {
  font-size: 12px;

  color: #6b7c93;
}

.admin-form-meta-value {
  font-size: 14px;

  font-weight: 600;

  color: #1a2b48;
}

.admin-form-row {
  display: flex;

  flex-wrap: wrap;

  gap: 20px;

  margin-bottom: 20px;
}

.admin-form-row-2 .admin-form-group {
  flex: 1;

  min-width: 200px;
}

.admin-form-group {
  display: flex;

  flex-direction: column;

  gap: 6px;
}

.admin-form-group-full {
  width: 100%;
}

.admin-form-group-half {
  width: calc(50% - 10px);

  min-width: 200px;
}

.admin-form-hint {
  font-size: 12px;

  color: #6b7c93;

  margin-top: 4px;
}

.admin-form-actions {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: flex-end;

  gap: 12px;

  margin-top: 28px;

  padding-top: 20px;

  border-top: 1px solid #f1f5f9;
}

.admin-form-actions-left {
  justify-content: flex-start;
}

.admin-form-input-icon {
  padding-left: 42px;
}

/* =============================================

   Admin Upload Zone

   ============================================= */

.admin-upload-header {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 8px;
}

.admin-upload-filename {
  font-size: 12px;

  color: #6b7c93;
}

.admin-upload-zone {
  position: relative;

  border: 2px dashed #d1d9e6;

  border-radius: 10px;

  padding: 32px;

  text-align: center;

  cursor: pointer;

  transition:
    border-color 0.2s,
    background-color 0.2s;

  min-height: 160px;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;
}

.admin-upload-zone:hover {
  border-color: #0d9488;

  background-color: #f0fdfa;
}

.admin-upload-input {
  position: absolute;

  inset: 0;

  opacity: 0;

  cursor: pointer;

  width: 100%;

  height: 100%;
}

.admin-upload-content {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 8px;

  color: #6b7c93;
}

.admin-upload-title {
  font-size: 14px;

  font-weight: 600;

  color: #1a2b48;
}

.admin-upload-hint {
  font-size: 12px;
}

.admin-upload-preview {
  max-width: 100%;

  max-height: 200px;

  border-radius: 8px;

  object-fit: contain;
}

/* =============================================

   Admin Chart Card

   ============================================= */

.admin-stats-row {
  display: flex;

  flex-wrap: wrap;

  gap: 16px;

  margin-bottom: 24px;
}

.admin-stat-card {
  flex: 1;

  min-width: 180px;

  background-color: #ffffff;

  border: 1px solid #e8edf2;

  border-radius: 12px;

  padding: 20px;

  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
}

.admin-stat-icon {
  width: 36px;

  height: 36px;

  border-radius: 8px;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  margin-bottom: 12px;
}

.admin-stat-icon-navy {
  background-color: #e8edf2;

  color: #0a2540;
}

.admin-stat-label {
  display: block;

  font-size: 11px;

  font-weight: 700;

  color: #6b7c93;

  text-transform: uppercase;

  letter-spacing: 0.5px;

  margin-bottom: 6px;
}

.admin-stat-value {
  display: block;

  font-size: 24px;

  font-weight: 700;

  color: #0a2540;
}

.admin-chart-card {
  background-color: #ffffff;

  border: 1px solid #e8edf2;

  border-radius: 12px;

  padding: 24px;

  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
}

.admin-chart-header {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  margin-bottom: 20px;
}

.admin-chart-title {
  font-size: 18px;

  font-weight: 700;

  color: #0a2540;
}

.admin-chart-body {
  height: 280px;

  position: relative;
}

.admin-chart-legend {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  gap: 24px;

  margin-top: 16px;

  padding-top: 16px;

  border-top: 1px solid #f1f5f9;
}

.admin-legend-item {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 8px;

  font-size: 13px;

  color: #4a5b73;
}

.admin-legend-dot {
  width: 10px;

  height: 10px;

  border-radius: 2px;
}

.admin-legend-gray {
  background-color: #e2e8f0;
}

.admin-legend-teal {
  background-color: #0d9488;
}

/* =============================================

   Admin Profile

   ============================================= */

.admin-profile-layout {
  display: flex;

  flex-wrap: wrap;

  gap: 24px;
}

.admin-profile-sidebar {
  width: 280px;

  min-width: 260px;
}

.admin-profile-card {
  background-color: #ffffff;

  border: 1px solid #e8edf2;

  border-radius: 12px;

  padding: 28px;

  text-align: center;

  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
}

.admin-profile-avatar-wrap {
  position: relative;

  width: 140px;

  height: 140px;

  margin: 0 auto 16px;
}

.admin-profile-avatar-img {
  width: 140px;

  height: 140px;

  border-radius: 12px;

  object-fit: cover;

  border: 2px solid #e8edf2;
}

.admin-profile-avatar-btn {
  position: absolute;

  right: -4px;

  bottom: -4px;

  width: 36px;

  height: 36px;

  border-radius: 50%;

  background-color: #0d9488;

  color: #ffffff;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  border: 3px solid #ffffff;
}

.admin-profile-name {
  font-size: 18px;

  font-weight: 700;

  color: #0a2540;

  margin-bottom: 4px;
}

.admin-profile-designation {
  font-size: 13px;

  color: #6b7c93;

  margin-bottom: 20px;
}

.admin-profile-sidebar-actions {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

.admin-profile-sidebar-actions .admin-btn {
  width: 100%;
}

.admin-profile-main {
  flex: 1;

  min-width: 300px;

  display: flex;

  flex-direction: column;

  gap: 20px;
}

.admin-profile-section {
  background-color: #ffffff;

  border: 1px solid #e8edf2;

  border-radius: 12px;

  padding: 24px;

  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
}

.admin-profile-section-header {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  margin-bottom: 20px;

  padding-bottom: 16px;

  border-bottom: 1px solid #f1f5f9;
}

.admin-profile-section-title-wrap {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 10px;
}

.admin-profile-section-icon {
  width: 32px;

  height: 32px;

  border-radius: 8px;

  background-color: #f0fdfa;

  color: #0d9488;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;
}

.admin-profile-section-title {
  font-size: 16px;

  font-weight: 700;

  color: #0a2540;
}

.admin-profile-section-note {
  font-size: 12px;

  color: #6b7c93;
}

/* =============================================

   Admin Pagination & Toast

   ============================================= */

.admin-pagination-nav {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 12px;
}

.admin-pagination-btn {
  width: 32px;

  height: 32px;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  border-radius: 6px;

  border: 1px solid #e2e8f0;

  color: #4a5b73;

  background-color: #ffffff;
}

.admin-pagination-btn:hover {
  background-color: #f8fafc;

  color: #0d9488;
}

.admin-pagination-btn-disabled {
  opacity: 0.4;

  cursor: not-allowed;
}

.admin-pagination-info {
  font-size: 13px;

  color: #6b7c93;
}

.admin-toast {
  position: fixed;

  bottom: 24px;

  right: 24px;

  padding: 14px 20px;

  border-radius: 8px;

  font-size: 14px;

  font-weight: 500;

  z-index: 200;

  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.15);
}

.admin-toast-success {
  background-color: #0d9488;

  color: #ffffff;
}

.admin-toast-error {
  background-color: #dc2626;

  color: #ffffff;
}

/* =============================================

   Admin Filters, Bulk Actions & Product Badges

   ============================================= */

.admin-page-header-left,
.admin-page-header-right {
  display: flex;

  flex-direction: column;

  gap: 4px;
}

.admin-page-header-right {
  align-items: flex-end;

  justify-content: center;
}

.admin-filter-bar {
  background-color: #ffffff;

  border: 1px solid #e8edf2;

  border-radius: 12px;

  padding: 20px;

  margin-bottom: 16px;

  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
}

.admin-filter-actions {
  display: flex;

  flex-wrap: wrap;

  align-items: flex-end;

  gap: 8px;
}

.admin-search-filter {
  position: relative;

  width: 100%;

  min-width: 220px;
}

.admin-search-filter .admin-search-icon {
  position: absolute;

  left: 12px;

  top: 50%;

  transform: translateY(-50%);

  color: #94a3b8;

  display: flex;
}

.admin-filter-input {
  width: 100%;

  height: 38px;

  padding-left: 38px;
}

.admin-filter-input-inline {
  min-width: 180px;

  height: 34px;

  padding: 0 12px;
}

.admin-btn-sm {
  height: 34px;

  padding: 0 14px;

  font-size: 13px;
}

.admin-btn-success {
  background-color: #059669;

  color: #ffffff;
}

.admin-btn-success:hover {
  background-color: #047857;
}

.admin-btn-danger {
  background-color: #dc2626;

  color: #ffffff;
}

.admin-btn-danger:hover {
  background-color: #b91c1c;
}

.admin-bulk-bar {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  background-color: #f0fdfa;

  border: 1px solid #99f6e4;

  border-radius: 10px;

  padding: 12px 16px;

  margin-bottom: 16px;
}

.admin-bulk-count {
  font-size: 14px;

  font-weight: 600;

  color: #0f766e;
}

.admin-bulk-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}

.admin-table-header {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  padding: 16px 20px;

  border-bottom: 1px solid #e8edf2;
}

.admin-table-title {
  font-size: 16px;

  font-weight: 700;

  color: #0a2540;
}

.admin-table-count {
  font-size: 13px;

  color: #6b7c93;
}

.admin-table-checkbox-col {
  width: 48px;
}

.admin-table-user {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 12px;
}

.admin-table-avatar {
  width: 40px;

  height: 40px;

  border-radius: 50%;

  object-fit: cover;

  flex-shrink: 0;
}

.admin-table-avatar-square {
  border-radius: 8px;
}

.admin-table-avatar-placeholder {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  background-color: #f1f5f9;

  color: #94a3b8;
}

.admin-checkbox-label-compact {
  margin: 0;
}

.admin-stats-row-3 .admin-stat-card,
.admin-stats-row-4 .admin-stat-card {
  flex: 1;

  min-width: 160px;
}

.admin-stat-icon-green {
  background-color: #d1fae5;

  color: #059669;
}

.admin-stat-icon-amber {
  background-color: #fef3c7;

  color: #d97706;
}

.admin-stat-icon-red {
  background-color: #fee2e2;

  color: #dc2626;
}

.admin-badge-pending {
  background-color: #fef3c7;

  color: #d97706;
}

.admin-badge-approved {
  background-color: #d1fae5;

  color: #059669;
}

.admin-badge-rejected {
  background-color: #fee2e2;

  color: #dc2626;
}

.admin-star-rating {
  display: inline-flex;

  align-items: center;

  gap: 2px;
}

.admin-star {
  display: inline-flex;

  line-height: 1;
}

.admin-star-filled {
  color: #f59e0b;
}

.admin-star-empty {
  color: #d1d5db;
}

.admin-table-comment {
  max-width: 280px;

  font-size: 13px;

  color: #4b5563;

  line-height: 1.5;

  word-break: break-word;
}

.admin-action-approve:hover {
  color: #059669;

  background-color: #d1fae5;
}

.admin-action-reject:hover {
  color: #dc2626;

  background-color: #fee2e2;
}

.admin-back-link {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  font-size: 13px;

  font-weight: 500;

  color: #6b7280;

  text-decoration: none;

  margin-bottom: 8px;
}

.admin-back-link:hover {
  color: #1e3a5f;
}

.admin-chat-meta-card {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 20px;

  background: #fff;

  border: 1px solid #e5e7eb;

  border-radius: 12px;

  padding: 20px 24px;

  margin-bottom: 24px;
}

.admin-chat-meta-item {
  display: flex;

  flex-direction: column;

  gap: 8px;
}

.admin-chat-meta-label {
  font-size: 11px;

  font-weight: 600;

  letter-spacing: 0.05em;

  text-transform: uppercase;

  color: #9ca3af;
}

.admin-chat-messages-card {
  background: #fff;

  border: 1px solid #e5e7eb;

  border-radius: 12px;

  overflow: hidden;
}

.admin-chat-messages-list {
  display: flex;

  flex-direction: column;

  gap: 12px;

  padding: 20px 24px 24px;

  max-height: 600px;

  overflow-y: auto;
}

.admin-chat-message {
  border: 1px solid #e5e7eb;

  border-radius: 10px;

  padding: 14px 16px;

  background: #f9fafb;
}

.admin-chat-message-buyer {
  border-left: 3px solid #3b82f6;
}

.admin-chat-message-seller {
  border-left: 3px solid #059669;
}

.admin-chat-message-header {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 12px;

  margin-bottom: 8px;
}

.admin-chat-message-sender {
  display: flex;

  align-items: center;

  gap: 10px;
}

.admin-chat-message-avatar {
  width: 32px;

  height: 32px;

  border-radius: 50%;

  object-fit: cover;

  flex-shrink: 0;
}

.admin-chat-message-avatar-placeholder {
  display: flex;

  align-items: center;

  justify-content: center;

  background: #e5e7eb;

  color: #9ca3af;
}

.admin-chat-message-name {
  display: block;

  font-size: 13px;

  font-weight: 600;

  color: #111827;
}

.admin-chat-message-role {
  display: block;

  font-size: 11px;

  color: #6b7280;
}

.admin-chat-message-actions {
  display: flex;

  align-items: center;

  gap: 8px;

  flex-shrink: 0;
}

.admin-chat-message-time {
  font-size: 11px;

  color: #9ca3af;

  white-space: nowrap;
}

.admin-chat-message-body {
  font-size: 14px;

  color: #374151;

  line-height: 1.6;

  word-break: break-word;
}

.admin-chat-messages-empty {
  text-align: center;

  padding: 40px 20px;

  color: #9ca3af;

  font-size: 14px;
}

/* =============================================

   Admin Panel Responsive

   ============================================= */

@media (max-width: 1024px) {
  .admin-profile-layout {
    flex-direction: column;
  }

  .admin-profile-sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.collapsed {
    transform: translateX(0);
  }

  .admin-sidebar-toggle {
    display: flex;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-content {
    padding: 20px 16px;

    padding-top: 60px;
  }

  .admin-page-title {
    font-size: 22px;
  }

  .admin-form-group-half {
    width: 100%;
  }

  .admin-header-profile .admin-profile-info {
    display: none;
  }
}

/* Admin modal */

.admin-modal {
  position: fixed;

  inset: 0;

  z-index: 1000;

  display: flex;

  align-items: center;

  justify-content: center;
}

.admin-modal-backdrop {
  position: absolute;

  inset: 0;

  background: rgba(15, 23, 42, 0.45);
}

.admin-modal-content {
  position: relative;

  width: min(520px, calc(100% - 32px));

  max-height: calc(100vh - 64px);

  overflow: auto;

  background: #fff;

  border-radius: 12px;

  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.admin-modal-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 18px 20px;

  border-bottom: 1px solid #e8edf3;
}

.admin-modal-title {
  margin: 0;

  font-size: 18px;

  font-weight: 600;

  color: #0f172a;
}

.admin-modal-close {
  border: none;

  background: transparent;

  font-size: 24px;

  line-height: 1;

  color: #64748b;

  cursor: pointer;
}

.admin-modal-body {
  padding: 20px;
}

.admin-detail-list {
  display: grid;

  gap: 12px;
}

.admin-detail-item {
  display: grid;

  gap: 4px;
}

.admin-detail-item dt {
  font-size: 11px;

  font-weight: 600;

  letter-spacing: 0.04em;

  text-transform: uppercase;

  color: #64748b;
}

.admin-detail-item dd {
  margin: 0;

  font-size: 14px;

  color: #0f172a;
}

.admin-detail-value {
  margin: 0;

  font-size: 14px;

  color: #0f172a;
}

.admin-form-inline {
  display: flex;

  align-items: flex-end;

  gap: 16px;

  flex-wrap: wrap;
}

.admin-commission-card {
  margin-bottom: 24px;
}

/* =============================================

   Figma-aligned filter pills & form layout

   ============================================= */

.admin-filter-pills-bar {
  margin-bottom: 12px;
}

.admin-filter-pills-form {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 12px;
}

.admin-filter-pill-group {
  display: flex;
}

.admin-filter-pill {
  display: inline-flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 6px;

  height: 38px;

  padding: 0 12px;

  background-color: #ffffff;

  border: 1px solid #e2e8f0;

  border-radius: 20px;

  cursor: pointer;

  font-size: 13px;

  color: #4a5b73;
}

.admin-filter-pill-icon {
  display: flex;

  color: #0d9488;
}

.admin-filter-pill-text {
  font-weight: 500;

  color: #6b7c93;
}

.admin-filter-pill-select {
  border: none;

  background: transparent;

  font-size: 13px;

  font-weight: 600;

  color: #0a2540;

  cursor: pointer;

  padding: 0;

  min-width: 48px;

  appearance: none;

  -webkit-appearance: none;
}

.admin-filter-pill-chevron {
  display: flex;

  color: #94a3b8;

  pointer-events: none;
}

.admin-filter-pill-search {
  position: relative;

  flex: 1;

  min-width: 200px;

  max-width: 320px;
}

.admin-filter-pill-search .admin-search-icon {
  position: absolute;

  left: 12px;

  top: 50%;

  transform: translateY(-50%);

  color: #94a3b8;

  display: flex;
}

.admin-filter-pill-search-input {
  width: 100%;

  height: 38px;

  padding-left: 38px;

  border-radius: 20px;
}

.admin-filter-toolbar {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  background-color: #ffffff;

  border: 1px solid #e8edf2;

  border-radius: 12px;

  padding: 14px 16px;

  margin-bottom: 16px;

  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
}

.admin-filter-toolbar-left,
.admin-filter-toolbar-right {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 12px;
}

.admin-filter-status-pill {
  display: inline-flex;

  align-items: center;

  height: 34px;

  padding: 0 14px;

  border-radius: 8px;

  background-color: #f8fafc;

  border: 1px solid #e2e8f0;

  font-size: 13px;

  font-weight: 600;

  color: #0a2540;
}

.admin-filter-period-btn.active {
  background-color: #ccfbf1;

  border-color: #0d9488;

  color: #0f766e;
}

.admin-bulk-bar-figma {
  margin-bottom: 0;

  border-radius: 0;

  border-left: none;

  border-right: none;

  background-color: #f8fafc;

  border-color: #e8edf2;
}

.admin-stat-icon-teal {
  background-color: #ccfbf1;

  color: #0d9488;
}

.admin-badge-deactive {
  background-color: #f1f5f9;

  color: #64748b;
}

.admin-badge-blocked {
  background-color: #fee2e2;

  color: #dc2626;
}

.admin-form-card-figma {
  margin-bottom: 20px;

  padding: 24px 28px;
}

.admin-form-card-top {
  display: flex;

  flex-wrap: wrap;

  align-items: flex-start;

  justify-content: space-between;

  gap: 16px;

  margin-bottom: 24px;

  padding-bottom: 20px;

  border-bottom: 1px solid #f1f5f9;
}

.admin-form-card-figma .admin-form-card-title {
  font-size: 16px;

  font-weight: 700;

  color: #0a2540;

  margin: 0;
}

.admin-profile-upload-figma {
  position: relative;
}

.admin-profile-preview-figma {
  position: relative;

  width: 80px;

  height: 80px;

  border-radius: 50%;

  overflow: hidden;

  border: 2px solid #e8edf2;
}

.admin-profile-preview-figma img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.admin-profile-edit-btn {
  position: absolute;

  right: 0;

  bottom: 0;

  width: 28px;

  height: 28px;

  border-radius: 50%;

  background-color: #0d9488;

  color: #ffffff;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  border: 2px solid #ffffff;
}

.admin-form-grid-figma {
  display: flex;

  flex-wrap: wrap;

  gap: 20px;
}

.admin-form-grid-figma .admin-form-group {
  flex: 1;

  min-width: calc(50% - 10px);
}

.admin-form-grid-kyc-figma {
  display: flex;

  flex-wrap: wrap;

  gap: 20px;
}

.admin-form-grid-kyc-figma .admin-form-group {
  flex: 1;

  min-width: calc(50% - 10px);
}

.admin-dropzone {
  display: block;

  cursor: pointer;
}

.admin-dropzone-inner {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 10px;

  min-height: 140px;

  padding: 20px;

  border: 2px dashed #d1d9e6;

  border-radius: 10px;

  background-color: #fafbfc;

  color: #6b7c93;

  text-align: center;

  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.admin-dropzone:hover .admin-dropzone-inner {
  border-color: #0d9488;

  background-color: #f0fdfa;
}

.admin-dropzone-text {
  font-size: 13px;

  line-height: 1.5;

  max-width: 200px;
}

.admin-dropzone-preview-img {
  max-width: 100%;

  max-height: 120px;

  border-radius: 6px;

  object-fit: contain;
}

.admin-form-advanced {
  margin-top: 20px;

  padding-top: 16px;

  border-top: 1px solid #f1f5f9;
}

.admin-form-advanced-toggle {
  font-size: 13px;

  font-weight: 600;

  color: #0d9488;

  cursor: pointer;

  list-style: none;
}

.admin-form-advanced-toggle::-webkit-details-marker {
  display: none;
}

.admin-form-advanced[open] .admin-form-advanced-toggle {
  margin-bottom: 16px;
}

.admin-form-actions-figma {
  display: flex;

  flex-wrap: wrap;

  justify-content: flex-end;

  gap: 12px;

  margin-top: 8px;
}

.admin-form-group-inline {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 10px;
}

.admin-form-select-sm {
  height: 34px;

  min-width: 120px;
}

.admin-modal-content-wide {
  max-width: 520px;
}

.admin-view-user-grid {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-bottom: 20px;
}

.admin-view-user-item {
  flex: 1;

  min-width: calc(50% - 6px);

  padding: 10px 12px;

  background-color: #f8fafc;

  border-radius: 8px;
}

.admin-view-user-label {
  display: block;

  font-size: 11px;

  font-weight: 700;

  color: #6b7c93;

  text-transform: uppercase;

  letter-spacing: 0.4px;

  margin-bottom: 4px;
}

.admin-view-user-value {
  display: block;

  font-size: 14px;

  font-weight: 600;

  color: #0a2540;
}
