#achievements_page {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border-radius: 10px;
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
    height: 100vh;
    width: 100vw;
}

#showcase_user_info_username,
#showcase_user_info_coins,
#showcase_user_info_points {
    font-family: sans-serif;
    font-size: 1.2em;
    margin: 5px 0;
}

#achievements_page_content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    height: calc(100% - 100px);
}

#unfinished_achievements,
#finished_achievements {
    flex: 1 1 45%;
    /* background: #fafafa; */
    border-radius: 10px;
    padding: 15px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    height: 100%;
    overflow-y: hidden;
}

#unfinished_achievements:hover,
#finished_achievements:hover {
    overflow-y: auto;
}

#unfinished_achievements h2,
#finished_achievements h2 {
    font-family: sans-serif;
    font-size: 1.6em;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.achievement {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 130px;
    box-sizing: border-box;
}

.achievement:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    overflow-y: auto;
}

.achievement_icon {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-right: 1px solid #eee;
}

.achievement_content {
    width: calc(100% - 130px);
    padding: 10px;
    flex-grow: 1;
}

.achievement_name {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 5px;
}

.achievement_description {
    margin-top: 10px;
    color: #555;
    font-family: sans-serif;
}

.achievement_progress {
    margin: auto 0;
}

.achievement_progress_bar {
    position: relative;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    height: 15px;
    margin: auto;
}

.progress_tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8em;
    color: #333;
    background: rgba(255,255,255,0.8);
    padding: 2px 5px;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.achievement_progress_bar:hover .progress_tooltip {
    opacity: 1;
}

.achievement_progress_bar_inner {
    background: linear-gradient(45deg, #85FFBD, #FFFB7D);
    height: 100%;
    width: 0;
    transition: width 0.5s ease-in-out;
}

.achievement_progress_finished {
    animation: pop 0.5s ease-out forwards;
}

.achievement_reward {
    padding: 5px 10px;
    margin-left: 10px;
    border-radius: 5px;
    background: #f0f0f0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hoverable {
    cursor: pointer;
}

.hoverable:hover {
    /* background: #e0e0e0; */
    transform: scale(1.05);
}

.achievement_reward_disabled {
    cursor: default;
}

.achievement_reward_gained {
    background: #ccc;
    cursor: default;
    width: fit-content;
    padding: 0 10px;
    border-radius: 10px;
}
.achievement_reward_not_gained {
    background: #7eff80;
    width: fit-content;
    padding: 0 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    box-shadow: 0 0 5px rgba(126, 255, 128, 0.5);
}

.achievement_reward_not_gained:hover {
    transform: scale(1.15);
    background: #5eff61;
    box-shadow: 0 0 10px rgba(126, 255, 128, 0.8);
    animation: none;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pop {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
