﻿.navbar-logo {
    height: 40px;
    max-width: 200px;
    object-fit: contain;
}

/* 頂部信息欄樣式 */
.top-info-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 2px solid #ffd700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.time-info {
    display: flex;
    align-items: center;
    font-weight: 500;
}

    .time-info::before {
        content: "🕐";
        margin-right: 8px;
        font-size: 16px;
    }

/* 籌碼餘額容器 */
.chip-balance-container {
    display: inline-flex;
    gap: 15px;
    margin-right: 20px;
    align-items: center;
}

/* 單個籌碼餘額項目 */
.chip-balance-item {
    cursor: pointer;
    position: relative;
}

    /* 籌碼餘額項目的工具提示 */
    .chip-balance-item::after {
        content: "點擊兌換";
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: #fff;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }

    .chip-balance-item:hover::after {
        opacity: 1;
    }

    .chip-balance-item:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

/* 籌碼圖標 */
.chip-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    margin-right: 8px;
    color: #fff;
}

/* 籌碼餘額數字 */
.chip-amount {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* 調整 balance-actions 的 flex 布局 */
.balance-actions {
    display: inline-flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    float: right;
}

/* 響應式設計 */
/*@media (max-width: 768px) {
    .chip-balance-container {
        display: none;*/ /* 手機版隱藏籌碼餘額 */
    /*}
}*/

.balance-display {
    display: flex;
    align-items: center;
    background: rgba(255, 215, 0, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.balance-label {
    color: #cccccc;
    margin-right: 8px;
    font-size: 13px;
}

.balance-amount {
    color: #ffd700;
    font-weight: bold;
    font-size: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .action-btn:hover {
        background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
        color: #1a1a1a;
    }

    .action-btn i {
        font-size: 11px;
    }

/* 響應式設計 */
@media (max-width: 768px) {
    .top-info-bar {
        padding: 6px 0;
        font-size: 12px;
    }

    .balance-actions {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }

    .action-buttons {
        gap: 6px;
    }

    .action-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .balance-display {
        padding: 4px 8px;
    }

    .balance-amount {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .balance-actions {
        justify-content: center;
        text-align: center;
    }

    .time-info {
        justify-content: center;
        text-align: center;
    }
}

/* 原有的錢包餘額顯示樣式保持不變 */
.wallet-balance-display {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.balance-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

    .balance-header .currency-symbol {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 12px;
        font-weight: bold;
        margin-right: 8px;
    }

.currency-name {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.balance-amount.large {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
    text-align: right;
}

.more-currencies {
    font-size: 12px;
    color: #6c757d;
    text-align: right;
    margin-top: 4px;
}

/* 連線狀態指示器 */
#wallet-connection-status {
    position: fixed !important;
    top: 45px !important; /* 調整位置避免被頂部欄遮擋 */
    right: 10px !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 6px rgba(0,0,0,0.3) !important;
    border: 2px solid white !important;
}

/* 通知樣式動畫 */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.wallet-notification {
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

    .wallet-notification.closing {
        animation: slideOutRight 0.4s ease-in-out;
    }

/* 調整通知容器位置 */
#wallet-notification-container {
    top: 120px !important; /* 調整避免被頂部欄遮擋 */
}

/* 響應式設計 */
@media (max-width: 768px) {
    #wallet-notification-container {
        right: 10px !important;
        left: 10px !important;
        top: 100px !important;
    }

    .wallet-notification {
        min-width: auto !important;
        max-width: none !important;
    }

    .balance-amount.large {
        font-size: 16px;
    }

    #wallet-connection-status {
        top: 35px !important;
    }
}

/* === 兌換 Modal 樣式 === */
.exchange-direction-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.direction-btn {
    padding: 10px 20px;
    border: 2px solid #dee2e6;
    background: white;
    color: #6c757d;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 150px;
}

    .direction-btn:hover:not(:disabled) {
        border-color: #ffc107;
        color: #495057;
        transform: translateY(-2px);
    }

    .direction-btn.active {
        background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
        color: white;
        border-color: #ffc107;
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    }

    .direction-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.exchange-panel {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s;
}

    .exchange-panel:focus-within {
        border-color: #ffc107;
    }

/* 箭頭容器 */
.exchange-arrow-container {
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.exchange-arrow-icon {
    font-size: 24px;
    color: #ffc107;
}

/* 匯率顯示 */
.exchange-rate-display {
    background: #fef9e7;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
}

    .exchange-rate-display small {
        display: block;
        margin-bottom: 5px;
        color: #6c757d;
        font-size: 12px;
    }

    .exchange-rate-display .fw-bold {
        color: #856404;
    }

/* 反轉按鈕 */
#reverse-exchange-btn {
    padding: 8px 20px;
    font-size: 14px;
}

    #reverse-exchange-btn:hover {
        background-color: #ffc107;
        border-color: #ffc107;
        color: white;
    }

/* 兌換摘要 */
.exchange-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

.summary-header {
    font-weight: bold;
    margin-bottom: 10px;
    color: #495057;
}

/* 輸入框樣式 */
.exchange-panel {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

    .exchange-panel .input-group-text {
        background-color: white;
        border-right: none;
        font-weight: 500;
        color: #6c757d;
        min-width: 60px;
    }

    .exchange-panel .form-control {
        border-left: none;
        font-size: 16px;
    }

        .exchange-panel .form-control:focus {
            box-shadow: none;
            border-color: #ced4da;
        }

/* 響應式調整 */
@media (max-width: 768px) {
    .exchange-arrow-container {
        transform: rotate(90deg);
        margin: 20px 0;
    }

    .direction-btn {
        min-width: 120px;
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* 可點擊的箭頭容器 */
.exchange-arrow-container {
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s;
}

    .exchange-arrow-container:hover {
        border-color: #ffc107;
        transform: scale(1.1);
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
    }

    .exchange-arrow-container:active {
        transform: scale(0.95);
    }

/* 圓形切換按鈕 */
.exchange-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: white;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

    .exchange-toggle-btn:hover {
        border-color: #ffc107;
        color: #ffc107;
        transform: rotate(180deg);
    }

    .exchange-toggle-btn i {
        font-size: 20px;
    }

.exchange-arrow-icon {
    font-size: 24px;
    color: #ffc107;
    transition: transform 0.3s;
}

    /* 反轉動畫 */
    .exchange-arrow-icon.rotating {
        animation: rotate180 0.3s ease-in-out;
    }

@keyframes rotate180 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(180deg);
    }
}

/* 匯率顯示 - 更新樣式 */
.exchange-rate-display {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #ffeaa7;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

    .exchange-rate-display small {
        display: block;
        margin-bottom: 5px;
        color: #856404;
    }

    .exchange-rate-display .fw-bold {
        color: #856404;
    }

/* 錯誤訊息 */
#exchange-error {
    font-size: 14px;
}

/* Modal 樣式調整 */
.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .exchange-toggle-btn {
        margin: 20px 0;
    }
}

/* _Layout.css */

/* Footer Styles - Natural8 風格 */
.footer {
    background-color: rgba(24, 24, 27, 0.5);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    opacity: 0.9;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 1rem;
    }

    .footer-links a {
        color: #9ca3af;
        text-decoration: none;
        transition: color 0.3s ease;
        font-size: 0.95rem;
    }

        .footer-links a:hover {
            color: #fff;
        }

/* 社群媒體圖標 */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
        transform: translateY(-2px);
    }

/* 底部連結 */
.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-bottom-links a {
        color: #9ca3af;
        text-decoration: none;
        font-size: 0.875rem;
        transition: color 0.3s ease;
    }

        .footer-bottom-links a:hover {
            color: #fff;
        }

/* 分隔線 */
.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* 語言選擇器 */
.language-selector .dropdown-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.75rem 1.5rem;
}

    .language-selector .dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.language-selector .dropdown-menu {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-selector .dropdown-item {
    color: #9ca3af;
}

    .language-selector .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .language-selector .dropdown-item.active {
        background: rgba(181, 252, 28, 0.2);
        color: #b5fc1c;
    }

/* 免責聲明 */
.disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

    .disclaimer h6 {
        font-weight: 600;
    }

/* 響應式調整 */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0;
    }

    .footer-title {
        margin-top: 2rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem !important;
    }

    .certifications img {
        height: 40px !important;
    }
}