/* Navbar Styles */

/* Header background color override */
.navbar-header {
    background-color: #262626;
}

/* Notification badge styles */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    border-radius: 9999px;
    padding: 0 4px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification popup styles */
.notifications-popup {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    width: 320px;
    max-width: 90vw;
    max-height: 500px;
    overflow-y: auto;
    background-color: white;
    color: black;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    padding: 16px;
    display: block;
}

.notifications-popup.hidden {
    display: none !important;
}

/* Mobile menu styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.mobile-menu-content {
    display: flex;
    justify-content: flex-end;
    padding: 24px;
}

.mobile-menu-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    color: white;
    padding: 24px;
}

/* Profile picture styles */
.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    overflow: hidden;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Transition effects */
.hover-transition {
    transition: all 0.2s ease-in-out;
}

/* Quick create menu */
.quick-create-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.875rem;
    transition: background-color 0.2s ease-in-out;
}

.quick-create-toggle:hover {
    background-color: #ef4444;
}

.quick-create-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(2, 11rem);
    background-color: #262626;
    border: 1px solid #333333;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    z-index: 60;
}

.quick-create-menu.hidden {
    display: none;
}

/* Arrow pointing back up at the + button */
.quick-create-menu::before {
    content: "";
    position: absolute;
    top: -0.48rem;
    left: calc(50% - var(--quick-create-shift, 0px));
    transform: translateX(-50%) rotate(45deg);
    width: 0.85rem;
    height: 0.85rem;
    background-color: #262626;
    border-top: 1px solid #333333;
    border-left: 1px solid #333333;
}

.quick-create-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.6rem 0.75rem;
    border: 1px solid #333333;
    border-width: 0 1px 1px 0;
    background-color: transparent;
    color: #e5e7eb;
    font-size: 0.9rem;
    text-align: center;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.quick-create-item:nth-child(2n) {
    border-right-width: 0;
}

.quick-create-item:nth-last-child(-n + 2) {
    border-bottom-width: 0;
}

/* Rounded corners live on the tiles so the arrow is not clipped */
.quick-create-item:first-child {
    border-top-left-radius: 0.45rem;
}

.quick-create-item:nth-child(2) {
    border-top-right-radius: 0.45rem;
}

.quick-create-item:nth-last-child(2) {
    border-bottom-left-radius: 0.45rem;
}

.quick-create-item:last-child {
    border-bottom-right-radius: 0.45rem;
}

.quick-create-item i {
    font-size: 1.35rem;
    color: #9ca3af;
    transition: color 0.15s ease-in-out;
}

.quick-create-item:hover {
    background-color: #dc2626;
    color: #ffffff;
}

.quick-create-item:hover i {
    color: #ffffff;
}

/* Responsive visibility */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Desktop profile section */
.desktop-only {
    display: flex;
}

/* Mobile menu visibility */
.mobile-only {
    display: flex;
}
