﻿@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap');
  
html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
  height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: 'Noto Sans TC', '微軟正黑體', '黑體', sans-serif;
    background: url('../img/bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
}

/* 添加半透明漸層覆蓋層提升美感和可讀性 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    z-index: -1;
    pointer-events: none;
}

/* 裝飾性漂浮圓圈 */
body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, 100px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 50px) scale(0.9);
    }
}

/* 通用卡片樣式 */
.card-modern {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.2);
}
/*返回上一頁按鈕*/

#backButton {
    z-index: 9999; /* 確保按鈕在最上層 */
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 80px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3); /* 半透明 */
    border: none;
    border-radius: 10px;
    cursor: pointer;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* 浮空陰影 */
    font-size: 16px;
    color: white;
    font-weight: bold;
}

    /* 滑鼠懸停時變大並提高透明度 */
    #backButton:hover {
        background-color: rgba(0, 0, 0, 0.5) !important;
        transform: scale(1.2) !important;
        box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3) !important;
    }


/* RWD 自適應小螢幕（例如手機） */
@media (max-width: 768px) {
    #backButton {
        width: 70px;
        height: 50px;
        font-size: 14px;
        border-radius: 8px;
    }
}




/*主頁 index*/
section.banner-section.large {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    padding: 60px 0;
}

/*主頁 版型*/
section.frist-section-heading {
    text-align: center;
    padding: 30px 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 30px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.double-column-section ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    gap: 15px;
}

.double-column-section ul li {
    width: calc(50% - 10px);
    box-sizing: border-box;
    margin-bottom: 5px;
    animation: fadeIn 0.6s ease-out backwards;
}

.double-column-section ul li:nth-child(1) { animation-delay: 0.1s; }
.double-column-section ul li:nth-child(2) { animation-delay: 0.2s; }
.double-column-section ul li:nth-child(3) { animation-delay: 0.3s; }
.double-column-section ul li:nth-child(4) { animation-delay: 0.4s; }
.double-column-section ul li:nth-child(5) { animation-delay: 0.5s; }
.double-column-section ul li:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 576px) {
    .double-column-section ul li {
        width: 100%;
    }
}


.dark-gray {
    background: #f2f6f6;
}

.banner-center-mini {
    text-align: center;
}

.banner-center-mini h2 {
    font-size: 36px;
    padding: 0;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.banner-center-mini h2 i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@media (max-width: 576px) {
    .banner-center-mini h2 {
        font-size: 28px;
    }
}

.banner-center-mini small {
    text-align: center;
    font-size: 16px;
    padding: 0;
    margin: 0;
    margin-top: 12px;
    color: #666;
    display: block;
}

.banner-center-content {
    position: relative;
}

    .banner-center-content::before {
        content: '';
        width: 55px;
        height: 5px;
        background: #fff;
        position: absolute;
        right: 4.5vw;
        top: 0;
    }



.custom-button {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0px;
    padding: 18px 20px;
    text-decoration: none;
    color: #fff;
    border: none;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.custom-button i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.custom-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.custom-button:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.custom-button:hover i {
    transform: scale(1.2) rotate(5deg);
}

.custom-button:hover::before {
    left: 0;
}

.custom-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.nav-link.active {
    color: #fdce74;
}

section.banner-bottom-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 30px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

section.banner-bottom-section img {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

section.banner-bottom-section img:hover {
    transform: scale(1.02);
}

#videoPlayer, #imageContainer {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/*除了主頁的Title*/
section.banner-title-section.large {
    background-size: cover;
    background-position: center center;
    padding: 25px 0;
}

section.banner-title-section.large.banner-purple {
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin: 15px;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-purple h2 {
    color: #333;
    font-weight: 700;
    position: relative;
    display: inline-block;
}
/*-------------------------------------------------------------*/

/*預約掛號用 table*/
.table-Appointment thead th,
.table-Appointment td,
.table-Appointment th {
    border: none !important;
    font-weight: normal;
    font-size: 1.2rem;
    text-align: center;
}
.circle-button {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    background-color: #9074d4;
}

table {
    text-align: center;
}

td {
    vertical-align: middle;
}
.custom-table tbody tr:nth-child(even) {
    background-color: #dee6ff; /* 偶數行顏色 */
}

.appointment-thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
}

.appointment-thead th {
    border: none !important;
    padding: 15px 10px;
}

.table-Appointment {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.table-Appointment tbody {
    background: #fff;
}

.table-Appointment tbody tr {
    transition: all 0.3s ease;
}

.table-Appointment tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

#appointmentTable_PC {
    display: table; /* 默認顯示在橫屏時 */
}

#appointmentTable_Phone {
    display: none; /* 隱藏在橫屏時 */
}

@media screen and (max-width: 767px) {
    #appointmentTable_PC {
        display: none; /* 隱藏在直屏時 */
    }

    #appointmentTable_Phone {
        display: table; /* 默認顯示在直屏時 */
    }
}
/*保留換行*/
#appointmentTable_Phone caption {
    white-space: pre-wrap;
}
#appointmentTable_PC caption {
    white-space: pre-wrap;
}

