﻿/* wwwroot/css/site.css */

/* 重置和基本样式 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 侧边栏样式 */
.sidebar {
    min-width: 250px;
    max-width: 250px;
    background-color: #343a40;
    color: #fff;
    transition: all 0.3s;
}

.sidebar a {
    color: #ddd;
    text-decoration: none;
}

.sidebar a.active, .sidebar a:hover {
    background-color: #495057;
    color: #fff;
}

/* 主要内容区域样式 */
.content {
    padding: 20px;
    background-color: #f8f9fa;
    overflow-y: auto; /* 允许内容滚动 */
}

/* 保证 d-flex 容器填满视口高度 */
.full-height {
    height: 100vh;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }

        .sidebar.active {
            margin-left: 0;
        }

    .toggle-btn {
        display: block;
    }
}

/* 隐藏切换按钮在大屏设备 */
.toggle-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    background-color: #343a40;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1000;
}

.box_container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-top: 20px;
}

.box {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px;
    width: 400px;
    height: 800px; /* 固定高度 */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.box label {
    font-weight: bold;
}

.actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.actions button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.actions button:hover {
    background-color: #0056b3;
}

.toolbar {
    background-color: #24486c; /* 深色背景 */
    color: #fff; /* 白色文字 */
    padding: 10px 15px;
    border-radius: 5px;
}

.toolbar a {
    color: #000;
    text-decoration: none;
    margin-right: 15px;
}

.toolbar a:hover {
    color: #0a396c; /* 悬停时变成浅灰色 */
}

.sidebar_lesson {
    min-width: 250px;
    max-width: 350px;
    background-color: #f8f9fa;
    padding: 15px;
}

.course-list {
    list-style-type: none;
    padding-left: 0;
}

.course-item a, .course-item button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 5px 10px;
    border: none;
    background: none;
    color: #007bff;
    text-decoration: none;
}

.course-item button {
    background-color: #24486c;
    color: white;
}

.icon {
    font-size: 3rem; /* 设置图标大小 */
    color: #6c757d; /* 设置图标颜色 */
    transition: color 0.3s; /* 添加过渡效果 */
}

.icon:hover {
    color: #007bff; /* 悬停时改变颜色 */
}

.quick-link a,
.todo-item a {
    text-decoration: none; /* 去掉下划线 */
    color: inherit; /* 继承颜色 */
}

.todo-item a:hover {
    text-decoration: underline; /* 添加下划线 */
}

#toolbar_panel_left {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#toolbar_panel_left label,
#toolbar_panel_left input,
#toolbar_panel_left .btn {
    margin-right: 10px;
}