/**
 * Transactions Page Styles
 * 提现记录页面专用样式
 */

/* ========== Order Details Card ========== */
.order-info {
    border: 1px solid #616161;
    font-size: 14px;
    padding: 10px;
    border-radius: 10px
}

.detail-card {
    width: 70vh;
    height: 90vh
}

.detail-content {
    flex: 1
}

.detail-content img {
    display: block;
    margin: 10px 0;
    max-width: 100%;
    background-color: #fff
}

.custom-label .q-field__label {
    font-size: 20px;
    color: #000 !important;
}

/* ========== Floating Label Behavior ========== */
.q-field .q-field__control-container {
    position: relative;
}

.q-field .q-field__label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left top;
    transition: top .16s ease, transform .16s ease, font-size .16s ease, opacity .16s ease;
    pointer-events: none;
    opacity: .7;
}

.q-field.is-focused .q-field__label,
.q-field.has-value .q-field__label {
    top: 6px;
    transform: none;
    font-size: 12px;
    opacity: 1;
}

.q-field .q-field__native::placeholder {
    color: transparent;
}

/* Dropdown arrow animation */
.q-btn-dropdown__arrow {
    transition: transform 0.3s ease;
}

.q-btn-dropdown__arrow.open {
    transform: rotate(180deg);
}

/* ========== Language Dropdown ========== */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.q-timeline h6 {
    font-size: 1rem !important;
}

.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;
}

/* ========== Page Title Bar ========== */
.page-title-bar {
    background: #0f52ba;
    color: #fff;
    padding: 16px;
    text-align: center;
}

.page-title-bar h3 {
    margin: 0;
    font-size: 18px;
}

.page-title-bar a {
    position: absolute;
    left: 16px;
    color: #fff;
    font-size: 20px;
}

/* ========== Transaction List ========== */
.transaction-list {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

.transaction-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.transaction-amount {
    font-size: 20px;
    font-weight: 600;
    color: #e74c3c;
}

.transaction-date {
    font-size: 12px;
    color: #999;
}

.transaction-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.transaction-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #e3f2fd;
    color: #1565c0;
}

.status-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-failed {
    background: #ffebee;
    color: #c62828;
}

.fail-reason {
    margin-top: 8px;
    padding: 8px 12px;
    background: #ffebee;
    border-radius: 6px;
    font-size: 12px;
    color: #c62828;
}

.fail-reason strong {
    display: block;
    margin-bottom: 4px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state h4 {
    margin-bottom: 8px;
    color: #666;
}

/* ========== Loading State ========== */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #0f52ba;
}

.loading-state .loading-spinner {
    font-size: 48px;
    margin-bottom: 16px;
}

/* ========== Detail Modal ========== */
.detail-info {
    padding: 10px;
}

.detail-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.detail-item span {
    font-size: 14px;
    color: #333;
}

/* ========== Inline Failure Reason ========== */
.fail-reason-inline {
    background: #ffebee;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 8px;
}

.fail-reason-inline label {
    color: #c62828 !important;
}