.appointment-tbody {
    background-color: #fff;
}

.btn-doctor {
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.btn-doctor:hover {
    color: #764ba2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-doctor-disabled {
    text-decoration: none;
    color: #938d9d;
    padding: 8px 16px;
    border-radius: 10px;
    display: inline-block;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-doctor-disabled:hover {
    color: #938d9d;
}

/*填寫 預約掛號 表單 */
#showFieldN {
    display: none;
}
.appointment-info {
    margin-top: 12px
}
.appointment-info label {
    letter-spacing: 1px;
    font-size: 20px;
    color: #333333;
}

.appointment-info h4 {
    line-height: 5vh;
    color: #333333;
}
.appointment-info hr {
    margin-top: 0.2rem;
    border: 0;
    border-top: 1px solid #333333;
}
.submit-button {
    padding: 15px 30px;
    margin-top: 5%;
    color: #fff;
    border: none;
    border-radius: 15px;
    width: 60%;
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    margin-bottom: 30px !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transition: left 0.4s ease;
    z-index: 0;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.submit-button:hover::before {
    left: 0;
}

.submit-button:active {
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .submit-button {
        width: 80%;
        font-size: 1.1rem;
    }
}




/*Layout 主要是 全版面通用 共用*/

/* 導航列樣式 */
#neubar {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
}

#neubar .navbar-brand img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

#neubar .navbar-brand img:hover {
    transform: scale(1.05);
}

#neubar .nav-link {
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

#neubar .nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform 0.3s ease;
}

#neubar .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

#neubar .nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* 導航文字樣式 */
#neubar .nav-link .nav-text {
    margin-left: 6px;
    transition: all 0.3s ease;
}

/* 手機版導航樣式調整 */
@media (max-width: 991px) {
    #neubar .nav-link {
        padding: 10px 16px;
        justify-content: flex-start;
    }
    
    #neubar .nav-link i {
        font-size: 1.1rem;
        min-width: 24px;
    }
    
    #neubar .nav-link .nav-text {
        margin-left: 10px;
        font-size: 1rem;
    }
}

/* 後台導航樣式 */
#neubar .nav-link-admin {
    padding: 8px 12px;
    margin: 0 2px;
    font-size: 0.95rem;
    white-space: nowrap;
}

#neubar .nav-link-admin i {
    font-size: 1rem;
}

#neubar .nav-link-admin .nav-text-admin {
    margin-left: 5px;
}

/* 中等螢幕：只顯示圖標 */
@media (min-width: 992px) and (max-width: 1399px) {
    #neubar .nav-link-admin {
        padding: 8px 10px;
        margin: 0 1px;
    }
    
    #neubar .nav-link-admin .nav-text-admin {
        display: none;
    }
    
    #neubar .nav-link-admin i {
        font-size: 1.2rem;
    }
    
    /* 添加 tooltip 提示 */
    #neubar .nav-link-admin {
        position: relative;
    }
    
    #neubar .nav-link-admin:hover::after {
        content: attr(title);
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 0.85rem;
        white-space: nowrap;
        z-index: 1000;
    }
}

/* 大螢幕：顯示圖標+文字 */
@media (min-width: 1400px) {
    #neubar .nav-link-admin {
        padding: 8px 14px;
    }
    
    #neubar .nav-link-admin .nav-text-admin {
        margin-left: 6px;
    }
}

