/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f6fa;
    color: #2c3e50;
}

/* 登录页面样式 */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 2.5rem;
    color: #4834d4;
    margin-bottom: 1rem;
}

.login-header h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-header .subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i:not(.password-toggle) {
    position: absolute;
    left: 1rem;
    color: #7f8c8d;
}

.input-group .password-toggle {
    position: absolute;
    right: 1rem;
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.input-group .password-toggle:hover {
    color: #4834d4;
}

.input-group input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #4834d4;
    box-shadow: 0 0 0 2px rgba(72, 52, 212, 0.1);
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.forgot-password {
    color: #4834d4;
    text-decoration: none;
    font-size: 0.9rem;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: #4834d4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #3a2bb3;
    transform: translateY(-1px);
}

.login-btn i {
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(5px);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: #666;
    font-size: 0.9rem;
}

/* 管理员页面样式 */
.admin-container {
    padding: 2rem;
}

header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:nth-child(1) {
    background: #4834d4;
}

.nav-btn:nth-child(1):hover {
    background: #3a2bb3;
}

.nav-btn:nth-child(2) {
    background: #2ecc71;
}

.nav-btn:nth-child(2):hover {
    background: #27ae60;
}

.nav-btn:nth-child(3) {
    background: #3498db;
}

.nav-btn:nth-child(3):hover {
    background: #2980b9;
}

.nav-btn.logout {
    background: #e74c3c;
}

.nav-btn.logout:hover {
    background: #c0392b;
}

.nav-btn.active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.nav-btn:nth-child(1).active {
    background: #3a2bb3;
}

.nav-btn:nth-child(2).active {
    background: #27ae60;
}

.nav-btn:nth-child(3).active {
    background: #2980b9;
}

.data-grid {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* 修改模态框关闭按钮的样式 */
.modal .close {
    cursor: pointer;  /* 改为手型光标 */
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    color: #666;
    transition: color 0.3s ease;
}

.modal .close:hover {
    color: #4834d4;
}

/* 员工页面样式 */
.employee-container {
    padding: 2rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h3 {
    color: #2d3436;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1.5rem;
    color: #4834d4;
    font-weight: bold;
}

/* 头部样式优化 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* 部分标题样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* 操作按钮样式 */
.action-btn {
    padding: 0.5rem 1rem;
    background: #4834d4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* 趋势指标样式 */
.trend {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.trend.up {
    color: #2ecc71;
}

.trend.down {
    color: #e74c3c;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    background: #f1f2f6;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.page-info {
    color: #666;
}

/* 图表容器样式 */
.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 1.5rem;
    height: 300px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        margin-top: 1rem;
    }
} 

/* 部分切换样式 */
.section-hidden {
    display: none;
}

.section-active {
    display: block;
}

/* 表格按钮样式 */
.table-btn {
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.table-btn.edit {
    background: #3498db;
    color: white;
}

.table-btn.delete {
    background: #e74c3c;
    color: white;
}

/* 创建账号表单样式 */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 500;
}

.admin-form input,
.admin-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.submit-btn,
.reset-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.submit-btn {
    background: #4834d4;
    color: white;
    flex: 1;
}

.reset-btn {
    background: #f1f2f6;
    color: #2c3e50;
}

/* 导航按钮激活状态 */
.nav-btn.active {
    background: #686de0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .table-btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
} 

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-modal {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
} 

/* 错误提示样式 */
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
}

.error-message.show {
    display: block;
}

/* 业绩记录表单样式 */
.performance-form {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.performance-form .form-group {
    margin-bottom: 1rem;
}

.performance-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 500;
}

.performance-form input,
.performance-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* 最近记录表格样式 */
.records-table {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.refresh-btn {
    padding: 0.5rem 1rem;
    background: #4834d4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn i {
    font-size: 0.9rem;
} 

/* 开关按钮样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: .4s;
    cursor: pointer;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    background-color: #4834d4;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.switch-text {
    font-size: 14px;
    color: #666;
    margin-left: 8px;
    cursor: default;
}

.switch input:checked ~ .switch-text {
    color: #4834d4;
} 

/* 日期筛选样式 */
.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-range input[type="date"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 状态标签样式 */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-badge.enabled {
    background-color: #dcfce7;  /* 浅绿色背景 */
    color: #16a34a;             /* 深绿色文字 */
}

.status-badge.disabled {
    background-color: #fee2e2;  /* 浅红色背景 */
    color: #dc2626;             /* 深红色文字 */
} 

/* 搜索姓名输入框样式 */
.search-name {
    margin-right: 1rem;
}

.search-name input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

/* 业绩汇总卡片样式 */
.card-content {
    margin-top: 1rem;
}

.card-content p {
    font-size: 1rem;
    color: #666;
    margin: 0.5rem 0;
}

.card-content span {
    color: #4834d4;
    font-weight: bold;
    margin-left: 0.5rem;
} 

/* 业绩记录表单样式优化 */
.performance-form .form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.performance-form .form-control:focus {
    border-color: #4834d4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(72, 52, 212, 0.1);
}

.performance-form .form-control::-webkit-inner-spin-button,
.performance-form .form-control::-webkit-outer-spin-button {
    opacity: 1;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #4834d4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #3a2bb3;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
} 

/* 现代主题样式 */
.modern-theme {
    background-color: #f0f2f5;
    color: #1a1a1a;
}

.modern-header {
    background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
    padding: 1.5rem;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modern-header .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modern-header .fa-user-circle {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.9);
}

.modern-header .user-details h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.modern-header .welcome-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.modern-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    gap: 2rem;
}

.modern-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.modern-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.modern-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modern-input:focus {
    border-color: #4834d4;
    box-shadow: 0 0 0 3px rgba(72, 52, 212, 0.1);
    outline: none;
    background: white;
}

.modern-button {
    background: #4834d4;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.modern-button:hover {
    background: #3a2bb3;
    transform: translateY(-1px);
}

.modern-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.modern-button i {
    font-size: 1.1rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.summary-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #4834d4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.summary-card:hover .card-icon {
    transform: scale(1.05);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: bold;
}

.modern-table-container {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #666;
}

.modern-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.modern-table tr:hover {
    background: #f8f9fa;
}

.modern-select {
    padding: 0.8rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    background: white;
    color: #1a1a1a;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modern-select:focus {
    border-color: #4834d4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(72, 52, 212, 0.1);
}

.modern-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.modern-form label i {
    color: #4834d4;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .modern-main {
        padding: 1rem;
    }
    
    .modern-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .date-range {
        flex-direction: column;
        width: 100%;
    }
    
    .date-range input[type="date"] {
        width: 100%;
    }
    
    .modern-button {
        width: 100%;
    }
} 

.modern-button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.modern-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
} 

/* 现代输入框样式 */
.input-wrapper {
    position: relative;
    width: 100%;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
}

.modern-input.with-currency {
    padding-left: 28px;
}

.modern-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.modern-input:focus {
    border-color: #4834d4;
    box-shadow: 0 0 0 3px rgba(72, 52, 212, 0.1);
    outline: none;
}

.modern-input::placeholder {
    color: #aaa;
}

.modern-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(72, 52, 212, 0.2);
}

