@font-face {
    font-family: 'SFProTextRegular';
    src: url('/pages/submenu/ERC20/ERC20餘額/fonts/SFProTextRegular.otf') format('opentype');
}

/* 重置樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background-color: #fff;
    color: #333;
}

.wallet-app {
    width: 385px;
    background: #fff;
    min-height: 100vh;
    margin: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 狀態欄 */
.status-bar {
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 21px;
    background-color: #ffffff;
}

.time {
    width: 67px;
    height: 22px;
    color: #000000;
    font-family: 'SFProTextMedium';
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border-radius: 11px;
}

/* 時間狀態樣式 */
.time.green {
    color: #FFFFFF;
    background-color: #30D158;
}

.time.blue {
    color: #FFFFFF;
    background-color: #0A84FF;
}

.time.yellow {
    color: #FFFFFF;
    background-color: #FF9F0A;
}

/* 錢包頭部 */
.wallet-header {
    padding: 0 15px;
    height: 34px;
    display: flex;
    align-items: center;
}

.account-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.account-name-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.icon-ethereum {
    width: 33px;
    height: 34px;
    background: url('/pages/submenu/ERC20/ERC20餘額/images/icon-ethereum.png') no-repeat center;
    background-size: contain;
    margin-right: 8px;
}

.account-name {
    display: flex;
    flex-direction: column;
    padding-top: 4px;
    flex: 1;
}

.account-name span[data-translate="wallet_name"] {
    line-height: normal;
    height: auto;
    color: #A0A4B6;
    font-size: 12px;
    font-family: 'SFProTextRegular';
}