/* 手機版後台導航：顯示完整文字 */
@media (max-width: 991px) {
    #neubar .nav-link-admin {
        padding: 10px 16px;
        justify-content: flex-start;
    }
    
    #neubar .nav-link-admin .nav-text-admin {
        margin-left: 10px;
        font-size: 1rem;
    }
}

/* 預約紀錄表格行顏色 */
.appointment-completed {
    background-color: rgba(40, 167, 69, 0.1) !important;
    transition: all 0.3s ease;
}

.appointment-completed:hover {
    background-color: rgba(40, 167, 69, 0.2) !important;
}

.appointment-pending {
    background-color: rgba(255, 193, 7, 0.05) !important;
    transition: all 0.3s ease;
}

.appointment-pending:hover {
    background-color: rgba(255, 193, 7, 0.15) !important;
}

/* 標記完成按鈕樣式 */
.btn-complete-appointment {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.btn-complete-appointment:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.4);
    color: white;
}

.btn-complete-appointment:active {
    transform: translateY(0);
}

.btn-complete-appointment i {
    margin-right: 5px;
}

/* 取消標記按鈕樣式 */
.btn-unmark-appointment {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(253, 126, 20, 0.3);
}

.btn-unmark-appointment:hover {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(253, 126, 20, 0.4);
    color: white;
}

.btn-unmark-appointment:active {
    transform: translateY(0);
}

.btn-unmark-appointment i {
    margin-right: 5px;
}

/* ==================== 預約表單區塊樣式 ==================== */

/* 區塊標題樣式 */
.info-section-header {
    background: linear-gradient(135deg, rgba(171, 159, 232, 0.2) 0%, rgba(171, 159, 232, 0.1) 100%);
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #ab9fe8;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(171, 159, 232, 0.15);
    animation: fadeIn 0.5s ease-in;
}

.info-section-header i {
    font-size: 1.2rem;
    color: #ab9fe8;
}

.info-section-header span {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.info-section-header small {
    font-size: 0.9rem;
    font-weight: 400;
}

/* 可編輯區塊的標題 */
.info-section-header.editable {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(40, 167, 69, 0.08) 100%);
    border-left-color: #28a745;
}

.info-section-header.editable i {
    color: #28a745;
}

