body{background:#f8fafc;font-family:Inter,system-ui,sans-serif}

.scm-wrapper{display:flex;flex-direction:column;align-items:center}

.scm-card{
  background:#fff;
  border-radius:18px;
  padding:28px;
  margin:20px 0;
  box-shadow:0 20px 40px rgba(0,0,0,.12);
  max-width:800px;
  width:600%; align-items:center;
}

.center{text-align:center}

.scm-title{font-size:22px;font-weight:700;margin-bottom:8px}
.scm-sub{font-size:14px;color:#64748b}

.scm-lock{
  width:64px;height:64px;
  border-radius:20px;
  background:linear-gradient(135deg,#7c3aed,#f97316);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:28px;
  margin:0 auto 14px
}

.scm-form-center{display:flex;flex-direction:column;gap:14px}

.scm-input{
  height:54px;padding:0 16px;
  border-radius:14px;border:1px solid #e5e7eb;
  font-size:14px
}

.scm-btn{
  height:54px;
  border:none;border-radius:16px;
  background:linear-gradient(135deg,#7c3aed,#f97316);
  color:#fff;font-size:15px;font-weight:600;
  cursor:pointer;margin-top:10px; 
}
.scm-btn.full{width:100%}

.scm-btn.logout{border:0px dashed #c4b5fd;
  padding:10px;border-radius:16px;
  text-align:center; margin-top:10px}

.scm-upload{
  border:0px dashed #c4b5fd;
  padding:22px;border-radius:16px;
  text-align:center
}

.scm-table-wrap{max-width:900px}
.scm-table{width:100%;text-align:center;border-collapse:separate;border-spacing:0 12px}
.scm-table td,.scm-table th{padding:14px;background:#fff}
.scm-table th{font-size:13px;color:#64748b}

.scm-result{max-width:420px}
.scm-download{
  display:block;margin-top:16px;
  border:2px solid #c4b5fd;
  padding:14px;border-radius:14px;
  text-align:center;font-weight:600;color:#7c3aed
}

.scm-error{color:#ef4444;text-align:center}


a.scm-btn.logout{
  display:block;
  text-align:center;
  text-decoration:none;
}
.scm-table-wrap{
  width:100%;
  display:flex;
  justify-content:center;
}

.scm-table{
  width:100%;
  max-width:900px;
}

.scm-center{
  text-align:center !important;
}

.scm-btn.reset{
  background:#e5e7eb;
  color:#111827;
  margin-top:10px;
  text-decoration:none;
  text-align:center;
}

/* PDF Preview Box */
.scm-pdf-preview{
  margin:16px 0;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.scm-pdf-preview iframe{
  border:none;
}


@media (max-width: 600px) {

  .scm-wrapper{
    padding: 10px;
  }

  .scm-card{
    padding: 18px;
    margin: 14px 0;
    border-radius: 14px;
  }

  /* Titles */
  .scm-title{
    font-size: 20px;
  }

  .scm-sub{
    font-size: 13px;
  }

  /* Inputs & buttons */
  .scm-input,
  .scm-btn{
    height: 50px;
    font-size: 14px;
  }

  .scm-btn{
    border-radius: 14px;
  }

  /* Login box */
  .scm-login-box{
    width: 100%;
  }

  /* Upload area */
  .scm-upload{
    padding: 16px;
    font-size: 13px;
  }

  /* Search bar → stacked */
  .scm-search-bar{
    flex-direction: column;
    gap: 12px;
  }

  /* Table responsive */
  .scm-table-wrap{
    overflow-x: auto;
    width: 100%;
  }

  .scm-table{
    min-width: 650px;
  }

  /* PDF preview */
  .scm-pdf-preview iframe{
    height: 260px;
  }

  /* Download button */
  .scm-download{
    padding: 12px;
    font-size: 14px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {

  .scm-card{
    max-width: 90%;
  }

  .scm-title{
    font-size: 21px;
  }

  .scm-search-bar{
    gap: 14px;
  }

  .scm-pdf-preview iframe{
    height: 320px;
  }
}
@media (min-width: 1400px) {
  .scm-card{
    max-width: 640px;
  }

  .scm-table-wrap{
    max-width: 1100px;
  }
}

.scm-error{
  color:#dc2626;
  font-size:14px;
  font-weight:500;
  text-align:center;
}
