/* =========================================
   會員中心專屬樣式 (mobile-member.css)
   ========================================= */

/* 1. 全局變數與基礎設定 */
:root {
    --sidebar-bg: #324154;      /* 深藍底 */
    --panel-bg: #1e293b;        /* 稍微深一點的底色用來做層次 */
    --text-color: #ffffff;      /* 強制白色 */
    --text-muted: rgba(255, 255, 255, 0.6); /* 次要文字顏色 */
    --accent-orange: #fb923c;   /* 亮橘色主色調 */
    --accent-orange-hover: #ea580c; /* 亮橘色點擊狀態 */
    --accent-red: #ef4444;      /* 登出/警告紅色 */
    --border-color: rgba(255, 255, 255, 0.15); /* 統一邊框顏色 */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--sidebar-bg);
    color: var(--text-color);
    font-family: Consolas, "Microsoft JhengHei", sans-serif;
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
}

/* 2. 標題與排版 */
.page-title {
    margin: 20px 0 15px 0;
    text-align: center;
    font-weight: bold;
    font-size: 22px;
    letter-spacing: 1px;
	color:#ffffff;
}
.display-money{
	color:#ffffff;
}
.display-point{
	color:#ffffff;
}
.auth-container {
    width: 90%;
    max-width: 420px;
    margin: 0 auto 20px auto;
    background-color: var(--panel-bg);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* 3. 輸入框群組 (Input Groups) */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    height: 50px;
    padding: 0 45px 0 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}
.form-control::placeholder {
    color: #ffffff;
}
/* 如果是針對 <option> 的特別處理 (部分瀏覽器支援) */
.selectform-control {
	width: 100%;
    height: 50px;
    padding: 0 45px 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
	background-color: #ffffff;
	color: #00000 !important;
}
.selectform-control:focus {
	border-color: var(--accent-orange);
    background-color: rgba(255, 255, 255, 0.1);
	color: var(--text-color);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
}
.form-control:focus {
    border-color: var(--accent-orange);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
     color: var(--accent-orange);
    cursor: pointer;
    padding: 10px;
}

.form-control:focus + .toggle-password, 
.toggle-password:hover {
    color: var(--accent-orange);
}

/* 4. 按鈕元件 (Buttons) */
.btn {
    width: 100%;
    height: 50px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #ffffff;
}

.btn-primary:hover, .btn-primary:active {
    background-color: var(--accent-orange-hover);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-color);
}