.account-id {
    font-size: 13px;
    font-family: 'SFProTextRegular';
    color: #111D4A;
    margin-top: -5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-san {
    width: 17px;
    height: 18px;
    background: url('/pages/submenu/ERC20/ERC20餘額/images/san.png') no-repeat center;
    background-size: contain;
    margin-left: auto;
}

.icon-down {
    width: 12px;
    height: 6.66px;
    background: url('/pages/submenu/ERC20/ERC20餘額/images/down.png') no-repeat center;
    background-size: contain;
}

/* 餘額卡片 */
.balance-card {
    background: url('/pages/submenu/ERC20/ERC20餘額/images/img-bg.jpeg') no-repeat center;
    background-size: cover;
    color: white;
    height: 138px;
    padding: 16px;
    padding-left: 24px;
    margin: 15px;
    border-radius: 12px;
    position: relative;
}

.balance-amount {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.currency-symbol {
    font-size: 24px;
    font-family: 'SFProTextMedium';
    color: #FFFFFF;
}

.amount {
    font-size: 24px;
    font-family: 'SFProTextMedium';
    color: #FFFFFF;
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    bottom: 50px;
    left: 24px;
}

.wallet-address span {
    font-size: 12px;
    font-family: 'SFProTextRegular';
    color: #9CC0FA;
}

.copy-btn {
    width: 11px;
    height: 12px;
    background: url('/pages/submenu/ERC20/ERC20餘額/images/copy.png') no-repeat center;
    background-size: contain;
    border: none;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
}

.token-label {
    width: 72.19px;
    height: 25px;
    background-color: #87B2F9;
    color: #007FFF;
    font-family: 'SFProTextRegular';
    font-size: 12px;
    padding: 0 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12.5px;
    position: absolute;
    bottom: 21px;
    left: 24px;
}

.icon-right {
    width: 20px;
    height: 20px;
    background: url('/pages/submenu/ERC20/ERC20餘額/images/right.png') no-repeat center;
    background-size: contain;
    position: absolute;
    bottom: 22px;
    right: 24px;
}

/* 操作按鈕 */
.action-buttons {
    height: 66px;
    background: url('/pages/submenu/ERC20/ERC20餘額/images/img-actions.png') no-repeat center;
    background-size: contain;
    margin: 15px;
}

.action-btn {
    display: none;
}

.icon {
    display: none;
}

/* 代幣標籤 */
.token-tabs {
    display: flex;
    height: 22px;
    padding: 0 15px;
    align-items: center;
    justify-content: space-between;
}

.tabs-left {
    display: flex;
    align-items: center;
}

.icon-add {
    width: 21px;
    height: 22px;
    background: url('/pages/submenu/ERC20/ERC20餘額/images/add.png') no-repeat center;
    background-size: contain;
    cursor: pointer;
}

.tab {
    height: 22px;
    line-height: 22px;
    cursor: pointer;
    position: relative;
    margin-right: 30px;
    font-family: 'SFProTextRegular';
}

.tab:last-child {
    margin-right: 0;
}

/* 代幣標籤（激活狀態） */
.tab[data-translate="tokens"] {
    color: #191C1E;
    font-size: 16px;
}

/* NFT和DeFi標籤 */
.tab[data-translate="nft"],
.tab[data-translate="defi"] {
    color: #9598AB;
    font-size: 15px;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 2px;
    background: #191C1E;
}

/* 代幣列表 */
.token-list {
    padding: 0 15px;
    position: relative;
    margin-top: 10px;
}

.token-item {
    width: 355px;
    height: 88px;
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    margin-bottom: 20px;
}

.token-item:last-child {
    margin-bottom: 0;
}

.token-info {
    width: 41px;
    height: 88px;
    display: flex;
    align-items: flex-start;
    margin-right: 12px;
}

.token-icon {
    width: 41px;
    height: 42px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.token-icon.eth {
    background: url('/pages/submenu/ERC20/ERC20餘額/images/icon-eth.png') no-repeat center;
    background-size: contain;
}

.token-icon.usdt {
    background: url('/pages/submenu/ERC20/ERC20餘額/images/icon-usdt.png') no-repeat center;
    background-size: contain;
}

.token-icon.usdc {
    background: url('/pages/submenu/ERC20/ERC20餘額/images/icon-usdc.png') no-repeat center;
    background-size: contain;
}

.token-icon.bnb {
    background: url('/pages/submenu/ERC20/ERC20餘額/images/icon-bnb.png') no-repeat center;
    background-size: contain;
}

/* 右側內容區域 */
.token-content {
    flex: 1;
    height: 88px;
    display: flex;
    flex-direction: column;
}

/* 1區塊 */
.token-header {
    height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.token-name {
    width: 33.53px;
    height: 20px;
    font-family: 'SFProTextRegular';
    font-size: 17px;
    font-weight: 500;
    line-height: 20px;
    color: #191C1E;
}

.token-amount {
    width: 57.41px;
    height: 20px;
    font-family: 'SFProTextRegular';
    font-size: 17px;
    font-weight: 500;
    line-height: 20px;
    color: #191C1E;
    text-align: right;
}

/* 2區塊 */
.token-subheader {
    height: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 12px;
}

.token-subname {
    width: 58.7px;
    height: 15px;
    font-family: 'SFProTextRegular';
    font-size: 13px;
    line-height: 15px;
    color: #9598AB;
}

.token-value-zero {
    width: 16.63px;
    height: 15px;
    font-family: 'SFProTextRegular';
    font-size: 13px;
    line-height: 15px;
    color: #9598AB;
}

/* 3區塊 */
.token-price {
    height: 23px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.price-change {
    height: 23px;
    padding: 0 11px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'SFProTextRegular';
    font-size: 13px;
    white-space: nowrap;
}

.price-change.positive {
    color: #3AC073;
    background-color: #EBF9F1;
}

.price-change.negative {
    color: #EC5D5D;
    background-color: #FDEFEF;
}

.price-usd {
    height: 23px;
    padding: 0 11px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9598AB;
    background-color: #F0F2F8;
    font-family: 'SFProTextRegular';
    font-size: 13px;
    white-space: nowrap;
}

/* 底部圖片 */
.footer-image {
    position: absolute;
    width: 385px;
    height: 78px;
    background: url('/pages/submenu/ERC20/ERC20餘額/images/img-footer.png') no-repeat center;
    background-size: cover;
    z-index: 100;
    bottom: -81px;
    left: 0;
    transform: translateX(290px);
}

/* 容器佈局 */
.container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.preview-section {
    flex: none;
}

.edit-section {
    flex: 1;
    display: flex;
    gap: 20px;
}

/* 編輯區塊樣式 */
.edit-block {
    width: 500px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.edit-block h2 {
    margin-bottom: 20px;
    color: #333;
}

/* 編輯項目樣式 */
.edit-item {
    margin-bottom: 15px;
}

.edit-item label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.edit-item input[type="text"],
.edit-item input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 保存按鈕 */
.save-btn {
    width: 100%;
    padding: 12px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
}

.save-btn:hover {
    background: #1976d2;
}

/* 代幣編輯區域 */
.token-edit .token-inputs {
    display: grid;
    grid-template-columns: 80px 80px 80px 80px 80px 40px;
    gap: 10px;
    align-items: center;
}

.token-inputs input,
.token-inputs select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    height: 35px;
}

.token-visibility {
    background: white;
}

/* 右區塊選擇框樣式 */
.edit-block select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

.edit-block select:focus {
    outline: none;
    border-color: #2196f3;
}

.status-icons {
    width: 71px;
    height: 16px;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
}

.sim-signal {
    width: 20px;
    height: 14px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.network-status {
    width: 18px;
    height: 16px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.battery-status {
    width: 25px;
    height: 14px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
} 