/* Global material-style form inputs and buttons */

.form-group {
    margin-bottom: 28px;
}

.form-group label,
.la-form-group label,
.bo-basic-info .bo-field > label,
.bo-section-body .bo-field > label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #9c27b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.material-input,
.la-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #bdbdbd;
    padding: 8px 0;
    background: transparent;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    box-shadow: none;
    border-radius: 0;
    transition: border-color 0.3s, border-bottom-width 0.15s;
}

.material-input:focus,
.la-input:focus {
    outline: none;
    border-bottom: 2px solid #8e24aa;
    box-shadow: none;
}

textarea.material-input {
    resize: vertical;
    min-height: 80px;
}

select.material-input {
    padding-right: 1.5rem;
}

/* Page-wide layout helpers */
.page-container{
  width:100%;
  padding:20px 30px;
}

.form-container{
  width:100%;
  max-width:1400px;
}

/* Card / panel containers – compact NAV style */
.material-card-form,
.eprof-card,
.panel{
  background:#ffffff;
  padding:24px;
  border-radius:4px;
  box-shadow:0 1px 3px rgba(0,0,0,.08);
}

/* Primary update button */
.btn-material-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #8e24aa;
    color: #ffffff;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-material-primary:hover,
.btn-material-primary:focus {
    background-color: #7b1fa2;
    color: #ffffff;
}

 .btn-material-primary i {
     margin-right: 8px;
     font-size: 16px;
 }

/* Form actions */
.form-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:16px;
}

/* Responsive grid for forms – 3 columns per row */
.form-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
@media (max-width: 768px) {
  .form-grid{
    grid-template-columns:1fr;
  }
}

/* Floating label fields – Microsoft NAV ERP style (Segoe UI, professional colors) */
.float-field{
  position:relative;
  margin-bottom:16px;
}

.float-input{
  width:100%;
  border:none;
  border-bottom:1px solid #d1d1d1;
  background:transparent;
  padding:16px 0 6px 0;     /* top padding creates room for label */
  font-size:14px;
  font-family:"Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color:#323130;
  outline:none;
  transition:border-color .2s ease;
}

.float-input:focus{
  border-bottom:2px solid #0078d4;
}

/* Label starts INSIDE input */
.float-label{
  position:absolute;
  left:0;
  top:14px;                 /* sits inside input */
  font-size:14px;
  font-family:"Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color:#605e5c;            /* NAV grey when idle */
  pointer-events:none;
  transition:all .15s ease;
}

/* When focused OR has value => float to top */
.float-input:focus + .float-label,
.float-input:not(:placeholder-shown) + .float-label,
.float-field.has-value .float-label{
  top:-6px;
  font-size:11px;
  color:#323130;            /* dark text when floating */
  font-weight:600;
  letter-spacing:.2px;
}

/* Optional: disabled */
.float-input:disabled{
  border-bottom:1px dashed #edebe9;
  color:#605e5c;
}
.float-input:disabled + .float-label{
  color:#a19f9d;
}

