.expired-date {
    color: red !important;
    font-weight: bold !important;
}

/* Snackbar styles - 固定在螢幕最前方的小型提示 */
.snackbar {
    visibility: hidden;
    width: auto;
    min-width: 200px;
    max-width: 350px;
    height: auto;
    max-height: 40px;
    line-height: 1.2;
    background: #333;
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 8px 14px;
    position: fixed;
    z-index: 10000;
    left: 50% !important;
    top: 80px;
    transform: translateX(-50%) !important;
    font-size: 13px;
    font-weight: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

/* 不同類型的提示使用不同顏色 */
.snackbar.success {
    background: #28a745;
}

.snackbar.error {
    background: #dc3545;
}

.snackbar.warning {
    background: #ffc107;
    color: #212529;
}

.snackbar.info {
    background: #17a2b8;
}

.snackbar.show {
    visibility: visible;
    -webkit-animation: slideDown 0.3s ease-out, slideUp 0.3s ease-in 3.7s;
    animation: slideDown 0.3s ease-out, slideUp 0.3s ease-in 3.7s;
}

/* 從上方滑入的動畫 */
@-webkit-keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@-webkit-keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
}

/* 移除圖標 */
.snackbar::before {
    content: "";
    margin-right: 0;
}

/* Tab 選單美化樣式 */
.head_container {
    margin-bottom: 30px;
}

.tab_wrap {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.tab {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.tablinks {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    text-decoration: none;
    color: #ffffff;
    background: transparent;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 85px;
    position: relative;
    font-weight: 500;
    text-align: center;
}

.tablinks:last-child {
    border-right: none;
}

.tablinks:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.tablinks.active {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: inset 0 2px 0 #ffffff;
}

.tablinks i {
    font-size: 18px;
    margin-bottom: 6px;
    opacity: 0.9;
    display: block;
    line-height: 1;
    color: #ffffff;
}

.tab-text {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.2;
    white-space: nowrap;
    display: block;
    color: #ffffff;
}

.tab-count {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 400;
    line-height: 1;
    display: block;
    color: #f8f9fa;
}

/* 手機版優化 */
@media (max-width: 768px) {
    .tab_wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab {
        flex-direction: row;
        flex-wrap: nowrap;
        min-width: max-content;
        padding: 10px 15px;
    }
    
    .tablinks {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 12px 16px;
        min-height: 70px;
        min-width: 90px;
        border-right: 1px solid rgba(255, 255, 255, 0.15);
        border-bottom: none;
        white-space: nowrap;
    }
    
    .tablinks:last-child {
        border-right: none;
    }
    
    .tablinks i {
        font-size: 16px;
        margin-right: 0;
        margin-bottom: 4px;
        flex-shrink: 0;
    }
    
    .tab-text {
        font-size: 12px;
        margin-right: 0;
        margin-bottom: 2px;
        flex-grow: 0;
    }
    
    .tab-count {
        font-size: 10px;
        margin-left: 0;
        flex-shrink: 0;
    }
    
    .tablinks:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.25);
    }
    
    /* 添加滑動提示 */
    .tab_wrap::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, transparent, rgba(108, 117, 125, 0.3));
        pointer-events: none;
    }
}

/* 平板版優化 */
@media (max-width: 992px) and (min-width: 769px) {
    .tablinks {
        padding: 10px 6px;
        min-height: 78px;
    }
    
    .tablinks i {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .tab-text {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .tab-count {
        font-size: 10px;
    }
}

/* 小屏幕手機優化 */
@media (max-width: 480px) {
    .head_container {
        padding: 0 10px;
    }
    
    .tab_wrap {
        border-radius: 8px;
        position: relative;
    }
    
    .tab {
        padding: 8px 12px;
    }
    
    .tablinks {
        padding: 10px 12px;
        min-width: 80px;
        min-height: 65px;
    }
    
    .tablinks i {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .tab-text {
        font-size: 11px;
        margin-bottom: 1px;
    }
    
    .tab-count {
        font-size: 9px;
    }
    
    .page_main_title {
        font-size: 22px;
    }
    
    .page_main_title i {
        font-size: 20px;
    }
    
    .page_subtitle {
        font-size: 13px;
    }
}

/* 特別小的屏幕 */
@media (max-width: 360px) {
    .tablinks {
        padding: 10px 12px;
    }
    
    .tab-text {
        font-size: 13px;
    }
    
    .tablinks i {
        font-size: 15px;
        margin-right: 8px;
    }
    
    .tab-count {
        font-size: 11px;
    }
}

/* 動畫效果 */
.tablinks::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tablinks.active::before {
    transform: scaleX(1);
}

/* 統一的圖示樣式 - 移除個別顏色設定 */
.tablinks i {
    color: rgba(255, 255, 255, 0.9);
}

.tablinks:hover i {
    color: #ffffff;
    opacity: 1;
}

.tablinks.active i {
    color: #ffffff;
    opacity: 1;
}

/* 確保文字垂直對齊 */
.tablinks .tab-text,
.tablinks .tab-count {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 桌面版更好的間距控制 */
@media (min-width: 993px) {
    .tablinks {
        padding: 14px 10px;
    }
    
    .tablinks i {
        margin-bottom: 8px;
    }
    
    .tab-text {
        margin-bottom: 4px;
    }
}

/* 頁面標題區域樣式 */
.page_header_container {
    margin-bottom: 25px;
    padding-top: 20px;
}

.page_header_content {
    text-align: center;
    padding: 20px 0;
}

.page_main_title {
    font-size: 32px;
    font-weight: 700;
    color: #cd3f62;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page_main_title i {
    font-size: 28px;
    color: #cd3f62;
    opacity: 0.8;
    order: -1; /* 確保圖示在文字左邊 */
}

.page_subtitle {
    font-size: 16px;
    color: #cd3f62;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .page_main_title {
        font-size: 26px;
        flex-direction: row;
        gap: 8px;
        justify-content: center;
    }
    
    .page_main_title i {
        font-size: 24px;
        order: -1;
    }
    
    .page_subtitle {
        font-size: 14px;
        padding: 0 20px;
    }
    
    .page_header_container {
        margin-bottom: 20px;
        padding-top: 15px;
    }
    
    .page_header_content {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .page_main_title {
        font-size: 22px;
    }
    
    .page_main_title i {
        font-size: 20px;
    }
    
    .page_subtitle {
        font-size: 13px;
    }
}
