/* 标题样式 */
.header {
    min-height: 20px;
    position: relative;
    background-color: #8ec2ec;
    color: white;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
}

/* 主要容器 */
.container {
    display: flex;
    min-height: 500px;
}

/* 左侧菜单 */
.sideBar {
    width: 320px;
    background-color: #f1ebf1;
    padding: 10px;
    font-size: 14px;
}

/* 右侧内容 */
.taskBar {
    flex: 1;
    padding-left: 10px;
    padding-top : 10px;
    background-color: white;
}

/* 设置按钮 */
.setButton {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);    
    width : 40px;
    height: 40px;
    line-height: 1; 
    background-color: #bdb1eb;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

}

/* 悬停效果 */
.setButton:hover {
    background-color: #0056b3;
    transform: translateY(-51%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* 点击效果 */
.setButton:active {
    transform: translateY(-1px);
}

div.sideBarFrame {
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid rgb(223, 212, 224);   
    border-radius: 3px;
    background-color: white;
}

div.coursePoint{
    margin: 10px;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    color: rgb(146, 119, 129);
    text-decoration: none;
}

div.courseName {
    flex: 1;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
    color: rgb(30, 25, 78);
    text-decoration: none;
}

div.coursePrecent {
  width: 40px;
  height: 40px;
  line-height: 40px;       /* ← 关键，和 height 相等 */
  text-align: center;       /* 水平居中 */
  border-radius: 50%;
  background: #4ecdc4;
  color: rgb(209, 17, 17);
  font-size: 12px;
  font-weight: 600;
  margin-right: 10px;
}

div.taskFrame {
    width: 100%;
    background: white;
    margin-right: 10px;
    margin-bottom: 12px;
    border: 1px solid rgb(215, 216, 241);
    border-radius: 2px;
    cursor: pointer;
    /* box-shadow: 0px 1px 1px 0px rgb(60 64 67 / 30%), 0px 1px 1px 0px rgb(60 64 67 / 15%); */
}

div.taskHeader {
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 20px;
    margin-bottom: 25px;
}

div.taskPoints {
    width: 160px;
    float: right;
    text-align: right;
    font-size: 13px; 
    color: rgb(135, 135, 135);  
    vertical-align: bottom;   
    line-height: 22px;
}

span.taskType {
    font-size: 16px;
    font-weight: bold;
    margin-left: 7px;
    color: rgb(30, 25, 78);
    vertical-align: bottom; 
    line-height: 22px;
}

div.taskTitle {
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    font-size: 16px; 
    font-weight: normal;
    color: rgb(64, 64, 64);
}

div.taskContent {
    padding-left: 16px;
    font-size: 12px; 
    font-weight: normal;
    color: rgb(84, 94, 81);
}

div.taskPrerequisites {
    padding-left: 15px;
    padding-top: 25px;
    padding-bottom: 10px;
    font-size: 13px;
}

div.taskPrerequisitesHeader {
    font-weight: bold;
    text-transform: uppercase;
    color: rgb(30, 25, 78);
    margin-bottom: 13px;
}

div.taskPrerequisite {
    margin-top: 5px; 
    vertical-align: middle;
}

img.prerequisiteCheckmark {
    max-width: 14px;
    margin-right: 5px;
    vertical-align: middle;
}

img.completedCheckmark {
    max-width: 17px;
    margin-right: 5px;
    margin-bottom: 3px;
    vertical-align: middle;
}

div.taskButtons {
    margin-top: 15px;
    padding-left: 15px;
    border-top: 1px solid rgb(236, 236, 236);
    padding-top: 25px;
    padding-bottom: 20px;
}

a.taskStart {
    font-size: 14px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 9px;
    padding-bottom: 9px;
    border-radius: 17px;
    text-decoration: none;
}

div.iconTitle {
  display: inline-block;
  vertical-align: middle;
  width : 24px;
  height: 24px;
  background-size: cover;      /* 缩放背景图以完全覆盖 div（可能会裁切边缘） */
  background-size: contain;    /* 缩放背景图以完整显示（可能会有留白） */
  background-repeat: no-repeat; /* 防止图片重复 */
  background-position: center;  /* 图片居中 */
}

div.iconTitle[data-status="0"]   { display:none; }
div.iconTitle[data-status="1"]   { background-image: url('https://www.svgrepo.com/show/211058/padlock-lock.svg'); }
div.iconTitle[data-status="2"]   { background-image: url('https://www.svgrepo.com/show/532122/clock-three.svg'); }
div.iconTitle[data-status="100"] { background-image: url('https://www.svgrepo.com/show/507980/check-badge.svg'); }
