﻿/* 紧凑表格基础样式 */
.admin-users-table {
    font-size: 0.9rem;
}

    .admin-users-table thead th {
        padding: 0.35rem 0.4rem !important;
    }

    .admin-users-table tbody td {
        padding: 0.25rem 0.4rem !important;
    }

    .admin-users-table .actions-cell {
        padding: 0.15rem 0.3rem !important;
        white-space: nowrap;
        display: flex;
        gap: 0.4rem; /* ← 关键：增加按钮之间的间隙 */
        align-items: center;
    }

/* 响应式：手机端堆叠卡片布局 */
@media (max-width: 768px) {
    .admin-users-table thead {
        display: none;
    }

    .admin-users-table tbody,
    .admin-users-table tr {
        display: block;
    }

    .admin-users-table tr {
        border: 1px solid #dee2e6;
        border-radius: 8px;
        margin-bottom: 0.75rem;
        padding: 0.5rem;
        background-color: #f8f9fa;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .admin-users-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0.6rem !important;
        border: none;
        position: relative;
    }

        .admin-users-table td:before {
            content: attr(data-label);
            font-weight: bold;
            width: 35%;
            flex-shrink: 0;
            margin-right: 0.5rem;
            text-align: left;
        }

    .admin-users-table .actions-cell {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.5rem 0.6rem !important;
    }

        .admin-users-table .actions-cell button {
            width: 100%;
            margin: 0 !important;
            justify-content: center;
            text-align: center;
        }
}

/* === 悬浮消息提示 === */
.admin-toast {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
    width: auto;
    min-width: 300px;
    max-width: 90%;
}

    .admin-toast .alert {
        color: white !important;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        border: none;
        border-radius: 6px;
        margin: 0;
        padding: 0.85rem 1.25rem;
    }

/* === 自定义确认弹窗 === */
.admin-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1070;
}

.admin-confirm-dialog {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border-radius: 12px;
    padding: 1rem;
    min-width: 220px;
    max-width: 80%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-align: center;
}

.admin-confirm-buttons {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

    .admin-confirm-buttons .btn {
        border-radius: 6px;
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
    }