.modern-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(72, 52, 212, 0.25);
}

.modern-submit-btn:active {
    transform: translateY(0);
}

.modern-submit-btn.submitted {
    background: #2ecc71;
    pointer-events: none;
}

.modern-submit-btn.submitted i {
    animation: submitSuccess 0.5s ease;
}

@keyframes submitSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #444;
    font-weight: 500;
}

.form-group label i {
    color: #4834d4;
} 

.delete-btn {
    padding: 0.3rem 0.8rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #c0392b;
}

.delete-btn i {
    font-size: 0.9rem;
} 

.refresh-btn {
    margin-left: 0.5rem;
    background: #2ecc71;
}

.refresh-btn:hover {
    background: #27ae60;
}

.refresh-btn i {
    margin-right: 0.5rem;
} 

/* 新的退出登录按钮样式 */
.modern-logout-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(238, 82, 83, 0.2);
}

.modern-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(238, 82, 83, 0.3);
    background: linear-gradient(135deg, #ee5253 0%, #d63031 100%);
}

.modern-logout-btn:active {
    transform: translateY(0);
}

.modern-logout-btn i {
    font-size: 1rem;
} 

/* 确保所有页面的��标样式一致 */
.card-icon i {
    font-size: 1.5rem;
    color: white;
} 

/* 修改汇总卡片图标样式 */
.summary-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #4834d4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* 大线平台图标样式 */
.summary-card:nth-child(2) .card-icon,
.summary-card:nth-child(3) .card-icon {
    background: #4834d4;
}

/* 分页样式 */
.pagination-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-info {
    color: #666;
    font-size: 0.9rem;
}

.pagination .modern-button {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination .modern-button:disabled {
    background: #ccc;
    cursor: not-allowed;
} 

.record-time {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
} 

/* 员工搜索框样式 */
.search-employee {
    margin-right: 1rem;
}

.search-employee input {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 200px;
    transition: all 0.3s ease;
}

.search-employee input:focus {
    border-color: #4834d4;
    box-shadow: 0 0 0 3px rgba(72, 52, 212, 0.1);
    outline: none;
}

/* 调整筛选组的布局 */
.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
} 

/* Toast 提示样式 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 9999;  /* 确保显示在最上层 */
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.show {
    opacity: 1;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: #10b981;
}

.toast.error i {
    color: #ef4444;
} 

/* 添加编辑员工模态框的样式 */
.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form label {
    display: block;
    margin-bottom: 0.8rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}

.admin-form .modern-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.admin-form .modern-input:focus {
    border-color: #4834d4;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(72, 52, 212, 0.1);
    outline: none;
}

.admin-form .modern-input::placeholder {
    color: #9ca3af;
}

/* 开关按钮样式优化 */
.admin-form .switch-wrapper {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.admin-form .switch {
    position: relative;
    width: 52px;
    height: 26px;
}

.admin-form .slider {
    background-color: #e5e7eb;
}

.admin-form .slider:before {
    height: 20px;
    width: 20px;
}

.admin-form input:checked + .slider {
    background-color: #4834d4;
}

/* 按钮样式优化 */
.admin-form .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.admin-form .btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-form .btn-secondary {
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-form .btn-primary:hover {
    background: linear-gradient(135deg, #3a2bb3 0%, #5a5fdb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 52, 212, 0.15);
}

.admin-form .btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
} 