/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: Arial, sans-serif;
    height: 100%;
}

/* Layout */
.container {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #333;
    color: #fff;
    padding: 20px;
    height: 100vh;
    position: fixed;
}

.sidebar h2 {
    margin-bottom: 15px;
}

.dropdown {
    margin-bottom: 10px;
}

.dropdown-btn {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-content {
    display: none; /* Hidden by default */
    background-color: #555;
    padding-left: 15px;
}

.dropdown-content a {
    color: #fff;
    padding: 8px 0;
    display: block;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #666;
}

/* Active dropdown content styling */
.dropdown-content.show {
    display: block; /* Show the dropdown when .show is added */
}

/* Main Content */
.content {
    margin-left: 2px;
    padding: 20px;
    flex-grow: 1;
}
/* Basic reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    /*background: url('/static/images/1.png') no-repeat center center fixed;*/
    background-size: cover; /* 背景图像覆盖整个屏幕 */
    color: #e0e0e0;
    height: 100vh;
    margin: 0;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
}

.sidebar {
    width: 220px;
    background-color: rgba(32, 37, 79, 0.8); /* 半透明背景 */
    color: #f1f1f1;
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffebbb;
}

.dropdown {
    margin-bottom: 15px;
}

.dropdown-btn {
    background-color: rgba(48, 54, 90, 0.8); /* 下拉按钮的半透明背景 */
    color: #ffebbb;
    padding: 12px;
    width: 100%;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
}

.dropdown-btn:hover {
    background-color: rgba(60, 66, 107, 0.8);
    color: #ffffff;

}

.dropdown-content {
    display: none;
    background-color: rgba(51, 55, 102, 0.7); /* 子菜单半透明背景 */
    border-radius: 4px;
    margin-top: 8px;
    padding-left: 10px;
}

.dropdown-content a {
    color: #ffebcc;
    padding: 8px 10px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 4px;
    margin-bottom: 4px;
}

.dropdown-content a:hover {
    background-color: rgba(64, 68, 114, 0.7);
    color: #ffffff;
        font-weight: bolder;
    font-size: large;
}

.content {
    flex-grow: 1;
    padding: 30px;
    background-color: rgba(26, 27, 61, 0.4); /* 内容区背景的透明度降低，以提高可读性 */
    font-size: 18px;
    color: #d9d9e2;
    overflow-y: auto;
    border-left: 1px solid rgba(100, 100, 150, 0.3);
    border-radius: 8px;
    /*backdrop-filter: blur(5px); !* 增加模糊效果 *!*/
}

