/**********************************/
/* @since 01/01/2025              */
/* @author K10s Open Source Team  */
/**********************************/

/* Navigation Bar */
::ng-deep .nav {
    background-color: var(--tertiary);
    color: var(--secondary);
    border-radius: var(--radius);
    box-shadow: 2px 0 5px var(--shadow);
    min-width: 150px;
    padding: 20px;
    top: 20px;
}

.nav-header {
    color: var(--secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: left;
}

.nav-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nav-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.nav-logo img {
    width: 120px;
    height: 120px;
}

.nav-username {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.nav-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: var(--radius);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu-item:hover span, .nav-menu-item:hover svg {
    color: var(--accent);
    fill: var(--accent);
}

.nav-menu-item a {
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-header svg, .nav-menu-item svg {
    fill: var(--secondary);
    width: 24px;
    height: 24px;
    margin-right: 10px;
    transition: fill 0.3s ease;
}

.nav-menu-item span {
    color: var(--text);
    font-size: 1rem;
    transition: color 0.3s ease;
}
/* Navigation Bar */

/* Navigation Bar GitHub */
.nav-github-container {
    background-color: var(--primary);
    padding: 0px;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: auto;
}

.nav-github-container p {
    color: #ffffff;
    font-size: 20px;
}

.nav-github-container a {
    text-decoration: none;
}

.nav-github-button {
    background-color: var(--primary);
    color: #ffffff;
    margin-top: 15px;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
}

.nav-github-button:hover {
    background-color: var(--secondary);
}
/* Navigation Bar GitHub */

/* Modal */
.modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: visibility 0.3s, opacity 0.3s ease;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-article {
    background-color: var(--tertiary);
    margin: 2.5% auto;
    padding: var(--spacing);
    border: 1px solid var(--primary);
    width: 85%;
    max-width: 410px;
    overflow-y: visible;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    position: relative;
}

.modal-article h2 {
    color: var(--primary);
    margin: 0;
    padding: 10px;
    border-bottom: 1px solid var(--primary);
    font-size: 1.5rem;
}

.modal-close-button {
    color: var(--primary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.modal-close-button:hover, .modal-close-button:focus {
    color: var(--secondary);
    text-decoration: none;
}

.modal-theme-toggle-button {
    background-color: var(--primary);
    color: var(--text);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.5s ease;
}

.modal-theme-toggle-button:hover {
    background-color: var(--accent);
}

.modal-theme-toggle-button svg {
    fill: var(--tertiary);
    width: 24px;
    height: 24px;
    margin-top: 2px;
    padding: 0px;
    transition: fill 0.3s ease;
}

.modal-dropdown {
    visibility: visible;
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 10001;
}

.modal-dropdown-button {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--primary);
    border-radius: 5px;
    background-color: var(--background);
    color: var(--text);
    font-size: 16px;
    text-align: left;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.modal-dropdown-button:hover {
    background-color: var(--accent);
    border-color: var(--primary);
    color: var(--background);
}

.modal-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: var(--background);
    border: 1px solid var(--primary);
    border-radius: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 10002;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-dropdown-menu li {
    color: var(--text);
    padding: 10px 15px;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.modal-dropdown-menu li:hover,li.active  {
    background-color: var(--accent);
    color: var(--background);
}
/* Modal */