/* Top Bar Styles */
header .top-bar {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    background: var(--card-bg);
}

header .top-bar .container {
    width: 75%;
    margin: 0 auto;
}

header .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .top-menu {
    display: flex;
    gap: 1.5rem;
}

header .top-menu a {
    color: var(--text-dark-low);
    transition: all 0.2s ease;
    font-weight: 500;
}

header .top-menu a:hover,
header .top-menu a.active {
    color: var(--text-dark);
}

header .top-links {
    display: flex;
    gap: 1.5rem;
}

header .top-links a {
    color: var(--text-dark-low);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

header .top-links a:hover {
    color: var(--text-dark);
}

header .top-links i {
    font-size: 0.9rem;
}

header .language-dropdown {
    position: relative;
    z-index: 999;
}

header .language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark-low);
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: transparent;
}

header .language-btn:hover {
    background: var(--bg-color);
    color: var(--text-dark);
}

header .language-btn i:last-child {
    font-size: 0.7rem;
    margin-left: 0.2rem;
}

header .language-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 0.5rem;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

header .language-dropdown:hover .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

header .language-menu a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    color: var(--text-dark-low);
    font-size: 0.85rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

header .language-menu a:first-child {
    margin-top: 0;
}

header .language-menu a:hover {
    background: var(--bg-color);
    color: var(--text-dark);
}

.language-menu a.active {
    color: var(--text-dark);
    background: var(--bg-color);
}

.lang-code {
    display: inline-block;
    width: 28px;
    font-weight: 600;
    color: var(--text-dark);
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    padding-bottom: 0.2rem;
    padding-top: 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar .container {
    width: 75%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.navbar-logo {
    flex-shrink: 0;
    margin-right: 2rem;
}

.navbar-logo img {
    height: 45px;
    width: auto;
}

.navbar-search {
    flex-grow: 1;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: 16px;
    padding: 0.7rem 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-wrapper:focus-within {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

.search-wrapper i {
    color: var(--text-dark-low);
    font-size: 1.1rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within i {
    color: var(--primary-color);
}

.search-wrapper input {
    background: transparent;
    border: none;
    font-size: 1rem;
    width: 100%;
    color: var(--text-dark);
    font-weight: 500;
}

.search-wrapper input::placeholder {
    color: var(--text-dark-low);
    font-weight: 400;
}

.search-categories {
    position: relative;
    margin-left: 1.2rem;
    padding-left: 1.2rem;
    border-left: 2px solid rgba(0,0,0,0.08);
}

.custom-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: transparent;
    border: none;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    padding-right: 1.5rem;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.dropdown-trigger:after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark-low);
    transition: transform 0.2s ease;
}

.custom-dropdown.active .dropdown-trigger:after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 0.5rem;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.custom-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.6rem 1rem;
    color: var(--text-dark-low);
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-color);
    color: var(--text-dark);
}

.dropdown-item.selected {
    color: var(--text-dark);
    background: var(--bg-color);
}

.search-categories select {
    background: transparent;
    border: none;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    padding-right: 1.5rem;
    font-weight: 500;
    -webkit-appearance: none;
    appearance: none;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem;
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.action-btn i {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.action-btn:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    border: 2px solid #fff;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-btn {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.account-btn:hover {
    background: var(--bg-color);
}

.post-ad-btn {
    background: linear-gradient(45deg, var(--primary-color-dark), var(--primary-color));
    padding: 0.7rem 1.4rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 232, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-ad-btn:before {
    content: '\f067';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
}

.post-ad-btn:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color-dark));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 232, 0, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}


/* Dropdown Styles */
.dropdown-wrapper {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: -10px;
    width: 360px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--bg-color);
}

.dropdown-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
}

.mark-all-btn {
    font-size: 0.75rem;
    color: var(--text-dark-low);
    transition: color 0.2s ease;
}

.mark-all-btn:hover {
    color: var(--text-dark);
}

