/* 重置默认样式 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}
  
/* 主容器，左右布局 */
.container {
    display: flex;
    height: 100vh;
    width: 100vw;
}
  
/* PPT 列表所在的侧边栏 */
#sidebar {
    width: 10%;
    background-color: #f0f0f0;
    overflow-y: auto;
    border-right: 1px solid #ddd;
}
  
#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
  
#sidebar li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}
  
#sidebar li:hover,
#sidebar li.active {
    background-color: #ddd;
}
  
/* 右侧展示区域 */
#main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
  
/* PPT 展示区域 */
#ppt-display {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
  
#ppt-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
  
/* 当容器处于全屏模式时，隐藏左侧列表 */
.fullscreen #sidebar {
    display: none;
}
  
/* 缩略图样式 */
.thumbnail {
    width: 100px; /* 缩略图宽度 */
    height: auto; /* 自动调整高度以保持比例 */
    margin: 5px 0; /* 上下外边距 */
    cursor: pointer; /* 鼠标悬停时显示手型光标 */
    border: 1px solid #ddd; /* 边框 */
    border-radius: 4px; /* 圆角 */
    padding: 5px; /* 内边距 */
    background-color: #fff; /* 背景色 */
}
  
/* 缩略图选中状态 */
.thumbnail.active {
    border-color: #007bff; /* 选中时的边框颜色 */
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
}

.login-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 320px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group button {
    width: 100%;
    padding: 12px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.form-group button:hover {
    background-color: #3a7bc8;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    min-height: 20px;
}

/* 侧边栏头部 */
.sidebar-header {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: right;
}

/* 退出按钮 */
#logout-button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

#logout-button:hover {
    background-color: #d32f2f;
}
