body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
}
.container {
  background: white;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;

  margin: 100px auto;
  width: 320px;
}
h2 {
  font-size: 28px;
  margin-bottom: 20px;
}
input, button {
  font-size: 16px;
  padding: 8px;
  width: 100%;
  margin: 10px 0;
  box-sizing: border-box;
}
button {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
button:hover {
  background-color: #2980b9;
}
.error {
  color: red;
  margin-top: 10px;
}

/* Secure Data Page 專用樣式 */
.secure-wrapper {
  max-width: 960px;
  margin: 40px auto;
  padding: 20px;
}

.userinfo {
  background-color: #eef3fb;
  padding: 16px 24px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: left;
  border: 1px solid #d0d0d0;
}

.userinfo p {
  margin: 6px 0;
  font-size: 16px;
}

hr {
  margin: 30px 0;
  border: 0;
  border-top: 2px solid #ccc;
}

.upload-form {
  margin-bottom: 30px;
  text-align: left;
}

.upload-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.upload-form input[type="file"] {
  margin-top: 6px;
}

.upload-form select {
  font-size: 16px;
}

.upload-form input,
.upload-form select {
  padding: 2px 6px;
  margin: 0;
  height: 28px;
  box-sizing: border-box;
}

.upload-form table tr {
  height: 40px;
}

.upload-form button {
  width: auto;          /* 蓋掉 width: 100% */
  padding: 4px 16px;
  margin: 0;
  font-size: 16px;
}

.upload-form table tr:last-child td {
  text-align: center;
}

.inline-delete-form {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

.inline-delete-form button {
  width: auto;
  padding: 2px 8px;
  font-size: 14px;
  margin: 0;
}

.status-form button {
  width: auto;          /* 蓋掉 width: 100% */
  padding: 2px 6px;     /* 縮小內距 */
  margin: 0;            /* 移除上下 margin */
  font-size: 14px;
  line-height: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th {
  background-color: #3498db;
  color: white;
  padding: 10px;
  text-align: left;
}

td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

td.status-cell {
  white-space: nowrap;
}

.logout {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  color: #3498db;
}

.logout:hover {
  text-decoration: underline;
}