.btn-secondary:hover, .btn-secondary:active {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.btn-danger {
    background-color: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.btn-danger:hover {
    background-color: var(--accent-red);
    color: #ffffff;
}

/* 5. 快速登入區塊 (Social Login) */
.social-divider {
    text-align: center;
    margin-top: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.social-divider span {
    font-size: 13px;
    color: var(--text-muted);
    display: inline-block;
    margin-bottom: 15px;
}

.social-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-social {
    height: 44px;
    min-width: 100px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
}

.btn-social:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-social.line:hover { border-color: #00B900; color: #00B900; }
.btn-social.fb:hover { border-color: #1877F2; color: #1877F2; }
.message1 {
    position: fixed; /* 確保相對於整個瀏覽器視窗固定 */
    left: 50%;       /* 從視窗左邊 50% 開始 */
    top: 50%;        /* 從視窗上邊 50% 開始 */
    /* 利用 transform 將元素自身往左、往上平移 50%，達成真正的中心點重疊 */
    transform: translate(-50%, -50%);
    
    width: 80%;      /* 設定一個寬度，例如螢幕寬度的 80% */
    max-height: 50vh;
    
    /* 隱藏預設狀態 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* 其他樣式 */
    background-color: var(--panel-bg);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/* 顯示時的狀態 */
.message1.active {
    opacity: 1;
    visibility: visible;
}
/* 6. 現代化底部滑出選單 (Bottom Sheet Modals) */
/* 未來可以把 .mydata, .creatememaddress 都套用這個 class */
.bottom-sheet {
    width: 100%;
    height: calc(100% - 55px);
    position: fixed;
    bottom: -100%; /* 預設隱藏在底部 */
    left: 0;
    background-color: var(--panel-bg);
    border-radius: 20px 20px 0 0;
    padding: 20px 15px 40px 15px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    transition: bottom 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); /* 加入貝茲曲線讓滑動有物理感 */
    z-index: 3024;
}

.bottom-sheet.active {
    bottom: 0; /* JS 添加 active class 時滑出 */
}
/* 黑色遮罩 */
.modal {
    z-index: 3020;
}

#member-qrcode {
	width: 120px; 
	height: 120px; 
	border: 1px solid #ddd; 
	padding: 5px; 
	border-radius: 8px;
}
/* 推薦碼視窗主體 */
.recommend {
    background-color: #1a2634; /* 深色調 */
    color: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 25px;
}

/* QR Code 容器 */
.qr-wrapper {
    background: #ffffff;
    padding: 10px;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.qr-wrapper img {
    width: 140px;
    height: 140px;
    display: block;
}

/* 資料列通用樣式 */
.info-row {
    margin-bottom: 10px;
}

.info-row label {
    display: block;
    font-size: 12px;
    color: #8fa3ad;
    margin-bottom: 5px;
    padding-left: 5px;
}

.info-row input {
    width: 100%;
    background: #2c3e50;
    border: 1px solid #3d5166;
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    font-size: 15px;
    text-align: center;
}

/* 數據網格 (並排) */
.stats-grid {
    display: flex;
    gap: 15px;
}

.stats-grid .info-row {
    flex: 1;
}

/* 關閉按鈕 */
.action-bar {
    margin-top: 20px;
    border-top: 1px solid #3d5166;
    padding-top: 20px;
	flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}
/* ---- 歷史訂單卡片樣式 ---- */
#orderListSheet .order-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin: 12px 15px; /* 讓卡片左右有留白，不貼齊邊緣 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); /* 輕微的陰影產生立體感 */
    border: 1px solid #f0f0f0;
}

#orderListSheet .oc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #888;
}

#orderListSheet .oc-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.oc-type-info {
    display: flex;
    align-items: center;
    gap: 8px; /* 徽章與桌號之間的間距 */
}

#orderListSheet .oc-no {
    font-weight: 700;
    font-size: 16px;
    color: #333;
}

/* ★ 用餐類型徽章設計 ★ */
.type-badge {
    padding: 5px 12px;
    border-radius: 20px; /* 圓角膠囊形狀 */
    font-size: 13px;
    font-weight: 700;
}
.type-badge.type-1 { background-color: #e3f2fd; color: #1976d2; border: 1px solid #bbdefb; } /* 內用 (藍色) */
.type-badge.type-2 { background-color: #fff3e0; color: #f57c00; border: 1px solid #ffe0b2; } /* 外帶 (橘色) */
.type-badge.type-3 { background-color: #e8f5e9; color: #388e3c; border: 1px solid #c8e6c9; } /* 外送 (綠色) */
.type-badge.type-4 { background-color: #f3e5f5; color: #7b1fa2; border: 1px solid #e1bee7; } /* 自取 (紫色) */
.type-badge.type-undefined { background-color: #f5f5f5; color: #666; border: 1px solid #ddd; }

/* 桌號標籤樣式 */
.table-tag {
    background-color: #eee;
    color: #555;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #ddd;
}

/* 訂單明細清單 */
#orderListSheet .oc-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
}
/* 訂單明細主列排版 */
#orderListSheet .oc-item-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 重要：讓左右對齊頂部。這樣品名換行時，價格才不會跟著掉到中間 */
}

/* 品名區塊 */
#orderListSheet .oc-name {
    flex: 1 1 auto; /* 讓名稱佔滿剩餘空間 */
    padding-right: 10px; /* 右側保留 15px 的安全距離，絕對不會撞到價格 */
    line-height: 1.4; /* 增加一點行高，換行時兩行字才不會擠在一起 */
    word-break: break-word; /* 允許過長的字串提早換行 */
}

/* 價格區塊 */
#orderListSheet .oc-price {
    flex: 0 0 auto; /* 重要：絕對不允許被壓縮 (flex-shrink: 0) */
    white-space: nowrap; /* 重要：確保價格數字與符號永遠在同一行，絕對不換行 */
    text-align: right;
    font-weight: 500; /* 讓價格稍微粗一點，更有層次 */
	flex-shrink: 0; /* 防止價格被壓扁 */
}
#orderListSheet .oc-item-main .qty {
    color: #f57c00; /* 數量用亮色突顯 */
    margin-left: 5px;
}
#orderListSheet .oc-item-sub {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
    padding-left: 8px;
    border-left: 2px solid #eee;
}

/* 總計區塊 */
#orderListSheet .oc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #e0e0e0;
    font-weight: 700;
    font-size: 15px;
}
#orderListSheet .oc-total {
    color: #e53935; /* 總金額用紅色 */
    font-size: 18px;
}

/* 狀態文字顏色 */
.status-orange { color: #f57c00; font-weight: bold;}
.status-red { color: #e53935; font-weight: bold;}
.status-green { color: #43a047; font-weight: bold;}
.status-gray { color: #9e9e9e; }

/* 修正標題顏色 */
.page-title {
    color: #ffffff !important;
}
/* 強制中間區塊填滿剩餘空間並啟動捲軸 */
.scroll-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* 讓手機捲動有慣性效果 */
}
/* 門市清單項目的統一外觀 */
/* 讓卡片本身成為點擊區域，而不是裡面的 <a> */
.dep-card {
    background: var(--panel-bg);
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden; /* 確保超連結不會溢出 */
}

/* 讓 a 標籤填滿整個 div 卡片 */
.dep-card a {
    display: block;
    padding: 15px;
    text-decoration: none !important;
    color: var(--text-color) !important;
    font-weight: bold;
}

.oc-price {
    
}