/**
 * @fileoverview 快递任务管理系统 - 网页管理后台样式文件
 * @description 定义管理后台所有页面的视觉样式：
 * 
 * 布局结构：
 * - 登录页面：居中登录框，渐变背景
 * - 主界面：左侧固定导航栏 + 右侧内容区域
 * 
 * 组件样式：
 * - 导航菜单：垂直布局，激活状态高亮
 * - 数据表格：响应式表格，支持操作按钮
 * - 表单组件：输入框、选择器、文本域等
 * - 模态对话框：用于数据录入和确认操作
 * - 按钮：主按钮、次按钮、危险按钮等变体
 * 
 * 响应式设计：
 * - 支持桌面端和平板设备
 * - 自适应不同屏幕尺寸
 * 
 * @author System Developer
 * @version 1.0.0
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 60px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-box h1 {
    color: #333;
    margin-bottom: 16px;
    font-size: 28px;
}

.login-box p {
    color: #666;
    margin-bottom: 30px;
}

.login-btn {
    background-color: #07c160;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #06ad56;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background-color: #001529;
    color: white;
    padding: 20px 0;
}

.logo {
    padding: 20px 24px;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
}

.menu {
    display: flex;
    flex-direction: column;
}

.menu-item {
    padding: 14px 24px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.menu-item:hover,
.menu-item.active {
    background-color: #1890ff;
    color: white;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header {
    background: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.logout-btn {
    background-color: #ff4d4f;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.content {
    padding: 24px;
    flex: 1;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
}

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

.btn-primary {
    background-color: #1890ff;
    color: white;
}

.btn-primary:hover {
    background-color: #096dd9;
}

.btn-success {
    background-color: #52c41a;
    color: white;
}

.btn-danger {
    background-color: #ff4d4f;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

th {
    background-color: #fafafa;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background-color: #fafafa;
}

.image-preview {
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.status-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.status-pending { background-color: #fff7e6; color: #faad14; }
.status-processing { background-color: #e6f7ff; color: #1890ff; }
.status-completed { background-color: #f6ffed; color: #52c41a; }

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}