/* 預約資訊區塊 */
.appointment-info-section {
    background: linear-gradient(135deg, rgba(171, 159, 232, 0.05) 0%, rgba(171, 159, 232, 0.02) 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px dashed rgba(171, 159, 232, 0.3);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.appointment-info-section::before {
    content: "🔒";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
}

/* 患者資料區塊 */
.patient-info-section {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(40, 167, 69, 0.2);
    position: relative;
    animation: fadeInUp 0.7s ease-out;
}

.patient-info-section::before {
    content: "✏️";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
}

/* readonly 欄位包裝器 */
.readonly-field-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* readonly 欄位樣式 - 明顯的灰色且帶有紋理 */
.form-control-readonly {
    background: repeating-linear-gradient(
        45deg,
        #f0f0f0,
        #f0f0f0 10px,
        #f5f5f5 10px,
        #f5f5f5 20px
    ) !important;
    color: #666 !important;
    font-weight: 600;
    border: 2px solid #d0d0d0 !important;
    cursor: not-allowed;
    padding-right: 40px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08) !important;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.form-control-readonly:focus {
    background: repeating-linear-gradient(
        45deg,
        #f0f0f0,
        #f0f0f0 10px,
        #f5f5f5 10px,
        #f5f5f5 20px
    ) !important;
    border-color: #ab9fe8 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), 0 0 0 0.2rem rgba(171, 159, 232, 0.2) !important;
}

/* 鎖頭圖標 */
.readonly-lock-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
    pointer-events: none;
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* 可編輯欄位樣式 - 明亮且有焦點效果 */
.form-control-editable {
    background: white !important;
    border: 2px solid #28a745 !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.1);
}

.form-control-editable:focus {
    background: #fffef8 !important;
    border-color: #20c997 !important;
    box-shadow: 0 0 0 0.3rem rgba(40, 167, 69, 0.15), 0 4px 12px rgba(40, 167, 69, 0.2) !important;
    transform: translateY(-2px);
}

.form-control-editable::placeholder {
    color: #aaa;
    font-style: italic;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .appointment-info-section,
    .patient-info-section {
        padding: 15px;
    }

    .info-section-header {
        padding: 10px 15px;
        flex-wrap: wrap;
    }

    .info-section-header small {
        flex: 1 0 100%;
        margin-top: 5px;
    }

    .appointment-info-section::before,
    .patient-info-section::before {
        font-size: 1.2rem;
        top: 8px;
        right: 10px;
    }

    .readonly-lock-icon {
        font-size: 1rem;
        right: 10px;
    }
}

.home-icon {
    text-decoration: none;
}
    .home-icon i {
        vertical-align: middle;margin-right:10px;
    }


.alert-danger {
    margin-top: 12px;
    border-radius: 12px;
    border: none;
    border-left: 5px solid #dc3545;
    background: rgba(220, 53, 69, 0.1);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.15);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.alert-success {
    border-radius: 12px;
    border: none;
    border-left: 5px solid #28a745;
    background: rgba(40, 167, 69, 0.1);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.15);
}

.alert-info {
    border-radius: 12px;
    border: none;
    border-left: 5px solid #17a2b8;
    background: rgba(23, 162, 184, 0.1);
    box-shadow: 0 3px 10px rgba(23, 162, 184, 0.15);
}
.form-group label {
    letter-spacing: 0.5px;
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    color: #333;
    font-weight: 600;
}

.form-control {
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 18px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-select {
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 18px;
    padding-right: 40px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    background: #fff;
    transform: translateY(-1px);
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: #b8b8b8;
}

.form-select:hover {
    border-color: #b8b8b8;
    cursor: pointer;
}

@media (max-width: 576px) {
    .form-control,
    .form-select {
        font-size: 16px;
    }
}


header {
    flex-shrink: 0;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

footer {
    flex-shrink: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-top: 50px;
}

.footer div {
    margin: 12px;
    line-height: 1.8;
    color: #555;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.footer img {
    max-height: 30px;
    margin-left: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.footer img:hover {
    transform: scale(1.1);
}
/* 只在最新消息列表中的鈴鐺圖標使用漸層色 */
.bell-news {
    color: #ab9fe8;
}

.date-and-shift {
    color: #333333;
    line-height: 3vh;
    margin-bottom: -10px;
    font-size: 1.3rem;
    padding: 12px 0;
}
    .date-and-shift hr {
        margin-top: 0.4rem;
        border: 0;
        border-top: 1px solid #dee2e6;
    }    

.large-date {
    margin-right: 1px;
}

/* 日期區段樣式 */
.date-section {
    font-size: 1.2rem;
    color: #333;
}

.division-section {
    font-size: 1.1rem;
    color: #495057;
}

/* 時段徽章樣式增強 */
.date-and-shift .badge {
    font-size: 0.95rem;
    padding: 6px 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-visitor {
    table-layout: fixed;
}
    .table-visitor thead tr {
        border-bottom: 2px solid white; 
    }

/* DataTables Buttons 樣式 */
/* 匯出按鈕群組 - 單獨一行 */
.dataTables_wrapper .dt-buttons {
    margin-bottom: 15px;
    text-align: right;
}

.dataTables_wrapper .dt-buttons .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* 每頁顯示數量和搜尋框 - 同一行 */
.dataTables_wrapper .dataTables_length {
    float: left;
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_filter {
    float: right;
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 0.5rem;
}

/* 清除浮動 */
.dataTables_wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* 確保按鈕行和搜尋行分開 */
.dataTables_wrapper .dt-buttons {
    clear: both;
    display: block;
    width: 100%;
}

.dt-button-collection {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dt-button-collection .dt-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
}

.dt-button-collection .dt-button:hover {
    background-color: #f8f9fa;
}


#cancelBtn {
    height: 26px;
    width: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cancel-btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
/*登入 重設密碼按鈕*/
.login-container {
    display: flex;
    justify-content: center;

}

.left-submit-button, .right-submit-button {
    padding: 12px 25px;
    margin-top: 2%;
    margin-bottom: 3%;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    width: 45%;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.left-submit-button::before, .right-submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.left-submit-button:hover, .right-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.left-submit-button:hover::before, .right-submit-button:hover::before {
    left: 0;
}

.left-submit-button {
    margin-right: auto;
}

.right-submit-button {
    margin-left: auto;
}

@media (max-width: 576px) {
    .left-submit-button, .right-submit-button {
        width: 100%;
        margin: 10px 0;
    }
    
    .login-container {
        flex-direction: column;
    }
}

#InquireErrorMessage {
    display:none;
}
/*進度查詢 預約結果 預約進度 頁面*/
/* 先定義手機上的樣式 */
.mobile-style {
    display: block; /* 手機上顯示為區塊元素 */
    /*text-align: center; /* 文字居中 */
}

/* 定義橫屏時的樣式 */
@media only screen and (min-width: 768px) {
    .mobile-style {
        display: inline-block; /* 橫屏時顯示為內聯區塊元素 */
        text-align: left; /* 文字靠左對齊 */
    }
}

.five_section_label {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 20px 15px 20px;
    display: block;
    margin-top: 20px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-image-slice: 1;
}

.five_section_label:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.five_section_label h4 {
    font-size: 1.2rem;
    line-height: 35px;
    color: #333;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/*最新消息 和 診所介紹 - TinyMCE 內容樣式*/
.ck-content {
    line-height: 1.8;
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

/* 確保 TinyMCE 內容中的圖片響應式 */
.ck-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 15px auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* TinyMCE 內容中的表格 */
.ck-content table {
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
    margin: 15px 0;
}

.ck-content table td,
.ck-content table th {
    padding: 10px;
    border: 1px solid #ddd;
}

/* TinyMCE 內容中的影片和 iframe */
.ck-content iframe,
.ck-content video {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px;
    margin: 15px auto;
    display: block;
}

/* TinyMCE 內容中的段落 */
.ck-content p {
    margin-bottom: 15px;
}

/* TinyMCE 內容中的標題 */
.ck-content h1,
.ck-content h2,
.ck-content h3,
.ck-content h4,
.ck-content h5,
.ck-content h6 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

/* TinyMCE 內容中的列表 */
.ck-content ul,
.ck-content ol {
    padding-left: 30px;
    margin-bottom: 15px;
}

.ck-content li {
    margin-bottom: 8px;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .ck-content {
        padding: 20px 15px;
    }
    
    .ck-content img {
        margin: 10px auto;
    }
}

/*看診進度 顯示所有診間的 進度*/
.Total_center_label {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 20px 40px 20px;
    display: block;
    margin-top: 20px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s ease;
}

.Total_center_label:hover {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.Total_center_label h4 {
    font-size: 1.6rem;
    line-height: 35px;
    color: #333;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-bottom-right {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.btn-bottom-right:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
    color: #fff;
}

/*最新消息*/
.news-container {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.list-group {
    padding: 0;
}

.list-group-item {
    margin-bottom: 15px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.list-group-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.list-group-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.list-group-item:hover::before {
    transform: scaleY(1);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.empty-state i {
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state p {
    color: #999;
    font-size: 1.1rem;
}

.btn-link {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    text-decoration: none;
    border: none;
    background: none;
    color: #333;
    cursor: pointer;
    width: 100%;
    padding: 8px 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #667eea;
}

.modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
}

.modal-content {
    padding: 20px;
    border-radius: 20px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.modal-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.bell-news {
    margin-right: 12px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-news {
    text-align: left;
    transition: transform 0.2s ease;
}

.btn-news:hover .bell-news {
    animation: ring 0.5s ease;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/*login*/
.login-form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.toggle-password {
    position: absolute;
    top: 20px;
    right: 15px;
    cursor: pointer;
    color: #667eea;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.toggle-password:hover {
    color: #764ba2;
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .login-form-container {
        padding: 25px;
    }
}

/*maintain 上傳跑馬 圖片*/
.upload-img{
    height:150px;
    width:auto;
}

#videoPlayer {
    width: 100%;
}
#videoPlayer2 {
    width: 100%;
    display:none; /*先關閉影片*/
}

/*編輯跑馬頁面 的圖片*/
.upload-img{
    width:auto;
}
/*input and button Edit*/
.enableEditBtn {
    width: 80px;
    margin-left: 5px;
}
.div-flex {
    display: flex;
}




    

              