/* ============================================
   医疗招募后台管理系统 - 全局样式
   主题配色：医疗蓝绿色系
   主色：#0d9488 (医疗青)
   辅色：#0f766e (深青)
   强调色：#14b8a6 (亮青)
   背景：#f0fdfa (极浅青)
   ============================================ */

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

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
    color: #334155;
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   登录页面样式
   ============================================ */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #134e4a 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 50px 45px;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(13, 148, 136, 0.4);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 35px;
    color: #0f766e;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
}

.login-box h1::before {
    content: '🏥 ';
    font-size: 32px;
}

.login-box .form-group {
    margin-bottom: 24px;
}

.login-box .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #475569;
    font-size: 14px;
}

.login-box .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.login-box .form-control:focus {
    outline: none;
    border-color: #14b8a6;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.login-box .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    margin-top: 10px;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.login-box .btn-primary:hover {
    background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

/* ============================================
   后台管理界面样式
   ============================================ */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0f766e 0%, #134e4a 100%);
    color: #fff;
    padding: 0;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h2 {
    text-align: center;
    padding: 30px 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 2px;
}

.sidebar h2::before {
    content: '⚕️ ';
    font-size: 24px;
    margin-right: 8px;
}

.sidebar ul {
    list-style: none;
    padding: 15px 0;
}

.sidebar ul li {
    padding: 0;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 14px;
    font-weight: 500;
}

.sidebar ul li a::before {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* 菜单图标 */
.sidebar ul li:nth-child(1) a::before { content: '📊'; }
.sidebar ul li:nth-child(2) a::before { content: '📄'; }
.sidebar ul li:nth-child(3) a::before { content: '📝'; }
.sidebar ul li:nth-child(4) a::before { content: '👥'; }
.sidebar ul li:nth-child(5) a::before { content: '🔐'; }
.sidebar ul li:nth-child(6) a::before { content: '📁'; }
.sidebar ul li:nth-child(7) a::before { content: '🖼️'; }
.sidebar ul li:nth-child(8) a::before { content: '🚪'; }

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left-color: #5eead4;
}

.sidebar ul li a.active {
    background: rgba(94, 234, 212, 0.15);
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 260px;
    min-height: 100vh;
}

/* 顶部导航栏 */
.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 35px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header h1 {
    font-size: 24px;
    color: #0f766e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #64748b;
    font-size: 14px;
}

.header-info span {
    background: #f0fdfa;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ccfbf1;
}

.content {
    padding: 30px 35px;
    flex: 1;
}

/* ============================================
   按钮样式
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.25);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(100, 116, 139, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-edit {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-edit:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
}

/* ============================================
   卡片式布局
   ============================================ */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(10px);
}

.card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f766e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   数据表格样式
   ============================================ */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.data-table th,
.data-table td {
    padding: 16px 18px;
    text-align: left;
}

.data-table th {
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
    font-weight: 600;
    color: #0f766e;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ccfbf1;
}

.data-table td {
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 14px;
}

.data-table tr:hover td {
    background-color: #f8fafc;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-recruiting {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.status-completed {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
}

/* ============================================
   统计卡片样式
   ============================================ */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d9488, #14b8a6, #5eead4);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.15);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   表单样式
   ============================================ */
.form {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

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

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

.form-group .required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: #14b8a6;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.form-actions {
    margin-top: 35px;
    display: flex;
    gap: 12px;
}

/* 表单区块样式 */
.form-section {
    margin-top: 35px;
    padding: 28px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #0f766e;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #ccfbf1;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.form-section .form-group label {
    font-weight: 500;
    color: #64748b;
}

/* ============================================
   消息提示样式
   ============================================ */
.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #fca5a5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message::before {
    content: '⚠️';
    font-size: 20px;
}

.success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #6ee7b7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message::before {
    content: '✅';
    font-size: 20px;
}

.info-message {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #93c5fd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-message::before {
    content: 'ℹ️';
    font-size: 20px;
}

/* ============================================
   批量操作样式
   ============================================ */
.batch-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 1px solid #ccfbf1;
}

.batch-select {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background-color: #fff;
    min-width: 160px;
    cursor: pointer;
}

.batch-select:focus {
    outline: none;
    border-color: #14b8a6;
}

/* ============================================
   筛选表单样式
   ============================================ */
.filter-form {
    margin-bottom: 24px;
    padding: 22px 26px;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
    border-radius: 14px;
    border: 1px solid #ccfbf1;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-form label {
    font-weight: 500;
    color: #475569;
    font-size: 14px;
}

.filter-form select {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background-color: #fff;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-form select:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.filter-form button {
    padding: 10px 24px;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.filter-form button:hover {
    background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

/* ============================================
   分页样式
   ============================================ */
.pagination {
    margin-top: 28px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.pagination a:hover {
    background: #f0fdfa;
    border-color: #14b8a6;
    color: #0f766e;
}

.pagination span.current {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content {
        margin-left: 220px;
    }
    
    .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .content {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .batch-actions {
        flex-wrap: wrap;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 10px;
    }
}

/* ============================================
   空状态样式
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
    font-weight: 500;
}

/* ============================================
   复选框样式
   ============================================ */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    accent-color: #0d9488;
}

input[type="checkbox"]:checked {
    background-color: #0d9488;
    border-color: #0d9488;
}
