/* 全局样式 */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 应用容器 */
.app-wrapper {
    height: 100vh;
    min-height: 100%;
}

/* 侧边栏样式 */
.sidebar-container {
    background-color: #304156;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1001;
    transition: width 0.28s;
}

.sidebar-container .el-menu {
    border: none;
    height: 100%;
    width: 100% !important;
}

.sidebar-container .el-menu-item {
    height: 56px;
    line-height: 56px;
}

.sidebar-container .el-menu-item [class^="el-icon-"] {
    margin-right: 16px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* 主容器样式 */
.main-container {
    min-height: 100%;
    margin-left: 210px;
    position: relative;
    background-color: #f0f2f5;
    transition: margin-left 0.28s;
}

/* 导航栏样式 */
.navbar {
    height: 50px;
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,21,41,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.hamburger-container {
    line-height: 50px;
    height: 100%;
    float: left;
    cursor: pointer;
    transition: background .3s;
    padding: 0 15px;
}

.hamburger-container:hover {
    background: rgba(0, 0, 0, .025);
}

.right-menu {
    float: right;
    height: 100%;
    line-height: 50px;
}

.el-dropdown-link {
    cursor: pointer;
    color: #409EFF;
}

/* 仪表盘样式 */
.dashboard-container {
    padding: 20px;
}

/* 统计卡片 */
.dashboard-cards {
    margin-bottom: 20px;
}

.el-card {
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-header i {
    font-size: 20px;
    margin-right: 8px;
}

.card-header span {
    font-size: 16px;
    color: #606266;
}

.card-body {
    font-size: 28px;
    font-weight: bold;
    color: #303133;
    text-align: center;
}

/* 快捷操作区 */
.dashboard-shortcuts {
    margin-bottom: 20px;
}

.shortcut-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shortcut-buttons .el-button {
    width: 100%;
    margin-left: 0;
}

/* 系统公告 */
.announcement-list {
    max-height: 300px;
    overflow-y: auto;
}

.announcement-item {
    padding: 10px 0;
    border-bottom: 1px solid #EBEEF5;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-title {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.announcement-title i {
    color: #E6A23C;
    margin-right: 8px;
}

.announcement-time {
    margin-left: auto;
    color: #909399;
    font-size: 12px;
}

.announcement-content {
    color: #606266;
    font-size: 14px;
    line-height: 1.5;
}

/* 最近活动 */
.dashboard-activities {
    margin-bottom: 20px;
}

.activity-list, .course-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item, .course-item {
    padding: 10px 0;
    border-bottom: 1px solid #EBEEF5;
    display: flex;
    align-items: center;
}

.activity-item:last-child, .course-item:last-child {
    border-bottom: none;
}

.activity-time, .course-time {
    color: #909399;
    font-size: 12px;
    margin-right: 10px;
}

.activity-user {
    color: #409EFF;
    margin-right: 5px;
}

.activity-action {
    color: #606266;
    margin-right: 5px;
}

.activity-target {
    color: #409EFF;
}

.course-name {
    color: #303133;
    font-weight: bold;
    margin-right: 10px;
    flex: 1;
}

.course-teacher {
    color: #606266;
    margin-right: 10px;
}

.no-data {
    text-align: center;
    color: #909399;
    padding: 30px 0;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .sidebar-container {
        width: 54px !important;
    }
    .main-container {
        margin-left: 54px;
    }
    .dashboard-cards .el-col {
        width: 100%;
    }
    
    .dashboard-shortcuts .el-col {
        width: 100%;
    }
    
    .dashboard-activities .el-col {
        width: 100%;
    }
}

/* 折叠状态 */
.sidebar-container.is-collapse {
    width: 54px;
}

.main-container.is-collapse {
    margin-left: 54px;
}

.header-title {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.header-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #303133;
}

/* 报名管理页面样式 */
.courses-container {
    padding: 5px;
}

.courses-card {
    margin-bottom: 20px;
}

.danger-text {
    color: #F56C6C;
}

.danger-text:hover {
    color: #F78989;
}

/* 报名学生列表样式 */
.empty-data {
    text-align: center;
    color: #909399;
    padding: 30px 0;
    font-size: 14px;
}

.el-dialog__body {
    padding: 10px 20px;
}

/* 考核表单样式 */
.el-select.is-disabled .el-input__inner {
    color: #606266;
}

.assessment-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.assessment-label {
    width: 120px;
    text-align: right;
    padding-right: 12px;
    color: #606266;
}

.assessment-value {
    flex: 1;
}

.time-inputs {
    display: flex;
    align-items: center;
}

.time-inputs .el-input-number {
    width: 80px;
    margin-right: 10px;
}

.time-inputs .unit {
    margin-right: 15px;
    color: #606266;
}

.save-btn {
    margin-left: 10px;
}

/* 隐藏时间选择器的小时列 */
.el-time-spinner__wrapper:first-child {
    display: none !important;
}

/* 调整分钟和秒钟列的宽度 */
.el-time-spinner__wrapper {
    width: 50% !important;
}

/* 隐藏多余的分隔符 */
.el-time-panel__content::before,
.el-time-panel__content::after {
    display: none !important;
}

/* 保持只有一个分隔符 */
.el-time-spinner__separator:first-child {
    display: none !important;
} 