/* 全局樣式 */
body {
  font-family: Arial, sans-serif;
  color: #333333;
  /* background: linear-gradient(to bottom, #e6f7ff, #ccf2ff); */
  height: 100vh;
  margin: 0;
}

* {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* 添加文字陰影 */
}
a {
  text-decoration: none;
}

li, ul {
  font-size: 18px;
}

/* 標題樣式 */
#clinic_name {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #026770;
  margin-top: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* 添加文字陰影 */
}

/* 表格外層容器 */
.table-container {
  width: 100%;
  overflow-x: auto; /* 添加橫向滾動 */
  margin: 20px auto;
}

/* 表格樣式 */
table {
  width: 100%; /* 保持表格全寬 */
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #dddddd;
  border-radius: 12px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* 添加陰影 */
}

/* 表頭樣式 */

table th:first-child {
  border-top-left-radius: 12px;
}

table th {
  background-color: #026770; /* 藍綠色 */
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  border: 1px solid #004d40; /* 深藍綠色邊框 */
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* 輕微陰影效果 */
}


table th:last-child {
  border-top-right-radius: 12px;
}

/* 表格單元格樣式 */
table td {
  padding: 12px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  color: #333333;
  border: 1px solid #dddddd;
}

/* 表格最後一行圓角 */
table tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* 懸停效果 */
table td:hover {
  background-color: #e0f7fa;
}

button {
  /* background-color: #4CAF50; 背景顏色 */
  background-color: #026770;
  color: white; /* 文字顏色 */
  padding: 14px 20px; /* 內邊距 */
  border: none; /* 去掉邊框 */
  border-radius: 12px; /* 圓角半徑 */
  cursor: pointer; /* 游標樣式 */
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3), 0px 2px 5px rgba(0, 0, 0, 0.2); /* 添加更深的陰影 */
  transition: box-shadow 0.3s ease; /* 添加過渡效果 */
  font-weight: bold;
  font-size: 18px;
}

button:hover {
  box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.4), 0px 4px 10px rgba(0, 0, 0, 0.3); /* 懸停時的陰影 */
}

/* 響應式設計：針對小屏幕的橫向滾動 */
@media screen and (max-width: 768px) {
  .table-container {
    overflow-x: auto; /* 允許表格橫向滾動 */
  }
  
  table {
    width: 100%; /* 保持表格全寬，即使滾動可用 */
  }
  
  table th, table td {
    padding: 8px;
    text-align: center;
  }
  
  /* 可選：隱藏某些列以簡化顯示 */
  /* table td:nth-child(3), table th:nth-child(3) {
    display: none; 
  } */
}

/* Full-width input fields */
/* input[type=text], input[type=password] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
} */
label {
  font-size: 18px;
}

input[type="text"] {
  font-size: 18px; /* 設定字體大小 */
  width: 150px;    /* 設定輸入框寬度 */
  /* padding: 10px;   增加輸入框內間距，讓它看起來更大 */
}

input[type="submit"] {
  font-size: 18px;  /* 設定字體大小 */
  padding: 10px 20px;  /* 增加按鈕內間距 */
  width: auto;  /* 根據內容自動調整寬度 */
  border-radius: 8px;  /* 圓角邊框 */
}

select {
    font-size: 18px;
    padding: 10px;
}

/* Extra styles for the cancel button */
.cancelbtn {
    width: auto;
    padding: 10px 18px;
    background-color: #f44336;
}

/* Center the image and position the close button */
.imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
    position: relative;
}

img.avatar {
    width: 40%;
    border-radius: 50%;
}

.container {
    padding: 16px;
}

span.psw {
    float: right;
    padding-top: 16px;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button (x) */
.close {
    position: absolute;
    right: 25px;
    top: 0;
    color: #000;
    font-size: 35px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}

/* Add Zoom Animation */
.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
    from {-webkit-transform: scale(0)}
    to {-webkit-transform: scale(1)}
}

@keyframes animatezoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
    span.psw {
        display: block;
        float: none;
    }
    .cancelbtn {
        width: 100%;
    }
}

footer {
  background-color: #f1f1f1;
  text-align: center;
  padding: 5px;
  position: relative;  /* 如果網頁內容不足，可以用這個讓 footer 固定在底部 */
  bottom: 0;
  width: 100%;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);  /* 添加輕微陰影使 footer 更明顯 */
}

.footer-content p {
  margin: 5px 0;
  font-size: 14px;
  color: #333;
  line-height: 1.3;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

header {
  background-color: #f1f1f1;  /* 背景顏色，可以依診所主題色調調整 */
  color: white;
  padding: 5px;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);  /* 添加陰影使其更突出 */
  position: relative;
  width: 100%;
}

.header-content h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

hr {
  border: 0;
  height: 1px;
  background: #ddd;
  margin: 20px 0;
}