/* Navbar Styles */
.navbar {
    background: white;
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.nav-links-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
    flex-wrap: nowrap;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo-link:hover {
    background: rgba(217, 48, 37, 0.1);
    transform: scale(1.05);
}

.logo-link:active {
    transform: scale(0.95);
}

.logo-icon {
    height: 45px;
    width: auto;
    display: block;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.nav-link:hover {
    background: rgba(217, 48, 37, 0.08);
    color: var(--primary-color);
    border-color: rgba(217, 48, 37, 0.2);
}

.nav-link i {
    font-size: 16px;
}

/* Dropdown Navigation Item */
.nav-item {
    position: relative;
}

.nav-item .nav-link {
    cursor: pointer;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(217, 48, 37, 0.08);
    color: var(--primary-color);
    border-right-color: var(--primary-color);
}

.dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 8px 0;
}


/* Make the register button more prominent */
.btn-secondary {
    padding: 10px 24px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(217, 48, 37, 0.15);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 48, 37, 0.3);
}


/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1101;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(217, 48, 37, 0.05) 0%, rgba(193, 39, 31, 0.05) 100%);
}

.sidebar-header h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin: 0;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    transform: rotate(90deg);
}

.sidebar-content {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

.sidebar-link:hover {
    background: rgba(217, 48, 37, 0.05);
    border-right-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-link-primary {
    margin: 20px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white !important;
    border-radius: 10px;
    border-right: none !important;
    box-shadow: 0 5px 15px rgba(217, 48, 37, 0.3);
}

.sidebar-link-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(217, 48, 37, 0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

/* Medium screens - slightly smaller buttons */
@media (max-width: 1024px) {
    .nav-link {
        padding: 8px 14px;
        font-size: 14px;
    }

    .btn-secondary {
        padding: 8px 18px;
        font-size: 14px;
    }

    .nav-buttons {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .nav-buttons {
        display: none;
    }

    .nav-links-group {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .logo {
        font-size: 20px;
    }

    .logo-icon {
        height: 35px;
    }
}