/* General Container */
.container-w {
    margin-top: 3rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 1rem;
}

/* Base button styling */
.btn-w {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    background-color: black;
    color: white;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: fit-content;
    margin: 0.5rem auto;
}

/* Button hover effect */
.btn-w:hover {
    background-color: green;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(80, 159, 201, 0.3);
}

/* Button active effect */
.btn-w:active {
    background-color: #2c7a99;
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Button disabled state */
.btn-w:disabled {
    background-color: #d1d1d1;
    color: #a5a5a5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Special styling for links styled as buttons */
a.btn-w {
    text-decoration: none;
    display: inline-block;
    color: white;
}

a.btn-w:hover {
    text-decoration: none;
}

/* Card Style for Balance */
.balance-card {
    background-color: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    text-align: center;
    width: 100%;
    max-width: 400px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

.balance-card .main_heading {
    font-size: 1.6rem;
    color: #2c3e50;
}

.balance-card .sub_heading {
    font-size: 1.3rem;
    color: #59b200;
    margin: 1rem 0;
}

.balance-card .btn-w {
    background-color: #509fc9;
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.balance-card .btn-w:hover {
    background-color: #3f8bb3;
}

/* Card Style for Withdraw History */
.history-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 900px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

.history-card .main_heading {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table th,
table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 1.1rem;
}

table th {
    background-color: #f1f1f1;
    color: #444;
}

table tr:nth-child(even) {
    background-color: #fafafa;
}

table tr:hover {
    background-color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .balance-card,
    .history-card {
        padding: 1.5rem;
        max-width: 100%;
    }

    .balance-card .btn-w {
        font-size: 1.1rem;
        padding: 0.7rem 1.2rem;
    }

    table th,
    table td {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .balance-card,
    .history-card {
        padding: 1.2rem;
    }

    .balance-card .btn-w {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    table th,
    table td {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}
