* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  min-height: 100vh;
}

/* HEADER */
.top-bar {
  width: 1280px;
  height: 84px;
  background-color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 35px;
}

.top-bar .company-title {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
}

.top-bar .top-img {
  width: 200px;
  height: auto;
}

main {
  flex: 1;
  padding-bottom: 50px;
}

.main-header {
  width: 1280px;
  height: 116.57px;
  background-color: #1D3B6E;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 35px;
}

.main-header .logo {
  width: 108px;
  height: auto;
}

.main-header nav a {
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
}

.main-header  a:hover {
  color: #FFFFFF;
}

.msds-image {
    width: 500px;
    height: auto;
    margin-top: 10px;
}

/* LOGIN */
/* Container */
.login-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 300px;
    margin: auto;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Label */
.login-card label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Input */
.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
}

.login-card input[type="email"]:focus,
.login-card input[type="password"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.5);
}

/* Checkbox & label inline */
.login-card .remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.login-card .remember-me input {
    margin-right: 8px;
}

/* Forgot Password */
.login-card a {
    color: #1D3B6E;
    text-decoration: underline;
    font-size: 14px;
}

/* Button */
.login-card button {
    display: inline-block;
    background-color: #1D3B6E;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 25px;
}


.login-card button:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* REGISTER */
/* Container */
.register-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 300px;
    margin: auto;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Label */
.register-card label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Input */
.register-card input[type="name"],
.register-card input[type="email"],
.register-card input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
}

.register-card input[type="name"]:focus,
.register-card input[type="email"]:focus,
.register-card input[type="password"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.5);
}

/* Forgot Password */
.register-card a {
    color: #1D3B6E;
    text-decoration: underline;
    font-size: 14px;
}

/* Button */
.register-card button {
    display: inline-block;
    background-color: #1D3B6E;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 25px;
}

.register-card button:hover {
  color: #FFFFFF;
  text-decoration: underline;
}


/* MAIN CONTENT */
.card-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  margin-top: 50px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  width: 100%;
}

.card-container a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 17px;
  line-height: 1.6;
}

.card-container a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.search-card {
  background-color: #FFFFFF;
  width: 300px;
  height: 340px;
  border: 2px solid #1D3B6E;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

.search-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transform: translateY(-4px);
  border-color: #1D3B6E;
}

.search-image {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 15px;
}

