* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins";
  color: #1f2933;
}

header {
  background: #fff;
  border-bottom: 1px solid #e3e8ee;
}

.logo-container {
  padding: 1rem;
}

.logo-container img {
  height: 42px;
}

.banner {
  width: 100%;
  display: block;
}

.main-container {
  padding: 0 5rem;
}
.main-bg{
 background-color: #E6F0FA;
 content: '';
 height: 6rem;
}
.main-body{
  transform: translateY(-5rem);
  background-color: #FFFFFF;
  padding: 2rem 1.5rem;
  border-radius:.25rem;
  box-shadow: 0 2px 1px -1px #0003, 0 1px 1px #00000024, 0 1px 3px #0000001f;
}
.card-shell {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.card-head {
  padding: 2rem;
  border-bottom: 1px solid #eff2f6;
}

.card-head h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.card-head p {
  margin: 0;
  color: #4b5563;
  line-height: 1.4;
}

.input-host {
  padding: 1.5rem 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card-actions {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  justify-content: flex-end;
}

.card-actions button {
  background: #0050b3;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(0, 80, 179, 0.25);
}

.card-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 80, 179, 0.3);
}

.md-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: 'Poppins';
}
.md-input input::placeholder {
  font-family: 'Poppins';
  font-size: .9 rem;
}
.md-input input::placeholder {
  font-family: 'Poppins';
}
.md-input textarea, .md-input select{
  font-family: 'Poppins';
}
.display-content {
  border: 1px solid #ebebeb;
  padding: 0.5rem;
  border-radius: 10px;
}
.md-input label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.md-input__control {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #d1d9e6;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.md-input__control:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.md-input input {
  width: 95%;
  border: none;
  background: transparent;
  font-size: 1rem;
  outline: none;
  color: #111827;
}

.md-input__helper {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.md-input__error {
  color: #c0392b;
  font-size: 0.8rem;
}

.md-select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #111827;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.status-msg {
  margin: 0;
  padding: 1rem 0;
  color: #475569;
  text-align: center;
}

.status-msg--error {
  color: #c53030;
}

@media (max-width: 640px) {
  .card-head,
  .input-host,
  .card-actions {
    padding: 1.5rem;
  }
}
.btn {
  border: none;
  color: #0f0f0f;
  background-color: transparent;
  padding: .7rem;
  cursor: pointer;
  outline: none;
  border-radius: 6px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  text-transform: uppercase;
  font-family: 'Poppins';
}

/* Focus (keyboard) */
.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
}

/* Active (click) */
.btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.btn-primary {
  background-color: #2563eb;
  color: #f0f0f0;
}
.btn-primary-outline {
  color: #2563eb;
  background-color: #FFFFFF;
  border: 1px solid #2563eb;
}

/* Hover for better UX */
.btn-primary:hover {
  background-color: #1d4ed8;
}

/* Active click */
.btn-primary:active {
  background-color: #1e40af;
  transform: scale(0.96);
}

/* Focus visible */
.btn-primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5);
}

/* ------------------- */
/* Disabled state styles */
.btn:disabled,
.btn-primary:disabled {
  cursor: not-allowed; /* shows disabled cursor */
  opacity: 0.5; /* visually faded */
  transform: none; /* no scale on click */
  box-shadow: none; /* remove focus shadow */
  background-color: #cbd5e1; /* lighter gray for primary */
  color: #6b7280; /* gray text */
  pointer-events: none; /* prevent click/focus entirely */
}
select,
textarea {
  background: transparent;
  border: none;
  width: 100%;
  outline: none !important;
  font-size: 16px;
}
.disabled-container .md-input__control{
  background-color: #f5f5f5;
}
.disabled-container select:disabled{
  color: #111827;
  opacity: 1;
}
select:has(option[value=""]:checked) {
  color:#1119
}
select option {
  color:#111827
}
#fieldHost {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
}
#snackbar-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.snackbar {
  min-width: 250px;
  background-color:#2f96b4;
  color: #fff;
  padding: 12px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  font-family: sans-serif;
}

.snackbar.show {
  opacity: 1;
  transform: translateX(0);
}

.submit-container {
  margin: 20px 0;
  text-align: right;
}
.skeleton-root {
  display: none; /* toggled by JS */
  padding: 12px;
}

/* Card to match form container */
.skeleton-card {
  width: 100%;
  border-radius: 8px;
  padding: 16px;
}

