/* Header 1 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary: #646cff;
    --primary-dark: #545bdf;
    --secondary: #8b5cf6;
    --dark: #1e1e2e;
    --darker: #171724;
    --dark-light: #252536;
    --gray: #a0a0b0;
    --light: #e2e2e2;
    --success: #64ffa3;
    --danger: #ff6464;
    --warning: #ffb464;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}
.header {
    background: rgba(30, 30, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.header-container {
    display: flex;
    align-items: center;
    width: 100%;
}
.left-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 0 0 auto;
}
.center-section {
    display: flex;
    justify-content: flex-start;
    margin-left: 3%;
    flex: 1;
    min-width: 0;
}
.right-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex: 0 0 auto;
}
.auth-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    flex: 0 0 auto;
    align-items: center;
    cursor: default;
}
.logo {
    display: flex;
    align-items: center;
    margin-right: 30px;
}
.logo-img {
    height: 50px;
    width: auto;
    cursor: pointer;
    transition: 0.3s;
    max-width: 200px;
    margin-left: 25%;
}
.logo-img:hover {
    filter: brightness(1.3);
    transform: scale(1.3);
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}
.nav-link:hover {
    color: var(--primary);
}
.nav-link.active {
    color: var(--primary);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}
.user-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.search-bar {
    position: relative;
    width: 100%;
    max-width: 700px;
}
.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: 8px;
    border: none;
    background: var(--dark-light);
    color: var(--light);
    font-size: 0.95rem;
    transition: var(--transition);
}
.search-bar input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}
.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 13px;
    height: 13px;
    cursor: pointer;
    transform: translateY(-50%);
    color: var(--gray);
    transition: color 0.2s ease;
}
.search-icon:hover {
    color: var(--primary);
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
}
.user-profile:hover {
    background: rgba(100, 108, 255, 0.1);
}
.user-profile-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    cursor: default;
}
.user-profile:hover .user-profile-dropdown,
.user-profile-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.dropdown-header:hover {
 background: rgba(100, 108, 255, 0.1);
 color: var(--primary);
 cursor:pointer;
}
.dropdown-header-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.dropdown-header-info p {
    font-size: 0.85rem;
    color: var(--gray);
}
.dropdown-menu {
    list-style: none;
    padding: 0.5rem 0;
}
.dropdown-item {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.dropdown-item:hover {
    background: rgba(100, 108, 255, 0.1);
    color: var(--primary);
}
.dropdown-item i {
    width: 16px;
    text-align: center;
}
.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.5rem 0;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}
.user-profile span {
    font-weight: 500;
    white-space: nowrap;
}
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 108, 255, 0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: rgba(100, 108, 255, 0.1);
}
.chat-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}
.chat-icon:hover {
    background: rgba(100, 108, 255, 0.1);
}
.chat-icon i {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
}
.chat-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(100, 108, 255, 0.4);
}
.message-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}
.message-icon:hover {
    background: rgba(100, 108, 255, 0.1);
}
.message-icon i {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
}
.message-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(100, 108, 255, 0.4);
}
.message-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
    cursor: default;
    pointer-events: auto !important;
}
.message-icon:hover .message-dropdown,
.message-dropdown:hover {
    opacity: 1;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition-delay: 0.1s !important;
}
.message-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left:-0.7rem;
}
.message-list {
    list-style: none;
    padding: 0.5rem 0;
}
.message-item {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition), background-color 0.15s ease !important;
    cursor: pointer;
    pointer-events: auto !important;
}
.message-dropdown:hover .message-item:hover {
    background-color: rgba(100, 108, 255, 0.1) !important;
}
.message-item:last-child {
    border-bottom: none;
}
.message-item:hover {
    background: rgba(100, 108, 255, 0.1);
}
.message-item.unread {
    background: rgba(100, 108, 255, 0.05);
}
.message-item.unread:hover {
    background: rgba(100, 108, 255, 0.1);
}
.message-sender {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--light);
}
.message-preview {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.message-time {
    font-size: 0.75rem;
    color: var(--gray);
}
.message-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--gray);
}
.message-actions {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.message-actions button {
    cursor: pointer;
}
.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}
.notification-bell:hover {
    background: rgba(100, 108, 255, 0.1);
}
.notification-bell i {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
}
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 100, 100, 0.4);
}
.notification-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
    cursor: default;
}
.notification-bell:hover .notification-dropdown,
.notification-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.notification-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.notification-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
}
.notification-list {
    list-style: none;
    padding: 0.5rem 0;
}
.notification-item {
    position: relative;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}
.notification-delete {
    position: absolute;
    bottom: 8px;
    right: 12px;
    color: var(--gray);
    font-size: 11px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
}
.notification-delete:hover {
    color: #ff6464;
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item:hover {
    background: rgba(100, 108, 255, 0.1);
}
.notification-item.unread {
    background: rgba(100, 108, 255, 0.05);
}
.notification-item.unread:hover {
    background: rgba(100, 108, 255, 0.1);
}
.notification-title {
    display: ruby !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.notification-title i {
    flex-shrink: 0;
    margin-left: auto;
}
.notification-message {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}
.notification-time {
    font-size: 0.75rem;
    color: var(--gray);
}
.notification-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--gray);
}
.notification-actions {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: right;
    align-items: right;
}
.notification-actions button {
    cursor: pointer;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
}
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: #ff4a4a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 100, 100, 0.3);
}
.search-bar-container {
    position: relative;
    width: 100%;
    max-width: 700px;
}
.search-bar-container .search-bar {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: 8px;
    border: none;
    background: var(--dark-light);
    color: var(--light);
    font-size: 0.95rem;
    transition: var(--transition);
}
.search-bar-container .search-bar:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}
.search-bar-container .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.search-bar-container .search-icon:hover {
    color: var(--primary);
}
.message-dropdown button,
.notification-dropdown button,
.user-profile-dropdown .dropdown-item,
.user-profile-dropdown button {
    cursor: pointer;
}
.message-dropdown .btn,
.notification-dropdown .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    margin: 0;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: rgba(100, 108, 255, 0.1);
}
.byr-link {
    font-weight: 500;
    color: #747bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 0 2px;
    position: relative;
    cursor: pointer;
}
.byr-link:hover {
    color: #8b91ff;
    background: rgba(116, 123, 255, 0.15);
    border-bottom-color: #747bff;
}
.byr-link:focus {
    outline: 1px solid #646cff;
    outline-offset: 1px;
    border-radius: 1px;
}
#auth-buttons {
    display: none;
}