/* Wallet section styles */
.wallet-section {
    padding-top: 100px;
}

/* Toggle switch styles */
.toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: var(--card-bg);
    padding: 5px;
    border-radius: 5px;
    gap: 10px;
}

.toggle-btn {
    padding: 12px 30px;
    border: none;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Form styles */
.wallet-form {
    display: none;
    padding: 30px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.wallet-form.active {
    display: block;
}

.wallet-form .form-group {
    margin-bottom: 20px;
    width: 100%;
}

.wallet-form input[type="number"],
.wallet-form input[type="text"],
.wallet-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
}

.wallet-form input[type="number"]:focus,
.wallet-form input[type="text"]:focus,
.wallet-form select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 98, 255, 0.1);
}

.wallet-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wallet-form button[type="submit"]:hover {
    background-color: var(--secondary-color);
}

.wallet-form button[type="submit"]:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
}

.message {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

/* Table container for horizontal scrolling */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px; /* Optional: if you want space below the scrollable area */
}

/* Transaction history table styles */
.wallet-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.wallet-table th,
.wallet-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.wallet-table th {
    background-color: var(--card-bg);
    color: var(--primary-color);
    font-weight: 500;
}

.wallet-table tr:hover {
    background-color: var(--card-bg);
}

.status-pending {
    color: #ffa726;
}

.status-completed {
    color: #66bb6a;
}

.status-failed {
    color: #ef5350;
}

.type-deposit {
    color: #66bb6a;
}

.type-withdraw {
    color: #ef5350;
}

/* Pagination styles */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pagination-info {
    color: var(--text-color);
    font-size: 14px;
    opacity: 0.8;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: var(--hover-bg);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-ellipsis {
    color: var(--text-color);
    padding: 0 8px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .wallet-section {
        padding-top: 80px;
    }

    .toggle-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .wallet-form {
        padding: 20px;
    }

    .wallet-form input[type="number"],
    .wallet-form input[type="text"],
    .wallet-form select {
        font-size: 14px;
        padding: 10px;
    }

    .wallet-form button[type="submit"] {
        font-size: 14px;
        padding: 10px;
    }

    .wallet-table th,
    .wallet-table td {
        padding: 8px;
        font-size: 14px;
    }

    .pagination {
        gap: 4px;
    }

    .pagination-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Wallet address styles */
.wallet-address-group {
    margin-bottom: 25px !important;
}

.wallet-address-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#walletAddress {
    flex: 1;
    width: calc(100% - 55px);
    font-family: monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    height: 45px;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}

.copy-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    margin: 0;
    background: transparent !important;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    flex: 0 0 45px;
}

.copy-btn i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.copy-btn:hover {
    color: var(--primary-color);
}

/* Toast notification styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px; /* Default padding for desktop */
    border-radius: 4px; /* Consistent with JS if it sets it */
    font-size: 14px; 
    z-index: 10001; /* Ensure it's above most other elements */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Consistent with JS */
    color: white; /* Default text color */
    opacity: 0; /* JS controls fade-in/out */
    /* transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* JS handles this */
    /* animation: slideIn 0.3s ease-out; /* Add if slide-in animation is triggered by JS */
}

.toast-notification.success {
    /* background-color is set by JS; ensure color provides contrast or set here */
    /* background-color: #28a745; */ 
    color: white;
}
.toast-notification.warning {
    /* background-color: #ffc107; */
    color: white; /* Or consider dark text for yellow warning */
}
.toast-notification.danger {
    /* background-color: #dc3545; */
    color: white;
}
.toast-notification.info { /* Default type */
    /* background-color: #17a2b8; */
    color: white;
}

