﻿html[data-theme="light"] notifications-main-container{
    header-icon svg{
        color: var(--sl-color-blue-500);
        background-color: var(--sl-color-blue-200);
        border: 1px solid var(--sl-color-blue-300);
    }
}

notifications-main-container{
    height: 100%;
}

notifications-main-container{
    sl-tab-group {
        height: 90%; /* For a little padding at the bottom */
    }
    sl-tab-group::part(tabs) {
        justify-content: space-between;
        border-bottom: none;
    }
    
    sl-tab-group::part(base) {
        height: 100%;
    }

    sl-tab-group::part(nav) {
        background-color: var(--deep-background-color);
        border-radius: 1rem;
        border: 1px solid var(--border-color);
        padding: 0.25rem;
    }

    sl-tab-group::part(active-tab-indicator) {
        display: none;
    }

    sl-tab-panel::part(base) {
        padding: 1rem 1.5rem;
    }
    sl-tab{
        width: 100%;
    }

    sl-tab::part(base) {
        justify-content: center;
        border-radius: 1rem;
        width: 100%;
        padding: 0.25rem 0;
        font-size: var(--font-size-normal);
        transition: all 0.2s ease-in-out;
        height: 100%;
    }

    sl-tab[aria-selected="true"]::part(base) {
        background-color: var(--background-white);
    }
    
    header-icon{
        width: 2.5rem;
        height: 2.5rem;
        transition: all 0.2s ease-in-out;
    }

    header-icon svg{
        width: 100%;
        height: 100%;
        color: var(--sl-color-blue-500);
        background-color: var(--sl-color-blue-900);
        border-radius: 0.75rem;
        padding: 0.5rem;
    }
    
    header-icon:hover{
        scale: 1.1;
    }
}

#notifications-container {
    height: 90vh;
    position: fixed;
    right: 2.5vw;
    z-index: 10;
    bottom: 0;
    min-width: 20vw;
    max-width: 20vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2rem;
    padding: 2rem 0;
    pointer-events: none;
}

.notification-container {
    display: flex;
    width: auto;
    padding: 12px 16px;
    align-items: center;
    gap: 1rem;
    border-radius: 1.5rem;
    border: none;
    background: var(--blue-gray-alternate);
    box-shadow: var(--soft-continer-outer-shadow);
    transition: scale 0.2s ease-in-out;
    overflow: hidden;
    min-height: 0;
    cursor: pointer;
    pointer-events: all;
}


.ok-notification-container:hover {
    scale: 1.1;
}

.notification-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 80%;
}

.notification-title {
    align-self: stretch;
    color: var(--black);
    font-weight: 600;
    line-height: 22px; /* 129.412% */
    font-style: normal;
    font-size: var(--font-size-medium);
}

.notification-message {
    color: var(--gray);
    font-weight: 400;
    line-height: 18px; /* 138.462% */
    font-style: normal;
    font-size: var(--font-size-normal);
    overflow-wrap: break-word;
    /* For the ... if the text gets too long*/
    -webkit-line-clamp: 4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.notification-icon {
    display: flex;
    padding: 4px;
    align-items: flex-start;
    gap: 8px;
    border-radius: 50%;
    background: var(--success-green);
    min-width: 24px;
    min-height: 24px;
}

.notification-icon-glow {
    box-shadow: 0 0 12px 1px var(--soft-success-green);
}

.notification-item {
    position: relative;
    display: flex;
    padding: 1.25rem;
    border-radius: 1rem;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--blue-gray);
    box-shadow: var(--soft-continer-outer-shadow);
    transition: box-shadow 0.2s ease-in-out;
}

/*Hover effect */
.notification-item:hover {
    box-shadow: var(--hover-outline-button-shadow);
}


.notification-item__title{
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: var(--font-size-large);
}
.notification-item__unread-indicator {
    background-color: var(--darker-danger-red);
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 100%;
}
.notification-item__date {
    font-size: var(--font-size-small, 12px);
    font-weight: 400;
    color: var(--light-global-font-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-item__body {
    word-wrap: break-word;
    font-size: var(--font-size-normal, 12px);
    color: var(--light-global-font-color);
}

.notification-item__footer {
    justify-content: space-between;
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;
    display: flex;
    margin-top:5px;
}
.notification-item__verification_buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.5rem;
}
.notification-item__buttons {
    gap: 15px;
    flex-direction: row;
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    display: flex;
}

.notification-item__buttons > div {
    font-size: 1.5em;
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
}

.notification-item__footer svg {
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}
    /* Hover animation */
    .notification-item__footer svg:hover {
        scale: 1.2;
    }
    /* On click animation*/
    .notification-item__footer svg:active {
        scale: 0.9;
    }


.notification-item.unread {
    border-left: 2px solid var(--gold-color);
}

#notification-list, #verification-list{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

#notification-button > div{
    display: flex;
    align-items: center;
}