/* Navbar Refined Styles */
:root {
    --primary-color: #cabe06;
    --primary-hover: #a89d05;
    --secondary-color: #1e293b;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --primary-soft: rgba(202, 190, 6, 0.1);
}

.text-amber {
    color: var(--primary-color) !important;
}

.bg-amber-soft {
    background-color: var(--primary-soft) !important;
}

header {
    background: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 0.85rem 0;
}

.navbar-brand-custom {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.navbar-brand-custom i {
    color: var(--primary-color);
    background: rgba(202, 190, 6, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.2s ease;
    border-radius: 10px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(202, 190, 6, 0.05);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
    background: rgba(202, 190, 6, 0.08);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    padding: 8px 24px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-login:hover {
    color: var(--primary-color);
    background: rgba(202, 190, 6, 0.05);
}

.btn-signup {
    padding: 8px 24px;
    border-radius: 12px;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(202, 190, 6, 0.2);
}

.btn-signup:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(202, 190, 6, 0.3);
    color: white;
}

/* Dropdown Stylings */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 10px;
    margin-top: 15px !important;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(202, 190, 6, 0.08);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    margin-right: 10px;
    font-size: 0.95rem;
}

[dir="rtl"] .dropdown-item i {
    margin-right: 0;
    margin-left: 10px;
}

/* User Actions */
.navbar-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--text-main);
    border: none;
    transition: all 0.2s ease;
    position: relative;
    padding: 0;
}

.navbar-btn:hover {
    background: rgba(202, 190, 6, 0.1);
    color: var(--primary-color);
}

.no-caret::after {
    display: none !important;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Notifications Dropdown */
.notification-menu {
    width: 320px;
    max-height: 450px;
    overflow-y: auto;
}

.notification-header {
    padding: 12px 15px;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-list-scroll {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item-refined {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.notification-item-refined:hover {
    background: #f8fafc;
}

.notification-item-refined.unread {
    background: rgba(202, 190, 6, 0.04);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(202, 190, 6, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-body {
    flex-grow: 1;
}

.notif-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--secondary-color);
}

.notif-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 4px;
}

.notif-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.toggler-icon {
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.toggler-icon::before,
.toggler-icon::after {
    content: '';
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    display: block;
    position: absolute;
    transition: all 0.3s ease;
}

.toggler-icon::before {
    top: -8px;
}

.toggler-icon::after {
    bottom: -8px;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* RTL Adjustments */
[dir="rtl"] .navbar-brand-custom {
    flex-direction: row-reverse;
}

[dir="rtl"] .auth-buttons {
    flex-direction: row-reverse;
}