body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #0fd5f3 99%, #fad0c4 0%);
    font-family: 'Arial', sans-serif;
    background-size: cover;
    overflow: hidden;
}

.login-container, .content {
    background: rgba(255,255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    animation: fadeIn 1s ease-in-out;
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container h1 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #333;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

.login-container input {
    width: calc(100% - 24px); /* 這裡確保與按鈕寬度一致 */
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.login-container input:focus {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.login-container button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.login-container button:hover {
    background: linear-gradient(135deg, #a777e3, #6e8efb);
    transform: translateY(-5px);
}

#message {
    color: red;
    margin-top: 1rem;
    text-align: center;
}

#contentPage {
    display: none;
}

#contentPage.show {
    display: block;
}

#greeting {
    font-size: 1.5rem;
    color: #333;
    margin-top: 1rem;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

#balance {
    font-size: 1.2rem;
    color: #333;
    margin-top: 1rem;
    text-align: center;
}

#data-table-container {
    max-height: 400px; /* 根據需要調整高度 */
    overflow-y: auto;
    margin-top: 1rem;
    width: 100%;
    animation: fadeIn 2s ease-in-out;
}

#data-table {
    width: 100%;
    border-collapse: collapse;
}

#data-table th, #data-table td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: left;
}

#data-table th {
    background-color: #f2f2f2;
}
