/* Modal base */
.sot-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 59, 130, 0.45); /* navy overlay */
  z-index: 99999;
  padding: 30px 16px;
  align-items: center;
  justify-content: center;
}

/* Panel */
.sot-modal-panel {
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(9,30,66,0.18);
  overflow: hidden;
  transform: translateY(10px);
}

/* Close button */
.sot-close {
  position: absolute;
  right: 15px;
  top: 3px;
  background: transparent;
  border: none;
  font-size: 25px;
  color: #6b7280;
  cursor: pointer;
  background-color: transparent;
  padding: 0px;
}

/* Header */
.sot-modal-header {
  padding: 10px 20px;
  border-bottom: 1px solid #eff3f7;
}
.sot-modal-header h2 {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 28px;
  color: #0b3b82; /* deep navy */
  letter-spacing: -0.5px;
}

/* Body */
.sot-modal-body {
  padding: 10px;
  display: grid;
  gap: 18px;
}

/* Summary card */
.sot-summary-card {
  background: #fbfdff;
  border-radius: 10px;
  padding: 7px 15px;
  border: 1px solid #eef6ff;
}
.sot-section {
  margin-bottom: 12px;
}
.sot-section-title {
  font-weight: 600;
  color: #0b3b82;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.sot-section-title span { font-size: 16px; }

/* Preformatted text style (keeps newlines) */
.sot-pretext {
  font-family: "Courier New", Courier, monospace;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.55;
  color: #1f2937;
  background: #ffffff;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
}

/* Upload form */
.sot-upload-form {
  /* margin-top: 8px; */
}
.sot-upload-heading {
  margin: 0px;
  color: #0b3b82 !important;
  font-size: 20px !important;
  padding: 0px 10px;
  margin-bottom: 10px;
  margin-top: 10px;
} 

/* Custom file input */
.sot-file-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  /* border-radius: 8px; */
  /* border: 1px dashed #e6eefb; */
  /* margin-bottom: 12px; */
  background: #ffffff;
  cursor: pointer;
  position: relative;
  border-color: #0b5ed7;
  display: flex;
  justify-content: space-between;
}
.form-file {
    border: 1px dashed #0b5ed7;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    padding: 5px 5px;
}
.sot-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.sot-file-name {
  font-size: 14px;
  color: #475569;
  margin-left: auto;
}

/* Buttons */
.sot-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 40px;
}
.sot-btn {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.sot-btn-primary {
  background: #0b3b82;
  color: #fff;
}
.sot-btn-secondary {
  background: transparent;
  color: #0b3b82;
  border: 1px solid #dbeafe;
}

/* Upload status */
.sot-upload-status {
  margin-top: 12px;
  font-size: 14px;
  color: #0b3b82;
  padding-left: 14px;
}
h2#sot-modal-title {
    font-size: 18px;
}

button.sot-btn {
    border-color: var( --e-global-color-accent );
    color: white;
    border-radius: 8px;
}
button.sot-btn:hover, button.sot-btn:focus{
    background-color: var( --e-global-color-accent );
}
button.sot-close:hover, button.sot-close:focus{
    background-color:transparent;
    color:black;
}

/* Responsive */
@media (max-width: 520px) {
  .sot-modal-panel { max-width: 94%; }
  .sot-modal-body { padding: 16px; }
  .sot-modal-header { padding: 18px 16px 6px 16px; }
}