/* Dark mode adjustments for toast notifications */
/* JS sets background-color, so these rules primarily ensure text color contrast if needed, */
/* or can override background if JS stops setting it. */
.dark-mode .toast-notification.success {
    /* background-color: #2e7d32; */ /* Example if JS didn't set it for dark mode */
}
.dark-mode .toast-notification.warning {
    /* background-color: #ef6c00; */
}
.dark-mode .toast-notification.danger {
    /* background-color: #c62828; */
}
.dark-mode .toast-notification.info {
    /* background-color: #007bff; */
}

/* Mobile responsive adjustments for the FIRST .toast-notification block */
@media (max-width: 768px) {
    .toast-notification {
        padding: 8px 16px; /* Smaller padding for mobile */
        font-size: 13px;  /* Smaller font size for mobile */
        top: 15px;        /* Adjust position slightly for mobile */
        right: 15px;
        max-width: calc(100% - 30px); /* Prevent overflow on small screens */
        box-sizing: border-box;
    }
}

/* @keyframes slideIn { ... } */ /* Ensure this is defined if used */

/* Keep existing styles for .copy-success and its variants */
.copy-success {
    position: fixed;
    top: 20px; /* Or adjust if it clashes with toast-notification */
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000; /* Lower z-index than toast-notification if they can overlap */
    animation: fadeInOut 3s ease;
    background-color: rgba(102, 187, 106, 0.9);
    color: white;
}

.copy-success.danger {
    background-color: rgba(239, 83, 80, 0.9);
}

.copy-success.warning {
    background-color: rgba(255, 167, 38, 0.9);
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

.network-notice {
    margin-top: 10px;
    font-size: 13px;
    color: #ffa726; /* Consider using a CSS variable for this color */
    line-height: 1.4;
}

/* Existing mobile responsive for .copy-success if you had it before */
@media (max-width: 768px) {
    /* This is an example if .copy-success also needs mobile adjustment */
    /* Ensure it doesn't conflict with the .toast-notification media query if styles are shared */
    /* If .copy-success styles were already in a media query, this might be redundant or need merging */
     #walletAddress {
        /* These seem unrelated to copy-success but were in the previous diff's media query */
        /* width: calc(100% - 50px); 
        font-size: 13px;
        padding: 10px 12px;
        height: 40px; */
    }
    .copy-btn {
        /* width: 40px;
        height: 40px;
        flex: 0 0 40px; */
    }
    .copy-btn i {
        /* font-size: 18px; */
    }
    .copy-success {
        /* Adjust .copy-success for mobile if needed */
        padding: 10px 16px; /* Example */
        font-size: 13px;    /* Example */
    }
}

/* 主题切换按钮样式 */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    z-index: 1001;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* 夜间模式变量 */
.dark-mode {
    --primary-color: #64b5f6;
    --secondary-color: #1976d2;
    --text-color: #e0e0e0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --nav-bg: #1a1a1a;
    --border-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* 日间模式变量 */
.light-mode {
    --primary-color: #2962ff;
    --secondary-color: #0039cb;
    --text-color: #333;
    --bg-color: #ffffff;
    --card-bg: #f5f5f5;
    --nav-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* 确保所有元素都使用主题变量 */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.wallet-form input,
.wallet-form select {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

.wallet-table th {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-bottom-color: var(--border-color);
}

.wallet-table td {
    border-bottom-color: var(--border-color);
}

.wallet-table tr:hover {
    background-color: var(--hover-bg);
}

/* 分页按钮样式 */
.pagination-btn {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

.pagination-btn:hover {
    background-color: var(--hover-bg);
}

/* 通知样式 */
.toast-notification {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.nav-items a::after { /* Default state for the pseudo-element */
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0; /* Initially no width */
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out; /* Animate the width */
}
.nav-items a.active::after {
    width: 100%; /* Expand to full width when active */
}

/* 针对手机端的 Toast 大小调整 */
@media (max-width: 768px) {
    .toast-notification {
        padding: 8px 16px;
        font-size: 13px;
        top: 15px;
        right: 15px;
        max-width: calc(100% - 30px);
        box-sizing: border-box;
    }
} 