/************** Standard html element styling ***************/


html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    flex-direction: column;
    margin: 0;
    padding-top: 52px;
    box-sizing: border-box;
    background-color: white;
    color: rgb(32, 33, 36);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

main {
    flex-grow: 1;
}

h1 {
    margin: 0;
    text-align: center;
}

h2, h3 {
    margin: 0;
}

a {
    text-decoration: none;
    color: #0366d6;
}

a:hover {
    cursor: pointer;
    text-decoration: none;
}


/************** Base template styling (elements that are only present on the website base template html file **************/


.main-website-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid rgb(230, 230, 230);
}

.nav-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.nav-left {
    display: flex;
    gap: 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #657786;
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.2s;
    border-radius: 4px;
    text-align: center;
}

.nav-item:hover {
    color: #0366d6;
    background-color: rgba(21, 48, 125, 0.05);
}

.nav-item i {
    font-size: 1rem;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-item.active {
    color: #0366d6;
    font-weight: 600;
}

.left .logo-container {
    display: flex;
    align-items: center;
}

.nav-left .logo-container {
    display: flex;
    align-items: center;
}

.nav-left .logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-left h1 {
    font-size: 25px;
    font-weight: 600;
    color: rgb(32, 33, 36);
    margin: 0;
    text-align: left;
    background: linear-gradient(45deg, rgba(142, 197, 252, 1.000) 0.000%, rgba(141, 211, 255, 1.000) 25.000%, rgba(161, 216, 255, 1.000) 50.000%, rgba(193, 210, 255, 1.000) 75.000%, rgba(224, 195, 255, 1.000) 100.000%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}


.nav-left h1 svg {
    width: 45px !important;
    height: 45px !important;
    flex-shrink: 0;
    fill: #5DADE2 !important;
    color: #5DADE2 !important;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(120, 115, 245, 0.3));
}

.nav-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.main-website-header-login-btn {
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    color: rgb(32, 33, 36);
}

.main-website-header-register-btn {
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 10px;
    margin-right: 5px;
}

.messenger-link {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(95, 99, 104);
    border-radius: 50%;
    transition: background-color 0.2s;
    width: 32px;
    height: 32px;
}

.messenger-link:hover {
    color: #0366d6;
    background-color: #dbeafe;
}

.messenger-link i {
    font-size: 1.1rem;
}

.apps-dropdown-container {
    position: relative;
    color: rgb(95, 99, 104);
}

.apps-dropdown-trigger {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: rgb(95, 99, 104);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    background-color: transparent;
}

.apps-dropdown-trigger:hover {
    color: #0366d6 !important;
    background-color: #dbeafe;
}

.apps-dropdown-trigger i {
    font-size: 1rem;
}

.apps-dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    right: -47px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 380px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.apps-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
}

.apps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.apps-header h3 {
    font-weight: 500;
    color: rgb(32, 33, 36);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apps-list {
    padding: 0 0 10px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.apps-header {
    padding: 15px 20px 10px;
    border-radius: 8px 8px 0 0;
}

.apps-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: rgb(32, 33, 36);
}

.apps-list a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgb(32, 33, 36);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    gap: 12px;
}

.apps-list a:hover {
    color: #0366d6;
}

.apps-list a i {
    font-size: 1rem;
    color: rgb(95, 99, 104);
    width: 20px;
    text-align: center;
}

.apps-list a:hover i {
    color: #0366d6;
}

.apps-dropdown-trigger .apps-grid-icon {
    width: 1.3rem;
    height: 1.3rem;
    color: rgb(95, 99, 104);
    transition: fill 0.2s ease;
}

.notifications-dropdown-container {
    position: relative;
}

.notifications-dropdown-trigger {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: rgb(95, 99, 104);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    background-color: transparent;
}

.notifications-dropdown-trigger:hover {
    color: #0366d6;
    background-color: #dbeafe;
}

.notifications-dropdown-trigger i {
    font-size: 1.3rem;
}

.notification-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -3px;
    right: -2px;
    background-color: #ff4b4b;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
}

.notifications-dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    right: -57px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 380px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.notifications-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.notifications-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: rgb(32, 33, 36);
}

.notifications-list {
    max-height: 360px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    align-items: start;
    padding: 10px;
    transition: background-color 0.2s;
    text-decoration: none;
    color: #374151;
    flex-shrink: 0;
}

.notification-item:hover {
    text-decoration: none;
}

.notification-item i {
    color: #6b7280;
    margin-top: 5px;
    margin-right: 12px;
}

.notification-content {
    flex: 1;
    margin-top: -3px;
}

.notification-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notifications-footer {
    padding: 10px 15px;
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
}

.notifications-footer a {
    color: #0366d6;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.notifications-footer a:hover {
    text-decoration: underline;
}

.no-notifications-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #657786;
    margin: 12px 0;
    flex-grow: 1;
    justify-content: center;
}

.no-notifications-message i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.no-notifications-message p {
    margin: 0;
    font-size: 0.9rem;
}

.profile-dropdown-container {
    position: relative;
}

.profile-dropdown-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
}

.main-website-header-profile-picture {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: rgba(35, 130, 222, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f8fafc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.profile-dropdown-arrow {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #6b7280;
    border: 1px solid rgb(230, 230, 230);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: -1px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 380px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

.profile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.profile-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgb(32, 33, 36);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
}

.profile-dropdown-menu a:hover {
    color: #0366d6;
    text-decoration: none;
}

.profile-dropdown-menu i {
    font-size: 1rem;
    color: rgb(95, 99, 104);
    width: 20px;
    text-align: center;
}

.profile-dropdown-menu a:hover i {
    color: #0366d6;
}

@media screen and (max-width: 992px) {
    .search-input {
        width: 120px;
    }

    .nav-left {
        gap: 10px;
    }

    .nav-item span {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 768px) {
    .search-container {
        display: none;
    }

    .nav-item {
        padding: 8px 10px;
    }

    .nav-item span {
        font-size: 0.8rem;
    }

    .nav-left {
        gap: 10px;
    }
}

.dropdown-profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0;
    flex-shrink: 0;
}

.profile-dropdown-menu-view-profile-button {
    border-bottom: 1px solid rgb(230, 230, 230);
    margin-bottom: 5px;
    color: #0366d6 !important;
    display: flex !important;
    align-items: center;
    padding: 12px 16px !important;
}

.profile-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.profile-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgb(32, 33, 36);
}

.profile-email {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 0;
    color: #6b7280;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.main-nav-bar-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    text-decoration: none;
    color: rgb(32, 33, 36);
    border-radius: 3px;
    font-size: 0.95rem;
    margin-bottom: 5px;
    margin-left: 6px;
    margin-right: 6px;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
}

.main-nav-bar-item::after {
    content: '';
    position: absolute;
    bottom: -10zpx;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #0366d6;
    border-radius: 9999px 9999px 0 0;
    transition: width 0.2s ease;
}

.main-nav-bar-item:hover {
    color: #0366d6;
}

.main-nav-bar-item.active {
    color: #0366d6;
    font-weight: 600;
}

.main-nav-bar-item.active::after {
    width: 100%;
}
