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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #303133;
    font-size: 14px;
    line-height: 1.5;
}

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

.login-box {
    width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
}

.login-title h1 {
    font-size: 28px;
    color: #303133;
    margin-bottom: 8px;
}

.login-title p {
    color: #909399;
    font-size: 14px;
}

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

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

.form-group input {
    width: 100%;
    height: 42px;
    padding: 0 15px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #409eff;
}

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

.btn-primary {
    background-color: #409eff;
    color: #fff;
    width: 100%;
    height: 44px;
    font-size: 16px;
}

.btn-primary:hover {
    background-color: #66b1ff;
}

.btn-primary:disabled {
    background-color: #a0cfff;
    cursor: not-allowed;
}

.btn-success {
    background-color: #67c23a;
    color: #fff;
}

.btn-success:hover {
    background-color: #85ce61;
}

.btn-danger {
    background-color: #f56c6c;
    color: #fff;
}

.btn-danger:hover {
    background-color: #f78989;
}

.btn-default {
    background-color: #fff;
    color: #606266;
    border: 1px solid #dcdfe6;
}

.btn-default:hover {
    background-color: #f5f7fa;
}

.layout-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 200px;
    background: #304156;
    color: #bfcbd9;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    border-bottom: 1px solid #263445;
}

.sidebar-menu {
    flex: 1;
    padding: 10px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-item.active {
    background: #1890ff;
    color: #fff;
    border-left-color: #fff;
}

.menu-item i {
    margin-right: 10px;
    font-size: 16px;
}

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

.header {
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.header-left {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #409eff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebeef5;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.table-container {
    overflow-x: auto;
}

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

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

table th {
    background: #f5f7fa;
    font-weight: 600;
    color: #606266;
}

table tr:hover {
    background: #f5f7fa;
}

.table-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.pagination-btn:hover {
    background: #f5f7fa;
}

.pagination-btn.active {
    background: #409eff;
    color: #fff;
    border-color: #409eff;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #303133;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: #909399;
}

.stat-card.blue .stat-icon {
    background: #ecf5ff;
    color: #409eff;
}

.stat-card.green .stat-icon {
    background: #f0f9eb;
    color: #67c23a;
}

.stat-card.orange .stat-icon {
    background: #fff7e6;
    color: #e6a23c;
}

.stat-card.red .stat-icon {
    background: #fef0f0;
    color: #f56c6c;
}

.form-inline {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.form-inline .form-group {
    margin-bottom: 0;
}

.form-inline input, .form-inline select {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}

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

.modal-overlay.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ebeef5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    font-size: 20px;
    cursor: pointer;
    color: #909399;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ebeef5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ebeef5;
    margin-bottom: 20px;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: #606266;
}

.tab-item.active {
    color: #409eff;
    border-bottom-color: #409eff;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.badge-success {
    background: #f0f9eb;
    color: #67c23a;
}

.badge-warning {
    background: #fff7e6;
    color: #e6a23c;
}

.badge-danger {
    background: #fef0f0;
    color: #f56c6c;
}

.badge-info {
    background: #ecf5ff;
    color: #409eff;
}

.badge-primary {
    background: #e1f3fb;
    color: #42a5f5;
}

.badge-secondary {
    background: #f4f4f5;
    color: #909399;
}

.badge-gray {
    background: #f5f5f5;
    color: #909399;
}

.badge-default {
    background: #f0f0f0;
    color: #999;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #909399;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: #fff;
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #67c23a;
}

.toast.error {
    background: #f56c6c;
}

.toast.info {
    background: #409eff;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.chart-container {
    height: 300px;
}

.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar input, .filter-bar select {
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    width: 200px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar-header {
        font-size: 14px;
    }
    
    .menu-item span {
        display: none;
    }
    
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}