/* assets/css/trackreg.css */

.trackbody {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    linear-gradient(
      135deg,
      rgba(17, 1, 96, 0.7) 0%,
      rgba(114, 3, 107, 0.5) 100%
    ),
    url("../imgs/imageweb13.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.tracking-container {
  width: 100%;
  max-width: 550px;
}

.tracking-card {
  background-color: var(--surface-white);
  border: 1px solid rgba(30, 0, 181, 0.08);
  border-radius: 12px;
  padding: 40px;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.05),
    0 5px 15px rgba(30, 0, 181, 0.02);
  position: relative;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-header {
  text-align: center;
  margin-bottom: 30px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(30, 0, 181, 0.06);
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.card-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink-black);
  margin-bottom: 8px;
}

.card-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Custom Input Field Layout */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 6px;
}

.required {
  color: #e53e3e;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-with-icon input[type="text"] {
  width: 100%;
  padding: 14px 16px 14px 45px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  color: var(--ink-black);
  font-family: "Courier New", Courier, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  outline: none;
  text-transform: uppercase;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.input-with-icon input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(30, 0, 181, 0.1);
}

.input-with-icon input:focus + i {
  color: var(--brand-blue);
}

.error-text {
  color: #e53e3e;
  font-size: 0.78rem;
  margin-top: 5px;
  min-height: 15px;
  font-weight: 500;
}

/* Tracking Button Elements */
.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--brand-blue);
  color: var(--surface-white);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.submit-btn:hover {
  background-color: #170094;
  box-shadow: 0 4px 12px rgba(30, 0, 181, 0.2);
}

.submit-btn:disabled {
  background-color: #a0aec0;
  cursor: not-allowed;
  box-shadow: none;
}

/* Alert Boxes Styling */
.alert-box {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 500;
}

.alert-box.error {
  background-color: #fff5f5;
  border: 1px solid #feb2b2;
  color: #c53030;
}

/* STATUS INTERFACE VISUAL BLOCKS */
.back-btn {
  background: none;
  border: none;
  color: var(--brand-blue);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 25px;
  padding: 0;
  transition: transform 0.2s ease;
}

.back-btn:hover {
  transform: translateX(-2px);
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.status-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-black);
}

.badge-code-display {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  background-color: var(--bg-light);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
}

.status-divider {
  border: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 18px 0 25px 0;
}

.status-result-block {
  text-align: center;
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.status-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.status-icon.approved {
  color: #48bb78;
}
.status-icon.pending {
  color: var(--brand-blue);
}
.status-icon.rejected {
  color: #e53e3e;
}

.msg-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.approved-text {
  color: #2f855a;
}
.pending-text {
  color: var(--brand-blue);
}
.rejected-text {
  color: #9b2c2c;
}

/* Status Banners */
.message-banner {
  padding: 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 600;
  margin-bottom: 25px;
  text-align: left;
}

.approved-banner {
  background-color: #f0fff4;
  border-left: 4px solid #48bb78;
  color: #22543d;
}

.pending-banner {
  background-color: rgba(30, 0, 181, 0.04);
  border-left: 4px solid var(--brand-blue);
  color: #2d3748;
}

.rejected-banner {
  background-color: #fff5f5;
  border-left: 4px solid #f56565;
  color: #742a2a;
}

/* Metadata Parameters */
.metadata-grid {
  display: flex;
  justify-content: space-around;
  background: var(--bg-light);
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.meta-item {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.role-badge {
  background-color: var(--brand-blue);
  color: #ffffff;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.sub-alert-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  font-style: italic;
}

.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
