body {
    margin: 0;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

.custom-swal {
    width: 1200px !important;
}

.detail-button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background-color: #4CAF50;
  color: white;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s;
}

.detail-button:hover {
  background-color: #45a049; /* 鼠标悬停时变暗 */
}

.footer {
    width: 100%;
    padding: 10px 0;
    background-color: #f2f2f2;
    text-align: center;
    position: fixed;
    left: 0;
    bottom: 0;
}

.container {
    text-align: center;
    max-width: 80%;
    margin: 30px auto;
}


#apiForm {
    margin-bottom: 30px;
}

#apiInput, #submitButton {
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

#apiInput {
    border: 2px solid #333;
    border-radius: 5px;
}

#submitButton {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#submitButton:hover {
    background-color: #333;
}

table {
    border-radius: 10px;
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

th, td {
    border-radius: 10px;
    border: 1px solid #ddd;
    text-align: left;
    padding: 8px;
    word-wrap: break-word;
    max-width: 120px;
}

th {
    border-radius: 10px;
    background-color: #333;
    color: white;
}

.balance-display {
    background-color: #333;
    border-radius: 10px;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    width: fit-content;
    position: relative;
}

.balance-display-min-claude {
    background-color: #333;
    border-radius: 10px;
    color: white;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    width: fit-content;
    position: fixed;
    top: 50px;
    right: -316.6px;
    transition: right 0.3s;
    z-index: 1000;
}

.balance-display-min-claude:hover {
    right: 0;
}

.balance-display-min-claude::before {
    content: '详情';
    position: absolute;
    left: -50px;
    top: 20px;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    padding: 5px 10px;
}

.balance-display-min {
    background-color: #333;
    border-radius: 10px;
    color: white;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    width: fit-content;
    position: fixed;
    top: 50px;
    right: -211px;
    transition: right 0.3s;
    z-index: 1000;
}

.balance-display-min:hover {
    right: 0;
}

.balance-display-min::before {
    content: '详情';
    position: absolute;
    left: -50px;
    top: 20px;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    padding: 5px 10px;
}


.balance-display svg {
    width: 24px;
    height: auto;
    margin-right: 5px;
}

.balance-amount {
    font-size: 24px;
    font-weight: bold;
}

.balance-display-green {
    background-color: #4CAF50;
    border-radius: 10px;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 15px;
    width: fit-content;
    position: relative;
}


.balance-display-red {
    background-color: #F44336;
    border-radius: 10px;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 15px;
    width: fit-content;
    position: relative;
}

.icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    fill: white;
}

.balance-text {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#loadingIndicator {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
}