.dropdown-body {
    max-height: 360px;
    overflow-y: auto;
    position: relative;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-item, 
.notification-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.message-item:hover,
.notification-item:hover {
    background: var(--bg-color);
}

.message-item.unread:before,
.notification-item.unread:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.message-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.message-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content,
.notification-content {
    flex: 1;
    min-width: 0;
}

.message-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.sender {
    font-size: 0.75rem;
    color: var(--text-dark);
}

.time {
    font-size: 0.7rem;
    color: var(--text-dark-low);
}

header .message-preview {
    font-size: 0.75rem;
    color: var(--text-dark-low);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

header .notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

header .notification-icon i {
    font-size: 0.9rem;
}

.notification-item.info .notification-icon {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.notification-item.warning .notification-icon {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.notification-item.opportunity .notification-icon {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}

header .notification-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

header .notification-text {
    font-size: 0.75rem;
    color: var(--text-dark-low);
    margin-bottom: 0.2rem;
    width: 90%;
}

header .notification-time {
    font-size: 0.7rem;
    color: var(--text-dark-low);
}

header .dropdown-footer {
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--bg-color);
    text-align: center;
}

header .view-all {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s ease;
}

header .view-all:hover {
    color: var(--primary-color);
}

header .message-actions {
    position: absolute;
    right: 0.5rem;
    top: 12px;
    display: flex;
    gap: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

header .message-item:hover .message-actions {
    opacity: 1;
    visibility: visible;
}

header .msg-action-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dark-low);
    background: var(--bg-color);
    font-size: 1rem;
}

header .msg-action-btn i {
    font-size: 0.85rem;
}

header .msg-action-btn:hover {
    transform: translateY(-2px);
}

header .msg-action-btn.view-btn:hover {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

header .msg-action-btn.ignore-btn:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}



header .message-item.sliding-out,
header .notification-item.sliding-out {
    animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOut {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(30px);
        opacity: 0;
        height: 0;
        padding: 0;
        margin: 0;
    }
}

.message-item.read,
.notification-item.read {
    opacity: 0.6;
}

.mark-read-btn.checked {
    background: #4CAF50;
    color: #fff;
    opacity: 1;
    visibility: visible;
}

.mark-read-btn {
    position: absolute;
    right: 1rem;
    top: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark-low);
    opacity: 0;
    transition: all 0.2s ease;
    background: var(--bg-color);
}


.mark-read-btn i {
    font-size: 0.95rem;
}

.notification-item:hover .mark-read-btn {
    opacity: 1;
    visibility: visible;
}

.mark-read-btn:hover {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}


.empty-state {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 0.5rem;
    min-height: 80px;
    text-align: center!important;
}

.empty-state.show {
    opacity: 1;
    transform: translateX(0);
}

.empty-state .illustration {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    opacity: 0.9;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.empty-state .illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.empty-state:hover .illustration {
    transform: scale(1);
}

.empty-state .empty-content {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.empty-state h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.empty-state p {
    font-size: 0.75rem;
    color: var(--text-dark-low);
    margin: 0;
    line-height: 1.4;
}

.empty-state.messages-empty {
    background: rgba(33, 150, 243, 0.03);
    border: 1px solid rgba(33, 150, 243, 0.1);
}

.empty-state.notifications-empty {
    background: rgba(255, 152, 0, 0.03);
    border: 1px solid rgba(255, 152, 0, 0.1);
}

.refresh-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dark-low);
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.refresh-btn i {
    font-size: 0.8rem;
}

.refresh-btn:hover {
    background: var(--bg-color);
    color: var(--text-dark);
    transform: translateY(-1px);
}

.refresh-btn:hover i {
    animation: spin 0.6s ease-in-out;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dropdown-body {
    position: relative;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden !important; 
}

.dropdown-body.transitioning {
    overflow: hidden !important;
}

.empty-state-enter {
    animation: emptyStateEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes emptyStateEnter {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-exit {
    animation: itemExit 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes itemExit {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(30px);
        opacity: 0;
    }
}

.dropdown-body {
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Dropdown z-index ayarlamaları */
.dropdown-wrapper, .user-dropdown {
    position: relative;
    z-index: 100;
}

.dropdown-menu, .user-menu {
    z-index: 100;
}

/* Focus efekti için */
.dropdown-menu.active,
.user-menu.active {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Auth Dropdown Styles */
.auth-dropdown {
    width: 280px !important;
    padding: 0 !important;
    overflow: hidden;
}

.auth-menu {
    background: var(--card-bg);
    border-radius: 12px;
}

.auth-menu .auth-header {
    padding: 1.2rem;
    text-align: center;
    border-bottom: 1px solid var(--bg-color);
}

.auth-menu .auth-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.auth-menu .auth-header p {
    font-size: 0.8rem;
    color: var(--text-dark-low);
}

.auth-menu .auth-body {
    padding: 1rem;
}

.auth-menu .auth-action {
    width: calc(100% - 1.6rem);
    padding: 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    background: var(--bg-color);
    margin-bottom: 0.8rem;
}

.auth-menu .auth-action:last-child {
    margin-bottom: 0;
}

.auth-menu .auth-action i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-menu .auth-action.login {
    color: var(--text-dark);
}

.auth-menu .auth-action.login i {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.auth-menu .auth-action.signup {
    color: var(--text-dark);
}

.auth-menu .auth-action.signup i {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.auth-menu .auth-action .action-content {
    flex: 1;
}

.auth-menu .auth-action .action-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.1rem;
}

.auth-menu .auth-action .action-desc {
    font-size: 0.75rem;
    color: var(--text-dark-low);
}

.auth-menu .auth-action:hover {
    transform: translateX(5px);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.auth-menu .auth-action:hover i {
    transform: scale(1.1) rotate(5deg);
}

.auth-menu .auth-footer {
    padding: 1rem;
    text-align: center;
    background: var(--bg-color);
    font-size: 0.8rem;
    color: var(--text-dark-low);
}

.auth-menu .auth-footer a {
    color: var(--primary-color-ultradark);
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-menu .auth-footer a:hover {
    text-decoration: underline;
}

/* Account button update */
.account-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.account-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.account-btn:hover {
    background: var(--bg-color);
}

.account-btn:hover i {
    transform: rotate(180deg);
}

/* Logged-in User Actions */
.logged-in-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.user-dropdown {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;
}

.user-menu-trigger:hover {
    background: var(--bg-color);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-trigger:hover .user-avatar {
    transform: scale(1.05);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.2px;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-dark-low);
}

.user-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-items {
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.menu-item i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.menu-item.profile i { 
    background: rgba(33, 150, 243, 0.08);
    color: #2196F3;
}

.menu-item.favorites i {
    background: rgba(176, 39, 39, 0.08);
    color: #ff0000;
}

.menu-item.posts i {
    background: rgba(76, 175, 80, 0.08);
    color: #4CAF50;
}

.menu-item.messages i {
    background: rgba(156, 39, 176, 0.08);
    color: #9C27B0;
}

.menu-item.notifications i {
    background: rgba(255, 152, 0, 0.08);
    color: #FF9800;
}

.menu-item.settings i {
    background: rgba(158, 158, 158, 0.08);
    color: #607D8B;
}

.menu-item:hover {
    background: var(--bg-color);
    transform: translateX(3px);
}

.menu-item:hover i {
    transform: scale(1.05) rotate(3deg);
}

.menu-item .menu-text {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.menu-item .badge {
    margin-left: auto;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}

.menu-item .badge.new {
    background: rgba(76, 175, 80, 0.08);
    color: #4CAF50;
}

.menu-divider {
    height: 1px;
    background: var(--bg-color);
    margin: 0.4rem 0;
    opacity: 0.7;
}

.menu-footer {
    padding: 0.6rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.logout-btn:hover {
    background: #F44336;
    color: #fff;
    transform: translateX(3px);
}

.logout-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.logout-btn:hover i {
    transform: rotate(45deg);
}



@media (max-width: 1200px) {
    .navbar .container { width: 90%; }
    .top-bar .container,
    .navbar .container {
        width: 90%;
    }
}

@media (max-width: 992px) {
    .search-wrapper {
        padding: 0.6rem 1rem;
    }
    
    .search-wrapper input {
        font-size: 0.95rem;
    }
    
    .post-ad-btn {
        padding: 0.6rem 1.2rem;
    }
    .search-categories { display: none; }
    .auth-buttons .post-ad-btn { display: none; }
    .top-menu li:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .action-buttons { display: none; }
    
    .auth-buttons {
        display: flex;
        gap: 0.5rem;
    }
    
    .mobile-menu-btn { display: flex; }
    .top-bar {
        display: none;
    }
    
    .language-dropdown {
        position: static;
    }

    .language-menu {
        right: 1rem;
        left: 1rem;
        top: 100%;
    }
}

@media (max-width: 400px) {
    .dropdown-menu {
        width: 90%;
        left: 5%;
        right: 5%;
    }

    .dropdown-header h3 {
        font-size: 0.8rem;
    }

    .mark-all-btn {
        font-size: 0.65rem;
    }

    .message-item,
    .notification-item {
        padding: 0.6rem;
        align-items: flex-start;
    }

    .message-image {
        width: 30px;
        height: 30px;
    }

    .message-content,
    .notification-content {
        width: 100%;
    }

    .message-title {
        font-size: 0.75rem;
    }

    .message-meta {
        align-items: flex-start;
    }

    .sender,
    .time {
        font-size: 0.65rem;
    }

    .message-preview {
        font-size: 0.7rem;
    }

    .message-actions {
        position: static;
        margin-top: 0.5rem;
    }

    .msg-action-btn {
        width: 20px;
        height: 20px;
    }

    .msg-action-btn i {
        font-size: 0.75rem;
    }

    .dropdown-footer .view-all {
        font-size: 0.7rem;
    }
}
