/**
 * AI Innovation Hub – Custom styles
 * Complements Bootstrap; load after Bootstrap CSS.
 */

:root {
    /* CUNY Blue */
    --ai-hub-primary: #0033A1; 
    
    /* Taxi Yellow */
    --ai-hub-accent: #FFB71B; 
    
    /* Using the Blue for the Dark shade */
    --ai-hub-dark: #001E60; /* A darker shade of CUNY Blue for depth */
    
    /* A very light tint of the Blue for the background */
    --ai-hub-light-bg: #F0F4FA; 
}

body
{
    font-family: "Libre Franklin", sans-serif;
    color: var(--ai-hub-dark);
    background-color: #fff;
}

.ai-hub-hero
{
    background: var(--ai-hub-primary);  
    color: #fff;
    padding: 4rem 0;
}
.ai-hub-hero h1
{
    font-weight: 700;
    margin-bottom: 1rem;
}

.ai-hub-section
{
    padding: 3rem 0;
}

.ai-hub-section:nth-of-type(even)
{
    background-color: var(--ai-hub-light-bg);
}

.ai-hub-card
{
    border: none;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-hub-card:hover
{
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
}

.ai-hub-footer
{
    background-color: var(--ai-hub-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 2rem 0;
}

.ai-hub-footer a
{
    color: rgba(255, 255, 255, 0.9);
}

.ai-hub-footer a:hover
{
    color: #fff;
}

.list-icon
{
    color: var(--ai-hub-primary);
    margin-right: 0.5rem;
    flex-shrink: 0;
    line-height: 1.4;
}

/* Notification bell dropdown - fixed width, text wraps inside */
.notification-dropdown {
    width: 320px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}
.notification-dropdown li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.notification-dropdown li:last-child {
    border-bottom: none;
}
.notification-item {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
    display: block;
    padding-left: 1rem;
    position: relative;
    border-radius: 0.35rem;
}
.notification-item::before {
    content: "";
    position: absolute;
    left: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--ai-hub-primary);
}
.notification-item:hover {
    background-color: var(--ai-hub-light-bg);
    transform: translateY(+1%);
    transform: translateX(+1%);
    box-shadow: 0 1.5rem 1.25rem rgba(0, 0, 0, 0.12);
}
/* End of Notification bell dropdown - fixed width, text wraps inside */

/* Slightly larger badges for team roles */
.badge.badge-lg {
    font-size: 0.875rem;
    padding: 0.35em 0.65em;
}
/* Same width for Team lead, Member, Invitation pending */
.badge.badge-role {
    min-width: 8.5rem;
    display: inline-block;
    text-align: center;
}

/* Change the color of the navbar to CUNY Colors */
.navbar-light .navbar-brand {
    color: #0033A1;
}

.navbar-light .navbar-nav .nav-link {
    color: #0033A1;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-brand:hover {
    color: #00267a; 
}

.navbar-light .navbar-nav .nav-link.active {
    color: #0033A1;
    font-weight: bold;
}
/* End of Change the color of the navbar to CUNY Colors */

/* Red dot on hamburger when user has notifications */
.navbar-toggler-notification-dot {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dc3545;
}

/* Notification bell - desktop: open below; mobile: open above */
@media (min-width: 992px) {
    .navbar-notification-dropdown-parent.dropup .navbar-notification-dropdown {
        top: 100% !important;
        bottom: auto !important;
        margin-top: 0.125rem;
        margin-bottom: 0;
    }
}

/* Notification bell - prevent expansion on mobile */
@media (max-width: 991.98px) {
    .navbar-notification-bell-link {
        flex-shrink: 0;
        width: 2.25rem;
        min-width: 2.25rem;
        max-width: 2.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.25rem !important;
    }
    .navbar-notification-bell-link svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    /* Notification dropdown: relative position so it does not expand the navbar */
    .navbar-collapse .navbar-notification-dropdown {
        position: fixed !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
        left: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        transform: none !important;
    }
}

/* Navbar mobile - overlay menu in a box, does not push content down */
@media (max-width: 991.98px) {
    .navbar .container {
        position: relative;
    }
    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0.5rem;
        left: auto;
        width: max-content;
        min-width: -webkit-fill-available;
        margin-top: 0.25rem;
        padding: 1rem;
        background: #fff;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.08);
        z-index: 1050;
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
    }
    .navbar-collapse .navbar-nav {
        margin-left: 0 !important;
        margin-right: 0 !important;
        align-items: flex-end !important;
        width: auto;
    }
    .navbar-collapse .nav-item {
        width: auto;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .navbar-collapse .nav-link {
        padding: 0.5rem 0;
        text-align: right;
    }
    .navbar-collapse .nav-item.dropdown .nav-link,
    .navbar-collapse .nav-item.dropup .nav-link {
        display: inline-flex;
        align-items: center;
        padding-left: 0;
    }
    .navbar-collapse .nav-item.ms-3 {
        margin-left: 0 !important;
    }
}
/* End of Navbar mobile - overlay menu in a box, does not push content down */

/* Password change – x trigger next to label, criteria in hover popover */
.password-criteria-trigger {
    cursor: help;
    font-size: 1rem;
    line-height: 1;
    font-weight: bold;
    -webkit-user-select: none;
    user-select: none;
    color: #dc3545;
}
.password-criteria-popover {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1050;
    min-width: 14rem;
    font-size: 0.875rem;
}
.password-criterion {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}
.password-criterion:last-child {
    margin-bottom: 0;
}
.password-criterion .criterion-icon {
    display: inline-block;
    width: 1.1em;
    font-weight: bold;
}
.password-criterion.criterion-met .criterion-icon {
    color: #198754;
}
.password-criterion.criterion-unmet .criterion-icon {
    color: #dc3545;
}
.password-criterion.criterion-met .criterion-text {
    color: #198754;
}
.password-criterion.criterion-unmet .criterion-text {
    color: #6c757d;
}

/* ------------------------------------------------------------------ */
/*  Avatar UI                                                         */
/* ------------------------------------------------------------------ */
.ai-hub-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 9999px;
    background: var(--ai-hub-light-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.ai-hub-avatar-preview-sm {
    width: 72px;
    height: 72px;
}
.ai-hub-avatar-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    overflow: hidden;
}
.ai-hub-avatar-image-grid {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    flex-shrink: 0;
}
.ai-hub-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(0, 51, 161, 0.08);
    color: var(--ai-hub-primary);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
}
.ai-hub-avatar-option {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    overflow: hidden;
    text-align: center;
}
.ai-hub-avatar-option:hover {
    border-color: rgba(0, 51, 161, 0.35);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
}
.ai-hub-avatar-option-selected {
    border: 2px solid var(--ai-hub-primary);
    box-shadow: 0 0 0 0.1rem rgba(0, 51, 161, 0.15);
}
.ai-hub-avatar-option .ai-hub-avatar-image-grid {
    margin: 0 auto;
}
.ai-hub-avatar-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}