* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    text-decoration: none;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #eee;
    color: #333;
    position: relative;
    overflow-x: hidden;
    padding-top: 80px;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

html {
    overflow-y: scroll;
}

.message {
    padding: 1em;
    color: #004085;
    background-color: #cce5ff;
    border: 1px solid #b8daff;
    border-radius: 5px;
    text-align: center;
    margin: 0 auto 1em;
    max-width: 60%;
    font-weight: bold;
    font-size: 20px;
    border: black 1px solid;
    box-shadow: 2px 2px 2px black;
}

@media (max-width: 768px) {
    .message {
        max-width: 90%;
        font-size: 16px;
        padding: 0.8em;
    }
}

.message-error {
    color: #850000;
    background-color: #ffd2cc;
}

.message-success {
    color: #0b8500;
    background-color: #ceffcc;
}

.message-notification {
    color: #004085;
    background-color: #cce5ff;
}

.container {
    position: fixed;
    width: 80%;
    padding: 2em;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #673AB7;
    padding: 0.75rem 2rem;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
        padding: 0.5rem 1rem;
    }
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    gap: 2rem;
}

@media (max-width: 768px) {
    .navbar-content {
        gap: 1rem;
    }
}

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

.logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 30px;
}

@media (max-width: 768px) {
    .logo img {
        height: 35px;
        margin-right: 5px;
    }
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    flex-grow: 1;
    max-width: 500px;
}

@media (max-width: 768px) {
    .search-bar {
        max-width: none;
        padding: 0.4rem 0.8rem;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .search-bar {
        min-width: 150px;
        padding: 0.3rem 0.6rem;
    }
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .search-bar input {
        font-size: 0.8rem;
    }
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #673AB7;
    margin-left: 0.5rem;
}

.nav-tabs {
    display: flex;
    gap: 1rem;
}

.nav-tab {
    padding: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #ffffff;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-tab:hover {
    color: #7e3af2;
}

.nav-tab.active {
    color: #7e3af2;
    border-bottom-color: #7e3af2;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

@media (max-width: 768px) {
    .nav-icons {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-icons {
        gap: 0.8rem;
    }
}

.nav-icon {
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.nav-icon:hover {
    background-color: #d6d6d6;
}

.nav-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #ffffff;
}

@media (max-width: 768px) {
    .nav-icon svg {
        width: 1.3rem;
        height: 1.3rem;
    }
}

@media (max-width: 480px) {
    .nav-icon svg {
        width: 1.2rem;
        height: 1.2rem;
    }
}

.user-profile-photo {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-profile-photo:hover {
    border-color: #9b87f5;
    box-shadow: 0 2px 8px rgba(155, 135, 245, 0.3);
    transform: scale(1.05);
}

.user-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .user-profile-photo {
        width: 1.8rem;
        height: 1.8rem;
    }
}

@media (max-width: 480px) {
    .user-profile-photo {
        width: 1.6rem;
        height: 1.6rem;
    }
}

.popup-user-info {
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: default !important;
    user-select: text;
}

.popup-user-email {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    word-break: break-word;
    display: block;
    cursor: default !important;
    user-select: text;
}

.popup-user-info,
.popup-user-info *,
.popup-user-info span,
.popup-user-email {
    cursor: default !important;
}

.popup #user-popup .popup-user-info,
.popup #user-popup .popup-user-info *,
.popup-content .popup-user-info,
.popup-content .popup-user-info *,
#user-popup .popup-user-info,
#user-popup .popup-user-info *,
#user-popup .popup-user-email {
    cursor: default !important;
}

[data-no-click="true"],
[data-no-click="true"] *,
div[data-no-click="true"],
span[data-no-click="true"] {
    cursor: default !important;
}

.popup-user-info[data-no-click],
.popup-user-email[data-no-click] {
    cursor: default !important;
}

.popup-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 0.25rem 0;
}

.popup {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 18rem;
    z-index: 50;
    margin-top: 0.5rem;
    display: none;
    overflow: hidden;
}

@media (max-width: 768px) {
    .popup {
        width: 16rem;
        right: -2rem;
    }
}

@media (max-width: 480px) {
    .popup {
        width: 90vw;
        right: -80vw;
        max-width: 280px;
    }
}

.popup.active {
    display: block;
}

.popup-header {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.popup-title {
    font-weight: 500;
    color: #1f2937;
}

.popup-content {
    max-height: 16rem;
    overflow-y: auto;
}

.popup-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.375rem;
}

.popup-item:hover {
    background-color: #d6d6d6;
}

.popup-item-image {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e5e7eb;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.popup-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-item-content {
    flex: 1;
}

.popup-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
}

.popup-item-description {
    font-size: 0.75rem;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popup-notification {
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 0.375rem;
}

.popup-notification:hover {
    background-color: #d6d6d6;
}

.popup-notification-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
}

.popup-notification-description {
    font-size: 0.75rem;
    color: #6b7280;
}

.popup-footer {
    padding: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.popup-button {
    width: 100%;
    padding: 0.5rem;
    background-color: #7e3af2;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.popup-button:hover {
    background-color: #6c2bd9;
}

.popup-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
    border: transparent;
    background-color: transparent;
}

.popup-content a{
    text-decoration: none;
}

.popup-menu-item:hover {
    background-color: #d6d6d6;
}

.popup-menu-item.danger {
    color: #ef4444;
}

.notification-bell-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e53e3e;
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.notification-badge.hidden {
    display: none !important;
}

#bell-icon.has-new-notifications .notification-bell-container::after {
    display: none !important;
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: #673AB7;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mark-all-read-btn:hover {
    background-color: rgba(103, 58, 183, 0.1);
}

