/* admin.css - پنل ادمین */

.admin-table-wrapper {
    overflow-x: auto;
    max-height: 60vh;
    overflow-y: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    background: var(--bg-sidebar);
    padding: 12px;
    text-align: right;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tr:hover {
    background: var(--bg-hover);
}

.admin-table code {
    background: var(--bg-sidebar);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.plan-badge {
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.admin-actions {
    display: flex;
    gap: 6px;
}

.admin-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: white;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.upgrade-btn {
    background: var(--accent-color);
}

.upgrade-btn:hover {
    background: var(--accent-hover);
}

.danger-btn {
    background: #e53e3e;
}

.danger-btn:hover {
    background: #c53030;
}

/* کارت‌های آماری */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.admin-stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.admin-stat-info {
    display: flex;
    flex-direction: column;
}

.admin-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.admin-stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
}
/* دکمه اطلاعات کامل */
.admin-btn.info-btn {
    background: #3b82f6;
}

.admin-btn.info-btn:hover {
    background: #2563eb;
}

/* مودال جزئیات کاربر */
.user-details-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.detail-value {
    font-size: 13px;
    color: var(--text-primary);
    text-align: left;
}