/* 权限管理页面样式 */
.permission-list {
    padding: 20px;
    background: #f5f7fa;
    min-height: 100vh;
}

/* 统计卡片容器 */
.permission-stats-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* 统计卡片 */
.permission-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.permission-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.permission-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.permission-stats-card:hover::before {
    opacity: 1;
}

.permission-stats-card.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

/* 不同类型卡片的颜色 */
.permission-stats-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.permission-stats-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.permission-stats-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.permission-stats-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* 卡片数字 */
.permission-stats-card-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

/* 卡片文字 */
.permission-stats-card-text {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 页面标题样式 */
.content-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e4e7ed;
}

.content-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #303133;
}

.content-header p {
    margin: 0;
    color: #606266;
    font-size: 14px;
}

/* 搜索栏样式 */
.search-card {
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.search-form .el-form-item {
    margin-bottom: 0;
}

/* 表格卡片样式 */
.table-card {
    margin-bottom: 20px;
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    text-align: right;
}

/* 对话框样式 */
.el-dialog {
    border-radius: 8px;
}

.el-dialog__header {
    background-color: #f5f7fa;
    border-bottom: 1px solid #e4e7ed;
    border-radius: 8px 8px 0 0;
}

.el-dialog__body {
    padding: 20px;
}

.el-dialog__footer {
    background-color: #f5f7fa;
    border-top: 1px solid #e4e7ed;
    border-radius: 0 0 8px 8px;
    padding: 15px 20px;
}

/* 表单样式 */
.el-form-item__label {
    font-weight: 500;
}

.el-input,
.el-select,
.el-tree-select {
    width: 100%;
}

.el-textarea__inner {
    min-height: 80px;
}

/* 按钮样式 */
.el-button + .el-button {
    margin-left: 10px;
}

/* 表格操作按钮样式 */
.el-table .el-button {
    margin-right: 5px;
}

.el-table .el-button:last-child {
    margin-right: 0;
}

/* 标签样式 */
.el-tag {
    border-radius: 4px;
}

/* 树形选择器样式 */
.el-tree-select {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .permission-list {
        padding: 10px;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form .el-form-item {
        margin-bottom: 10px;
    }
    
    .el-table {
        font-size: 12px;
    }
    
    .el-table .el-button {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* 加载状态样式 */
.el-loading-mask {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 空状态样式 */
.el-table__empty-block {
    min-height: 200px;
}

.el-table__empty-text {
    color: #909399;
    font-size: 14px;
}

/* 表格行悬停效果 */
.el-table__row:hover {
    background-color: #f5f7fa;
}

/* 表格头部样式 */
.el-table__header {
    background-color: #fafafa;
}

.el-table__header th {
    background-color: #fafafa;
    color: #606266;
    font-weight: 500;
}

/* 表格边框样式 */
.el-table--border {
    border: 1px solid #ebeef5;
}

.el-table--border th,
.el-table--border td {
    border-right: 1px solid #ebeef5;
}

/* 分页器样式 */
.el-pagination {
    justify-content: flex-end;
    margin-top: 20px;
}

.el-pagination .el-pagination__total {
    margin-right: 10px;
}

/* 对话框内容区域滚动 */
.el-dialog__body {
    max-height: 60vh;
    overflow-y: auto;
}

/* 表单验证错误样式 */
.el-form-item.is-error .el-input__inner,
.el-form-item.is-error .el-textarea__inner {
    border-color: #f56c6c;
}

.el-form-item__error {
    color: #f56c6c;
    font-size: 12px;
    line-height: 1;
    padding-top: 4px;
    position: absolute;
    top: 100%;
    left: 0;
}

/* 成功消息样式 */
.el-message--success {
    background-color: #f0f9ff;
    border-color: #67c23a;
}

/* 错误消息样式 */
.el-message--error {
    background-color: #fef0f0;
    border-color: #f56c6c;
}

/* 警告消息样式 */
.el-message--warning {
    background-color: #fdf6ec;
    border-color: #e6a23c;
}

/* 信息消息样式 */
.el-message--info {
    background-color: #f4f4f5;
    border-color: #909399;
}