.popup-notification {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    position: relative;
}

.popup-notification:hover {
    background-color: #f8f9fa;
}

.popup-notification.unread {
    background-color: #f0f8ff;
    border-left: 3px solid #673AB7;
}

.popup-notification:last-child {
    border-bottom: none;
}

.notification-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
}

.notification-content {
    display: flex;
    flex-grow: 1;
    gap: 0.5rem;
    min-width: 0;
    cursor: pointer;
}

.popup-notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.popup-notification-description {
    font-size: 13px;
    color: #666;
    margin: 0 0 4px 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-time {
    font-size: 11px;
    color: #999;
    margin: 0;
}

.notification-dot {
    position: absolute;
    top: 16px;
    right: 12px;
    width: 8px;
    height: 8px;
    background-color: #673AB7;
    border-radius: 50%;
    flex-shrink: 0;
}

.loading-notifications,
.no-notifications,
.error-notifications {
    padding: 20px;
    text-align: center;
}

.loading-notifications p {
    color: #666;
    font-style: italic;
}

.no-notifications p {
    color: #999;
}

.error-notifications p {
    color: #e53e3e;
}

@media (max-width: 768px) {
    .popup-notification {
        padding: 10px;
    }
    
    .notification-icon {
        font-size: 18px;
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }
    
    .popup-notification-title {
        font-size: 13px;
    }
    
    .popup-notification-description {
        font-size: 12px;
    }
    
    .notification-time {
        font-size: 10px;
    }
    
    .notification-badge {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }
}

@media (max-width: 480px) {
    .popup-notification {
        padding: 8px;
    }
    
    .notification-icon {
        font-size: 16px;
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }
    
    .mark-all-read-btn {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    #bell-icon.has-new-notifications .notification-bell-container::after {
        width: 10px;
        height: 10px;
        top: -1px;
        right: -1px;
    }
}

.notification-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.selection-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.select-all-btn, .delete-selected-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.select-all-btn:hover {
    background: #e0e0e0;
}

.delete-selected-btn {
    background: #ff4444;
    color: white;
    border-color: #cc0000;
}

.delete-selected-btn:hover {
    background: #cc0000;
}

.scrollable-notifications {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.scrollable-notifications::-webkit-scrollbar {
    width: 6px;
}

.scrollable-notifications::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.scrollable-notifications::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.scrollable-notifications::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.notification-checkbox {
    display: flex;
    align-items: center;
    margin-top: 0.2rem;
}

.notification-select {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.notification-text {
    flex: 1;
}

@media (max-width: 768px) {
    .notification-controls {
        align-items: stretch;
    }
    
    .selection-controls {
        justify-content: space-between;
    }
    
    .scrollable-notifications {
        max-height: 300px;
    }
    
    .notification-checkbox {
        margin-top: 0.1rem;
    }
    
    .notification-select {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .selection-controls {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .select-all-btn, .delete-selected-btn {
        width: 100%;
        padding: 0.4rem;
        font-size: 0.75rem;
    }
    
    .scrollable-notifications {
        max-height: 250px;
    }
}

.notification-profile-img img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .notification-profile-img img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .notification-profile-img img {
        width: 24px;
        height: 24px;
    }
}

.notification-close {
    position: absolute;
    top: 2px;
    right: 8px;
    font-size: 18px;
    color: #bdbdbd;
    cursor: pointer;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 0;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #e53e3e;
}