.center-button {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.search-button {
  padding: 16px 32px;
  background-color: #1D3B6E;
  border: none;
  border-radius: 50px;
  color: #FFFFFF;
  font-weight: 700px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: 0.3s;
}

.search-button a{
  font-weight: bold;
}

.search-button:hover {
  background-color: #1D3B6E;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.back-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: #1D3B6E;
  border: none;
  border-radius: 25px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  display: flex;
  margin: 20px auto 0 auto;
}

.back-button:hover {
  background-color: #1D3B6E;
  text-decoration: underline;
}

.btn-update {
    background-color: #1f3b73;
    color: white;
    font-weight: 700;
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

.btn-update:hover{
    background-color: #1D3B6E;
    text-decoration: underline;
}

.btn-delete {
    background-color: rgb(255, 0, 0);
    color: white;
    font-weight: 700;
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

.btn-delete:hover{
    background-color: #ff0000;
    text-decoration: underline;
}

.submit-card {
  background-color: #FFFFFF;
  width: 300px;
  height: 340px;
  border: 2px solid #1D3B6E;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

.submit-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transform: translateY(-4px);
  border-color: #1D3B6E;
}

.submit-image {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 15px;
}

.submit-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1D3B6E;
  border: none;
  border-radius: 25px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  display: flex;
  margin: 20px auto 0 auto;
}

.submit-button:hover {
  background-color: #1D3B6E;
  text-decoration: underline;
}

.submit-button-delete {
  display: inline-block;
  padding: 10px 25px;
  background-color: #ff0000;
  border: none;
  border-radius: 25px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  display: flex;
  margin: 20px auto 0 auto;
}

.submit-button-delete:hover {
  background-color: #ff0000;
  text-decoration: underline;
}

.back-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: #1D3B6E;
  border: none;
  border-radius: 25px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  display: flex;
  margin: 20px auto 0 auto;
}

.back-button:hover {
  background-color: #1D3B6E;
  text-decoration: underline;
}

.submitted-data {
  margin: 1px auto;
  padding: 10px 20px;
  width: 100%;
  max-width: 1000px;
  background-color: #ffffff;
  color: #1D3B6E;
}

.submitted-data .row {
  display: flex;
  margin-bottom: 5px;
}

.submitted-data .label {
  width: 220px;
  font-weight: bold;
  font-size: 18px;
}

.submitted-data .value {
  flex: 1;
  font-size: 18px;
}

.submitted-header h3 {
  font-size: 36px;
  margin: 0;
  border-bottom: none;
}

.center-button a {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #1D3B6E;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
  border: none;
}

.center-button a:hover {
  text-decoration: underline;
  background-color: #1D3B6E;
}

.submit-error {
  max-width: 1000px;
  margin: 10px auto;
  padding: 30px;
  text-align: center;
  color: #000000;
}

.submitted-header-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.submitted-header-success img {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
}

.submitted-header-success h3 {
  margin: 0;
  font-size: 30px;
  color: #1D3B6E;
}

.submitted-header-failed {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.submitted-header-failed img {
  width: 150px;
  height: auto;
  margin-bottom: 10px;
}

.submitted-header-failed h3 {
  margin: 0;
  font-size: 30px;
  color: #ff0000;
}

.submit-error p {
  font-size: 22px;
  color: #000000;
  margin: 10px 0 20px 0;
  font-weight: bold;
}

/* FORM CONTAINER */
.form-wrapper {
  width: 1167px;
  background-color: #FFFFFF;
  border-radius: 35px;
  padding: 36px 44px;
  margin-top: 50px;
  margin-bottom: 50px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.25);
  overflow-x: auto;
}

.form-title {
  font-size: 24px;
  font-weight: 500;
  color: #1D3B6E;
  margin-bottom: 20px;
}

.form-title h2 {
  font-size: 24px;
  font-weight: 500;
  color:#1D3B6E;
  margin-bottom: 20px;
}

.divider {
  border-bottom: 1px solid #BDC3C7;
  margin-bottom: 20px;
}

.section-label {
  font-size: 20px;
  font-weight: 500;
  color: #1D3B6E;
  margin: 24px 0 10px;
}

.input-row {
  display: flex;
  justify-content: space-between;
  gap: 0px;
  margin-bottom: 24px;
  color: #1D3B6E;
}

.input-row.buttons {
  display: flex;
  gap: 4px;
  margin-top: 20px;
}

.input-group {
  width: 100%;
}

textarea {
  width: 100%;
  min-height: 40px;
  border: 1px #1D3B6E;
  border-radius: 15px;
  resize: none;
  overflow: hidden;
}

.input-group input {
  width: 97%;
  height: 50px;
  padding: 10px 20px;
  border: 1px solid #1D3B6E;
  border-radius: 15px;
  font-size: 16px;
}

.input-group textarea {
  width: 95%;
  height: 50px;
  min-height: 30px;
  padding: 13px 10px;
  border: 1px solid #1D3B6E;
  border-radius: 5px;
  font-size: 18px;
  resize: none;
  overflow-y: hidden;
  text-align: left;
  vertical-align: top;
}

.input-group-first-aid textarea {
  width: 285%;
  height: 50px;
  min-height: 30px;
  padding: 13px 10px;
  border: 1px solid #1D3B6E;
  border-radius: 5px;
  font-size: 18px;
  resize: none;
  overflow-y: hidden;
  text-align: left;
  vertical-align: top;
}

.input-group textarea::placeholder {
  text-align: left;
}

.upload-section {
  margin-top: 30px;
}

.upload-icon {
  cursor: pointer;
}

.upload-container {
  width: 1055px;
  height: 262px;
  background-color: #FFFFFF;
  border: 1px solid #1D3B6E;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.upload-container img {
  cursor: pointer;
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.upload-text {
  font-size: 20px;
  font-weight: 500;
  color: #1D3B6E;
}

.upload-subtext {
  font-size: 16px;
  font-weight: 500;
  color: #81888D;
  margin-top: 8px;
}

.pdf-note {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 500;
  color: #81888D;
}

.pdf-section {
  margin-top: 20px;
  margin-bottom: 30px;
}

.pdf-section iframe {
  width: 100%;
  height: 500px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* TABLE */
.msds-table {
  width: 90%;
  border-collapse: collapse;
  margin-top: 30px;
  margin-bottom: 30px;
  font-family: Arial, sans-serif;
  border: 1px solid #ddd;
  text-align: center;
  margin: 20px auto;
}

.msds-table {
  margin: 20px auto;
  border-collapse: collapse;
  width: 90%;
  text-align: center;
}

.msds-table th {
  font-size: 17px;
  padding: 12px 15px;
  text-align: center;
  background-color: #1D3B6E;
  color: #ffffff;
}

.msds-table td {
  font-size: 13px;
  padding: 12px 15px;
  text-align: center;
  border: 1px solid #ddd;
}

.msds-table td.icon-cell {
    text-align: center;
    vertical-align: middle;
    justify-content: center;
}

.msds-table td.icon-cell img {
    width: 30px;
    height: 30px;
    display: inline-block;
}

.msds-table tr:nth-child(even) {
  background-color: #FFFFFF;
}

.msds-table tr:hover {
  background-color: #d4deef;
  transition: 0.3s;
}

/* FOOTER */
.footer {
  background-color: white;
  padding: 50px;
  margin-top: 30px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 200px;
  align-items: flex-start;
}

.footer-logo {
  width: 200px;
  flex-shrink: 0;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h3 {
  font-size: 18px;
  color: #1D3B6E;
  margin-bottom: 15px;
  margin-top: 50px;
}

.footer-col p {
  font-size: 12px;
  color: #81888D;
  line-height: 1.5;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 12px;
  color: #81888D;
  text-decoration: none;
}

.footer-col a:hover {
  color: #1D3B6E;
  text-decoration: underline;
}

.footer-space {
  margin-top: 10px;
  text-align: right;
}

.footer-space h2 {
  font-size: 14px;
  color: #1D3B6E;
  margin-bottom: 10px;
}

.footer-space h2 a {
  color: #1D3B6E;
  text-decoration: none;
}

.footer-space h2 a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 50px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #81888D;
  margin-bottom: 5px;
}

.footer-bottom h2 {
  font-size: 12px;
  margin: 0;
}

.footer-bottom h2 a {
  color: #1D3B6E;
  text-decoration: none;
}

.footer-bottom h2 a:hover {
  text-decoration: underline;
}




/* Layout tambahan iky */
.extra-btn {
    margin-top: 15px; /* atur jaraknya */
}

