/* Common styles for both navbar and sidebar buttons */
.button-reward-navbar, .button-reward-sidebar {
    border-radius: 10px;
    background-color: rgba(109, 225, 209, 0.5);
    color: #0F1429;
    white-space: nowrap;
    border: none;
    padding: 7px;
    font-weight: bolder;
    outline: none;
    box-shadow: none;
    transition: background-color 0.3s ease;
}

/* Navbar-specific styles */
.button-reward-navbar {
    margin-left: 10px;
    height: 100%;
}

/* Sidebar-specific styles */
.button-reward-sidebar {
    padding: 15px;
    margin-top: 30px;
    margin-left: 15px;

}

.reward-wrapper{
    text-align: center;
    font-size: 14px;
    font-weight: normal;
}

/* Hover and active states */
.button-reward-navbar:active,
.button-reward-navbar:focus,
.button-reward-sidebar:active,
.button-reward-sidebar:focus {
    background-color: #D3C4FF !important;
    /* color: white !important; */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.button-reward-navbar:hover,
.button-reward-sidebar:hover {
    background-color: #D3C4FF;
    /* color: white; */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Popover styles for Navbar */
.reward-popover-navbar {
    position: absolute;
    top: 140px;
    background-color: #dfd6fd;
    padding: 15px ;
    border-radius: 10px;
    z-index: 1000;
    min-width: max-content;
    right: inherit;
    max-height: 360px;
    overflow-y: auto;
    font-size: 12px;
    margin-right: 5px;
}

/* Ensure the ul does not overflow the popover's height */
.reward-popover-navbar ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Optional: Style for the scrollbar */
.reward-popover-navbar::-webkit-scrollbar {
    width: 8px;
}

.reward-popover-navbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.reward-popover-navbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

/* Popover styles for Sidebar */
.reward-popover-sidebar {
    position: relative;
    background-color: #FFA47F;
    padding: 10px;
    border-radius: 10px;
}

/* Common popover styles */
.reward-details-popover {
    background-color: #D3C4FF;
    color: #0f1429;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 11000;
}

.reward-details-popover h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.reward-details-popover ul {
    list-style-type: none;
    padding-left: 0;
}

.reward-details-popover li {
    margin-bottom: 8px;
}


/*Rewards tab styling*/

.rewardsTab-wrapper {
    margin: 20px;
    border-radius: 15px;
    background: #F2F3F7;
    padding: 30px;

}

.rewardsTab-announcement{
    display: flex;
    text-align: center;
    padding: 30px;
    margin: 0 30px;
    font-weight: 900;
    font-size: 24px;
    flex-direction: column;
    gap: 30px;
}

.rewardsTab-announcement-2{
    font-size: 18px;
    font-weight: 500;
}

.rewardsTab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rewardsTab-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.rewardsTab-points {
    font-size: 18px;
    font-weight: bold;
    color: #FFA47F;
    white-space: nowrap;
    align-self: start;
    margin-left: 10px;
}


.rewardsTab-cheatsheet-wrapper{
    border-radius: 15px;
    background: rgba(193, 182, 255, 0.3);
    width: fit-content;
    padding: 30px;
    margin: 45px auto 0 auto;
    font-family: monospace;

}
.rewardsTab-cheatsheet-wrapper h4{
    margin-bottom: 24px;
    text-align: center;

}

.rewardsTab-cheatsheet {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rewardsTab-cheatsheet li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.rewardsTab-description {
    text-align: left;
    flex: 1;
}

.rewardsTab-points {
    text-align: right;
    flex: 1;
    max-width: fit-content;
}

.reward-item {
    margin: 10px 0;
}

.reward-item.earned {
    color: #6DE1D1;
    font-weight: bold;
}

.reward-item.unearned {
    color: gray;
}

.rewardsTab-cheatsheet-item.earned .rewardsTab-description {
    color: #0ab900;
    font-weight: bold;
}

.rewardsTab-cheatsheet-item.unearned .rewardsTab-description {
    color: gray;
}

.earned-timestamp {
    font-size: 0.85em;
    margin-left: 10px;
    color: #666;
}


.badge-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.rewardsTab-badge-earned {
    opacity: 1;
}

.rewardsTab-badge-unearned {
    opacity: 0.5;
    filter: grayscale(100%);
}

.rewardsTab-cheatsheet-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rewardsTab-description {
    flex-grow: 1;
    margin-left: 10px;
}
