/**
 * Wallet Page Styles
 * 钱包页面专用样式
 */

/* ========== Loading Overlay ========== */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}
.page-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #0f52ba;
    border-radius: 50%;
    animation: page-spin 0.8s linear infinite;
}
@keyframes page-spin {
    to { transform: rotate(360deg); }
}

/* ========== Wallet Card ========== */
.wallet-card {
    background: #0f52ba;
}

/* ========== Credit Stars ========== */
.credit-stars .q-rating__icon--active {
    color: #ffd700 !important;
}

/* ========== Wallet Page Layout ========== */
.wallet-page {
    max-width: 600px;
    margin: 0 auto;
}

.rounded {
    background-color: #0f52ba !important;
}

.wallet-info {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .1019607843);
}

.custom-label {
    font-size: 21px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .6);
}

.custom-label .q-field__label {
    font-size: 20px;
    color: #fff;
}

/* ========== Order Info ========== */
.order-info {
    border: 1px solid #616161;
    font-size: 14px;
    padding: 10px;
    border-radius: 10px;
}

/* ========== Language Dropdown ========== */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown .lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

.language-dropdown .lang-btn img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.language-dropdown .lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: none;
    z-index: 100;
}

.language-dropdown .lang-menu li {
    padding: 6px 12px;
}

.language-dropdown .lang-menu li+li {
    margin-top: 4px;
}

.language-dropdown .lang-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    text-decoration: none;
    width: 100%;
    transition: all 0.3s ease;
}

.language-dropdown .lang-menu li.active {
    background: #f5f5f5;
}

/* ========== SweetAlert2 Custom Theme ========== */
.swal2-popup {
    border-radius: 12px !important;
    max-width: 90% !important;
}
.swal2-confirm {
    background-color: #0f52ba !important;
}
.swal2-cancel {
    background-color: #6c757d !important;
}
.swal2-modal {
    overflow: visible !important;
}
.swal2-content {
    overflow: visible !important;
}
.swal2-html-container {
    overflow: visible !important;
    margin: 0 !important;
}
.swal2-input {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 8px 0 !important;
    overflow: hidden !important;
}
