/* 权限管理页面容器 */
.permission-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 管理员区块样式 */
.admin-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.admin-section h2 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 群组区块样式 */
.group-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.group-section h3 {
    color: #444;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 添加管理员表单 */
.admin-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-form input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25,118,210,0.2);
}

/* 按钮基础样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 添加按钮 - 蓝色主题 */
.btn-add {
    background-color: #1976d2;
    color: white;
}

.btn-add:hover {
    background-color: #1565c0;
}

/* 删除按钮 - 红色主题 */
.btn-delete {
    background-color: #dc3545;
    color: white;
    padding: 6px 12px;
    font-size: 13px;
}

.btn-delete:hover {
    background-color: #c82333;
}

/* 管理员列表样式 */
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.admin-item:hover {
    background-color: #f0f1f2;
}

.admin-item span {
    font-size: 14px;
    color: #333;
}

/* 空状态提示 */
.empty-message {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 14px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

/* 操作反馈提示 */
.feedback-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    animation: slideIn 0.3s ease;
    z-index: 1000;
}

.feedback-success {
    background-color: #28a745;
}

.feedback-error {
    background-color: #dc3545;
}

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

/* 加载状态 */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading::after {
    content: "...";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

/* 确认对话框样式 */
.confirm-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    max-width: 90%;
    width: 400px;
}

.confirm-dialog h3 {
    margin-bottom: 15px;
    color: #333;
}

/* 对话框按钮 */
.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.dialog-buttons button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.dialog-buttons .cancel {
    background-color: #f8f9fa;
    color: #333;
}

.dialog-buttons .confirm {
    background-color: #dc3545;
    color: white;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .permission-container {
        padding: 10px;
    }

    .admin-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .admin-form {
        flex-direction: column;
        gap: 8px;
    }

    .admin-form input,
    .admin-form button {
        width: 100%;
    }

    .admin-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .admin-item button {
        width: 100%;
    }

    .group-section {
        padding: 15px;
    }

    .feedback-message {
        left: 10px;
        right: 10px;
        bottom: 10px;
        text-align: center;
    }
}

/* 动画效果 */
.admin-item {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}