.navbar {
    background-color: #fbfbfc;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 50;
    transition: transform 0.3s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    width: 100%;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.navbar-logo:hover {
    opacity: 0.8;
}

.navbar-logo img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: contain;
}

.navbar-logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: black;
    font-family: 'Exo 2', sans-serif;
}

.navbar-desktop {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.navbar-mobile-button {
    display: block;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    border: none;
    background: none;
    cursor: pointer;
}

.navbar-mobile-button:hover {
    background-color: #f3f4f6;
}

.navbar-mobile-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #80b49b;
}

.navbar-mobile-button svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #4b5563;
}

.btn {
    padding: 0.375rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: 1px solid;
    cursor: pointer;
    box-sizing: border-box;
}

.navbar .btn {
    height: 40px;
    min-height: 40px;
}

.btn-primary {
    background-color: white;
    color: #1f2937;
    border-color: #1f2937;
}

.btn-primary:hover {
    background-color: #f9fafb;
}

.btn-outline {
    background-color: transparent;
    color: #1f2937;
    border-color: #1f2937;
}

.btn-outline:hover {
    background-color: #80b49b;
    color: white;
}

.btn-filled {
    background-color: #1f2937;
    color: white;
    border-color: #1f2937;
}

.btn-filled:hover {
    background-color: #80b49b;
}

.split-button {
    display: flex;
    position: relative;
}

.split-button-left {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.split-button-separator {
    width: 1px;
    background-color: #1f2937;
}

.split-button-right {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.split-button-right i {
    color: #6b7280;
    font-size: 0.75rem;
}

.dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 12rem;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0;
    z-index: 50;
}

.dropdown-hidden {
    display: none;
}

[x-cloak] {
    display: none !important;
}

/* Hide Alpine.js dropdown elements until they're ready */
[x-data] .dropdown {
    display: none;
}

[x-data].alpine-ready .dropdown {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

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

.user-avatar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background-color: white;
    border: 1px solid #1f2937;
    transition: background-color 0.2s;
    cursor: pointer;
    box-sizing: border-box;
    height: 40px;
}

.user-avatar:hover {
    background-color: #f9fafb;
}

.user-avatar img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 1.5rem;
    height: 1.5rem;
    background-color: #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-placeholder i {
    color: #6b7280;
    font-size: 0.75rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.user-chevron {
    font-size: 0.75rem;
    color: #6b7280;
}

.navbar-mobile {
    display: none;
    background-color: white;
    border-top: 1px solid #f3f4f6;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-mobile.hidden {
    display: none;
}

.navbar-mobile.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-mobile-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1.25rem;
    text-align: center;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-menu-item.btn-primary {
    background-color: white;
    color: #1f2937;
    border: 1px solid #1f2937;
}

.mobile-menu-item.btn-primary:hover {
    background-color: #80b49b;
    color: white;
    border-color: #80b49b;
}

.mobile-menu-item.btn-filled {
    background-color: #1f2937;
    color: white;
}

.mobile-menu-item.btn-filled:hover {
    background-color: #80b49b;
}

.mobile-menu-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.mobile-menu-group.space-y-3 {
    gap: 0.75rem;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.mobile-user-avatar {
    flex-shrink: 0;
}

.mobile-user-avatar img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #80b49b;
}

.mobile-user-avatar-placeholder {
    width: 3rem;
    height: 3rem;
    background-color: #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #80b49b;
}

.mobile-user-avatar-placeholder i {
    color: #6b7280;
    font-size: 1.25rem;
}

.mobile-user-details {
    flex: 1;
    min-width: 0;
}

.mobile-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-user-email {
    font-size: 0.875rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .navbar-desktop {
        display: flex;
    }

    .navbar-mobile-button {
        display: none;
    }

    .navbar-mobile {
        display: none;
    }
}

/* Features Dropdown Styles */
.features-dropdown {
    position: relative;
}

.features-dropdown-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
    border: 1px solid #1f2937;
    cursor: pointer;
    background-color: transparent;
    color: #1f2937;
    height: 40px;
    min-height: 40px;
}

.features-dropdown-button:hover {
    background-color: #80b49b;
    color: white;
}

.features-dropdown-chevron {
    font-size: 0.875rem;
    margin-left: 0.25rem;
    transition: transform 0.2s;
}

.features-dropdown-chevron.rotated {
    transform: rotate(180deg);
}

.features-dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 16rem;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0;
    z-index: 50;
}

.features-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.features-dropdown-item:hover {
    background-color: #80b49b;
    color: white;
}

.features-dropdown-item-icon {
    font-size: 1.125rem;
    margin-right: 0.75rem;
    width: 1.5rem;
    text-align: center;
}

.features-dropdown-item-content {
    flex: 1;
}

.features-dropdown-item-title {
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.features-dropdown-item-description {
    font-size: 0.875rem;
    color: #6b7280;
}

.features-dropdown-item:hover .features-dropdown-item-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Features Accordion Styles */
.mobile-menu-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0.375rem;
}

.mobile-menu-accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-menu-accordion-header .mobile-menu-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-menu-accordion-icon {
    font-size: 0.75rem;
    color: #6b7280;
    transition: transform 0.2s ease-in-out;
}

.mobile-menu-accordion-icon.rotated {
    transform: rotate(180deg);
}

.mobile-menu-accordion-content {
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
    margin-left: 0.5rem;
}

.mobile-menu-accordion-content .mobile-menu-item {
    margin-bottom: 0.25rem;
}

.mobile-menu-accordion-content .mobile-menu-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .navbar-mobile-button {
        display: block;
    }

    .navbar-mobile {
        display: block;
    }
}