/* layout */
.skeleton-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.skeleton-label {
  width: 120px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e6e6e6 25%, #f2f2f2 50%, #e6e6e6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.skeleton-input {
  flex: 1;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e6e6e6 25%, #f2f2f2 50%, #e6e6e6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.skeleton-input.short {
  width: 160px;
  flex: none;
}
.skeleton-input.long {
  height: 80px;
  border-radius: 8px;
}

.skeleton-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.skeleton-btn {
  width: 120px;
  height: 38px;
  border-radius: 6px;
  background: linear-gradient(90deg, #dcdcdc 25%, #efefef 50%, #dcdcdc 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.skeleton-btn.small {
  width: 80px;
  height: 34px;
}

/* shimmer */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* hide real form while skeleton visible */
.hidden {
  display: none !important;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

/* Dialog box */
.popup-box {
  background: #fff;
  width: 480px;
  max-width: 90%;
  padding: 20px 26px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: popIn 0.25s ease-out;
}

.popup-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.popup-message {
  margin: 0 0 20px;
  font-size: 15px;
  color: #444;
}

.popup-actions {
  text-align: right;
}

.popup-btn {
  padding: 8px 18px;
  border: none;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

@keyframes popIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* Full page overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

/* Hidden by default */
.hidden {
  display: none !important;
}

/* Spinner */
.loader-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ddd;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.text-red {
  color: #ef0000;
}
.file-drop-area {
  display: block;
  border: 2px dashed rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  cursor: pointer;
}
.file-upload-button {
  cursor: pointer;
  color: #1976d2;
  padding-right: 5px;
}
.md-input label.file_upload {
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  color: #1976d2;
  height: 36px;
  align-items: center;
  text-decoration: underline;
}

@keyframes popIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.file-list-container {
  margin-top: 16px;
  padding: 10px;
  border: 1px solid #ccc;
}

.file-item span {
  white-space: nowrap; /* Prevent text from wrapping */
  overflow: hidden; /* Hide overflowing text */
  text-overflow: ellipsis; /* Show ellipsis when text overflows */
  display: inline-block;
  vertical-align: middle;
}

/* Tooltip on hover */
.file-item span[title] {
  cursor: pointer; /* Change cursor to indicate tooltip */
}

.file-item button {
  color: black;
  background: white;
  border: none;
  padding: 5px;
  cursor: pointer;
}
#uploaded_files {
  margin-top: 10px;
  padding: 10px;

  max-width: 220px;
  display: flex;
  flex-direction: row;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  padding: 10px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  border-radius: 8px;
  max-width: 200px;
}
.delete-btn {
  background-color: #ff0000;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
}

.delete-btn:hover {
  background-color: #cc0000;
}
.file-item span {
  font-size: 14px;
  color: #333;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-snackbar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: sans-serif;
  z-index: 9999;
}

.upload-snackbar .progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
  position: relative;
}

.upload-snackbar .progress-indeterminate {
  width: 30%;
  height: 100%;
  background-color: #2563eb;
  position: absolute;
  left: -30%;
  animation: indeterminate 1s infinite linear;
}

@keyframes indeterminate {
  0% {
    left: -30%;
  }
  50% {
    left: 50%;
  }
  100% {
    left: 100%;
  }
}
.md-input__helper-container {
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.md-input__helper-container p {
  margin: 0;
}
.btn-hc-open,
.btn-hc-cls {
  padding: 0;
  margin: 0;
  display: flex;
  width: 22px;
  height: 22px;
  border: 1px solid #6b7280;
  color: #6b7280;
  border-radius: 50%;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.btn-hc-open {
  position: absolute;
  right: 10px;
}
.md-select__control .btn-hc-open {
  right: 35px;
}
.md-input__helper-callout {
  width: 100%;
  background-color: #eff8ff;
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  align-items: center;
  border-radius: 6px;
  position: relative;
}
.md-input__helper-callout::before {
  width: 0px;
  height: 0px;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  border-bottom: 15px solid #eff8ff;
  position: absolute;
  content: "";
  background-color: transparent;
  color: transparent;
  right: 40px;
  top: -14px;
}

.md-input__helper-callout p {
  margin: 0;
  opacity: 0.8;
}
.md-input__error {
  margin: 0;
}
.hero-text{
  padding: 1rem 5rem;
  background-color: #F2F2F2;
}
.hero-text h1{
  font-size: 1.5rem;
  margin: 0;
  font-weight: 400;
}
.mr-1{
  margin-right: .7rem;
}