/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 1rem;
}

/* Logo样式 */
.navbar-logo {
    height: 40px;
    margin-right: 10px;
}

.navbar-brand {
    font-weight: bold;
    color: #333 !important;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #666 !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff !important;
}

/* 去除下拉箭头 */
.dropdown-toggle-custom::after {
    display: none !important;
}

/* 修改下拉菜单行为和位置 */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    transform: translateX(-5%); /* 向左偏移，使其与个人中心居中对齐 */
}

/* 下拉菜单样式 */
.dropdown-menu {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: auto;     /* 移除最小宽度限制 */
    padding: 5px;        /* 统一内边距 */
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: #666;
    text-align: right;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* 图标样式 */
.nav-icons {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.nav-icons a {
    color: #666;          /* 恢复原来的颜色 */
    margin-right: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    position: relative; /* 使徽章可以相对于链接定位 */
}

.nav-icons a:hover {
    color: #007bff;      /* 恢复原来的悬停颜色 */
}

.nav-icons a .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    border-radius: 50%;
    min-width: 20px;
    padding: 2px 5px;
    font-size: 12px;
    color: #fff;
    text-align: center;
}

/* 图标颜色 */
.icon-green {
    color: #28a745; /* 绿色 */
}

.icon-yellow {
    color: #ffc107; /* 黄色 */
}

.icon-red {
    color: #dc3545; /* 红色 */
}

/* 徽章颜色 */
.badge-green {
    background-color: #28a745;
}

.badge-yellow {
    background-color: #ffc107;
}

.badge-red {
    background-color: #dc3545;
}

/* 添加或修改以下样式 */
.navbar-nav {
    margin-left: 0;  /* 移除自动边距 */
    margin-right: auto;  /* 保持右侧自动边距 */
}

.navbar-nav .nav-item {
    text-align: left;  /* 确保文本左对齐 */
}

/* 如果需要调整间距，可以添加 */
.navbar-nav .nav-link {
    padding-left: 15px;  /* 添加左侧内边距 */
}

/* 统一导航栏链接及下拉菜单项的字体大小 */
.navbar-nav .nav-link,
.navbar-nav .dropdown-item {
    font-size: 16px; /* 可根据需要调整统一的字体大小 */
} 