.container-dashboard {
    max-width: 480px;
    margin: 40px auto;
    padding: 10px;
    background: #F8F8FF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Kanit', Arial, sans-serif;
}

/* ===== Head Dashboard ===== */
.head-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(120deg, #c71f87, #75006A);
    color: #fff;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-family: "Kanit", sans-serif;
    flex-wrap: wrap;
}

.head-left,
.head-right {
    width: 50%;
}

.head-right {
    text-align: right;
}

.head-left p,
.head-right p {
    margin: 6px 0;
    font-size: 14px;
}

.balance {
    width: 100%;
    text-align: right;
}

.balance-text {
    font-weight: 600;
    margin-top: 10px;
    font-size: 16px !important;
}

.balance-amount {
    font-size: 30px;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.balance-bath {
    font-size: 20px;
}


/* ===== Checkin and Withdraw ===== */
.section-checkin-withdraw {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.form-checkin {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 30px;
}

.btn-checkin {
    padding: 5px !important;
    background-color: #FFF8DC !important;
    border-radius: 10px !important;
    border-color: #B8860B !important;
    color: #B8860B !important;
}

.btn-checkin:hover {
    color: #FFF8DC !important;
    background-color: #B8860B !important;
}

.form-withdraw-money {
    width: 50%;
    margin-left: auto;
}

.form-withdraw {
    display: flex;
}

.form-withdraw input {
    border-radius: 10px 0 0 10px !important;
    border-width: 1px 0 1px 1px !important;
    border-color: #A9A9A9 !important;
    outline: none;
}

.form-withdraw button {
    border-radius: 0 10px 10px 0 !important;
    color: #959595;
    background-color: #E6E6FA !important;
    border-color: #A9A9A9;
}

.form-withdraw button:hover {
    color: #A9A9A9 !important;
}

/* ===== TAB ICON SECTION ===== */
.tab-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.tab-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
    cursor: pointer !important;
    transition: all 0.4s ease;
    border-radius: 12px;
    text-align: center;
    color: #fff;
}

.tab-button img {
    width: 40%;
    height: auto;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
}

.tab-button span {
    font-size: 13px;
    letter-spacing: 0.3px;
    color: #000;
}

.tab-button:hover {
    background: rgba(199, 31, 135, 0.2);
    transform: translateY(-3px);
}

.tab-button.active {
    background: linear-gradient(90deg, #c71f87, #75006A);
    box-shadow: 0 4px 12px rgba(117, 0, 106, 0.5);
    transform: scale(1.05);
}

.tab-button.active img {
    transform: scale(1.1);
}

.tab-button.active span {
    color: #f5f5f5;
}


/* ===== TAB CONTENT ===== */
.tab-content-wrapper {
    position: relative;
    overflow: hidden;
}

.tab-content {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
    display: none;
    margin: 15px 0;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ===== TAB CONTENT DAILY Mission ===== */
.con-daily-mission {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    margin: 5px;
}

.icon-mission {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.icon-mission img {
    width: 70%;
}

/* ===== TAB CONTENT HISTORY ===== */
.history-table {
    width: 100%;
    border-collapse: collapse
}

.history-table th,
.history-table td {
    border: 1px solid #ddd;
    padding: 6px 8px
}

.tab-other {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tab-other img {
    width: 30%;
}

/* LOGOUT BUTTON */
.form-logout {
    display: flex;
    justify-content: end;
}

.btn-logout {
    background-color: white;
    border: 1px solid red !important;
    border-radius: 15px !important;
}

.btn-logout:hover {
    color: white;
    border: 1px solid white !important;
}



@media (max-width: 600px) {

    /* ===== Head Dashboard ===== */
    .head-left,
    .head-right {
        width: 50%;
    }

    .head-left p,
    .head-right p {
        font-size: 10px;
    }

    .balance-text {
        font-size: 14px !important;
    }

    .balance-amount {
        font-size: 20px;
    }

    .balance-bath {
        font-size: 14px;
    }

    /* ===== Checkin and Withdraw ===== */
    .form-checkin {
        margin-left: 0;
    }

    .form-withdraw-money {
        width: 100%;
        margin-top: 10px;
    }

    /* ===== TAB CONTENT DAILY Mission ===== */
    .con-daily-mission {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
        margin: 5px;
    }

    .icon-mission {
        border-radius: 10px;
    }

    .icon-mission span {
        font-size: 12px;
    }

    .icon-mission img {
        width: 80%;
    }
}