/* =========================================================
   AUTH (LOGIN PAGE)
   ========================================================= */

.licentra-auth-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #111827, #020617);
  padding: 24px;
}

.licentra-auth-card {
  max-width: 420px;
  width: 100%;
  background: #0f172a;
  border-radius: 18px;
  padding: 26px 26px 24px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e5e7eb;
}

.licentra-auth-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.licentra-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #38bdf8, #0ea5e9 60%, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0b1120;
  font-size: 20px;
}

.licentra-auth-header h1 {
  font-size: 20px;
  margin: 0;
  color: #f8fafc;
}

.licentra-auth-header .muted {
  margin: 3px 0 0;
  font-size: 13px;
  color: #94a3b8;
}

.licentra-auth-form .field {
  margin-bottom: 14px;
}

.licentra-auth-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
  color: #e2e8f0;
}

.licentra-auth-form input[type="text"],
.licentra-auth-form input[type="password"],
.licentra-auth-form input[type="email"] {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(107, 114, 128, 0.7);
  background: rgba(15, 23, 42, 0.75);
  color: #e5e7eb;
  font-size: 14px;
}

.licentra-auth-form input::placeholder {
  color: #6b7280;
}

.licentra-btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ecfdf3;
  border-radius: 999px;
  border: none;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}

.licentra-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(34, 197, 94, 0.45);
}

.licentra-btn-primary.large {
    padding: 12px 26px;
    font-size: 15px;
    border-radius: 999px;
}

.licentra-btn-full {
  width: 100%;
}

.licentra-error {
  background: rgba(248, 113, 113, 0.12);
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.6);
  color: #fecaca;
  font-size: 13px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.licentra-footer-text {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.licentra-dashboard {
  padding: 24px 0;
  max-width: 1180px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.licentra-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start !important;
    gap: 40px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.left-section {
    min-height: 140px;
}

.api-text {
    font-family: monospace;
    white-space: normal;
    line-height: 1.45;
}

.licentra-dashboard-header .left-section {
    flex: 1.5;
}
.licentra-dashboard-header .right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.licentra-dashboard-header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.licentra-dashboard-header .muted {
    margin-top: 4px;
    color: #6b7280;
    font-size: 14px;
}

.licentra-api-card {
    white-space: normal;
    font-family: monospace;
    padding: 12px 16px;
    line-height: 1.4;
}
.licentra-api-card pre {
    margin: 0;
    white-space: pre-wrap;
}

/* Info card (Brand + Quota) */
.licentra-info-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    width: auto;
    min-width: 240px;
}

.info-row {
    margin-bottom: 14px;
}

.info-row .label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
    letter-spacing: .2px;
}

.info-row .value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}


.add-client-btn {
    margin-top: 10px;
    width: 220px;
    text-align: center;
}


.licentra-btn-secondary {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid #d4d4d8;
  background: #f9fafb;
  cursor: pointer;
}

.licentra-filter-bar {
  margin-bottom: 10px;
  display: flex;
  justify-content: flex-end;
}

.licentra-filter-bar form {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.licentra-filter-bar select {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d4d4d8;
  font-size: 13px;
}

.licentra-table-wrapper {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.licentra-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.licentra-table thead {
  background: #f9fafb;
}

.licentra-table th,
.licentra-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.licentra-table th {
  font-weight: 600;
  color: #4b5563;
  font-size: 12px;
}

.licentra-table td .muted {
  font-size: 12px;
  color: #6b7280;
}

/* Status badges */

.status-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.status-approved {
  background: #dcfce7;
  color: #166534;
}

.status-pending {
  background: #fef9c3;
  color: #854d0e;
}

.status-disapproved {
  background: #fee2e2;
  color: #b91c1c;
}



/* =========================================================
   MODAL
   ========================================================= */

.licentra-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.licentra-modal-backdrop.active {
  display: flex;
}

.licentra-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  padding: 20px 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.licentra-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.licentra-modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.licentra-modal-close {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.licentra-modal-body .field {
  margin-bottom: 12px;
}

.licentra-modal-body label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.licentra-modal-body input,
.licentra-modal-body select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d4d4d8;
  font-size: 13px;
}

.licentra-modal-footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
  .licentra-dashboard-header {
    flex-direction: column;
    gap: 24px;
  }
  
  .right-section {
      align-items: flex-start;
  }

  .licentra-dashboard-meta {
    align-items: flex-start;
    margin-top: 10px;
  }

  .licentra-table-wrapper {
    overflow-x: auto;
  }
}
