body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    height: 100%;
    overflow: hidden; /* 防止主页面滚动条 */
}

.container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50; /* 深蓝灰色 */
    color: #ecf0f1; /* 浅灰色文字 */
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%; /* 确保侧边栏填满高度 */
    box-sizing: border-box; /* padding 和 border 不会增加宽度 */
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 30px;
    padding: 10px 0;
    border-bottom: 1px solid #34495e; /* 稍亮的分隔线 */
}

.sidebar .logo h2 {
    margin: 0;
    font-size: 1.8em;
    color: #ecf0f1; /* 浅灰色文字 */
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* 占据剩余空间 */
}

.sidebar ul li a {
    display: block;
    padding: 12px 15px;
    color: #bdc3c7; /* 较暗的浅灰色 */
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #3498db; /* 蓝色高亮 */
    color: #ffffff; /* 白色文字 */
}

.content {
    flex-grow: 1;
    padding: 0; /* Iframe 不需要内边距 */
    background-color: #ffffff;
    height: 100%; /* 确保内容区域填满高度 */
    overflow: hidden; /* 防止内容区域自身滚动，由iframe处理 */
}

.content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 通用卡片样式 */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 按钮样式 */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-block;
    margin-right: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #3498db; /* 蓝色 */
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9; /* 深蓝色 */
}

.btn-secondary {
    background-color: #ecf0f1; /* 浅灰色 */
    color: #333;
    border: 1px solid #bdc3c7;
}

.btn-secondary:hover {
    background-color: #bdc3c7; /* 深浅灰色 */
}

.btn-danger {
    background-color: #e74c3c; /* 红色 */
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b; /* 深红色 */
}

.btn-success {
    background-color: #2ecc71; /* 绿色 */
    color: white;
}

.btn-success:hover {
    background-color: #27ae60; /* 深绿色 */
}


/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

table th {
    background-color: #f2f2f2; /* 浅灰色表头 */
    font-weight: bold;
}

/* 表单元素样式 */
input[type="text"],
input[type="number"],
input[type="file"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: calc(100% - 22px); /* 考虑 padding 和 border */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* 页面通用内边距 */
.page-container {
    padding: 20px;
}

/* 提示信息 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* 图片卡片网格 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* 响应式网格 */
    gap: 20px;
}

.image-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden; /* 确保图片圆角 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.image-card img {
    width: 100%;
    height: 150px; /* 固定高度 */
    object-fit: cover; /* 保持图片比例并裁剪 */
    display: block;
}

.image-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.image-card-content h5 {
    margin: 0 0 8px 0;
    font-size: 0.95em;
}

.image-card-content p {
    font-size: 0.85em;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.image-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    color: white;
}
.status-pending { background-color: #f39c12; /* 橙色 */ }
.status-annotated { background-color: #2ecc71; /* 绿色 */ }
.status-reviewed { background-color: #3498db; /* 蓝色 */ }
.status-rejected { background-color: #e74c3c; /* 红色 */ }

/* 模态框/弹窗样式 (基本) */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* 半透明背景 */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 垂直居中，水平居中 */
    padding: 25px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 600px; /* 最大宽度 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.modal-header {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5em;
}

.close-button {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
} 