/* Modern Navigation Styles */
.modern-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(109, 26, 134, 0.1);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
    z-index: 1;
}

.search-input {
    padding: 8px 12px 8px 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    width: 300px;
    font-size: 14px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-launcher {
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.app-launcher:hover {
    background: #f1f5f9;
    color: #6D1A86;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-nav:hover {
    background: #f1f5f9;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6D1A86, #2CC5FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.user-name {
    font-weight: 500;
    color: #1e293b;
}

/* App Launcher Dropdown */
.app-launcher-dropdown {
    position: fixed;
    top: 80px;
    right: 16px;
    width: 320px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.app-launcher-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.app-item:hover {
    background: rgba(248, 249, 250, 0.8);
    transform: translateY(-2px);
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.app-item span {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* User Menu Dropdown */
.user-menu-dropdown {
    position: fixed;
    top: 80px;
    right: 16px;
    width: 280px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.user-info {
    flex: 1;
}

.user-info .user-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.user-email {
    font-size: 14px;
    color: #666;
}

.user-menu-items {
    padding: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: rgba(248, 249, 250, 0.8);
}

.menu-item i {
    width: 16px;
    color: #666;
    font-size: 14px;
}

.menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 8px 0;
}

/* Sidebar remains unchanged for compatibility */
.connect-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    z-index: 998;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: #e9ecef;
    color: #333;
}

.nav-link.active {
    background: #e3f2fd;
    color: #1976d2;
    border-left-color: #1976d2;
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Main content adjustment */
body {
    margin: 0;
    padding-top: 80px;
    padding-left: 250px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.main-content {
    padding: 20px;
    padding-top: 10px;
    min-height: calc(100vh - 80px);
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding-left: 0;
    }
    
    .modern-navbar {
        left: 16px;
        right: 16px;
    }
    
    .search-input {
        width: 200px;
    }
    
    .user-name {
        display: none;
    }
    
    .app-launcher-dropdown,
    .user-menu-dropdown {
        right: 16px;
        left: 16px;
        width: auto;
    }
    
    .connect-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .connect-sidebar.open {
        transform: translateX(0);
    }
}
