/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 页眉样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #1e88e5;
}

header h1 {
    color: #1e88e5;
    font-size: 28px;
    margin-bottom: 10px;
}

/* Logo样式 */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo {
    height: 60px;
    margin-right: 15px;
}

.date {
    font-size: 16px;
    color: #666;
}

/* 表单样式 */
.form-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

select, textarea, input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

select:focus, textarea:focus, input:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.form-actions {
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit {
    background-color: #1e88e5;
    color: white;
}

.btn-submit:hover {
    background-color: #1565c0;
}

.btn-reset {
    background-color: #f5f5f5;
    color: #333;
}

.btn-reset:hover {
    background-color: #e0e0e0;
}

.btn-admin {
    background-color: #757575;
    color: white;
    font-size: 14px;
}

.btn-admin:hover {
    background-color: #616161;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 0;
    color: #757575;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 加载指示器 */
.loading-indicator {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 8px;
    z-index: 100;
}

.loading-indicator.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1e88e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    text-align: center;
    padding: 20px;
    color: #757575;
}

/* 模态框样式 */
.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: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    width: 400px;
    max-width: 90%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* 管理员面板样式 */
.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1001;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #1e88e5;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.admin-content {
    padding: 30px;
}

.admin-actions {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-export {
    background-color: #4caf50;
    color: white;
}

.btn-export:hover {
    background-color: #388e3c;
}

.department-status, .submission-history {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.status-item, .history-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submitted {
    color: #4caf50;
}

.not-submitted {
    color: #f44336;
}

/* 日期选择区域样式 */
.date-selection {
    background-color: #f0f4f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.date-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.date-picker input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.export-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.export-actions h4 {
    margin: 0;
    margin-right: 10px;
}

.btn-view {
    background-color: #1976d2;
    color: white;
    font-size: 14px;
}

.btn-view:hover {
    background-color: #1565c0;
}

.current-date {
    margin-bottom: 15px;
}

.current-date h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.current-date span {
    font-weight: bold;
    color: #1976d2;
}


/* 无数据和错误提示样式 */
.no-data {
    text-align: center;
    padding: 20px;
    color: #757575;
    font-style: italic;
    background-color: #f8f8f8;
    border-radius: 4px;
    margin: 10px 0;
}

.error {
    text-align: center;
    padding: 20px;
    color: #d32f2f;
    background-color: #ffebee;
    border-radius: 4px;
    margin: 10px 0;
}
